Page properties | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
|
MCP Tools server endpoint for compatible AI agentsEnable AI-powered industrial automation through Model Context Protocol integration.
Table of Contents | ||||||
---|---|---|---|---|---|---|
|
The
MCP Tools Server is currently under development and will be available soon.MCP (Model Context Protocol) Tool Connector bridges FrameworX solutions with AI language models, enabling intelligent automation assistance while maintaining industrial-grade safety and determinism. This connector exposes your solution's data and functionality as structured tools that AI models can invoke with parameters, not just generate text responses.
AI Model (Claude/GPT) ←→ MCP Protocol ←→ FrameworX Solution
↓
[Structured Methods]
[Tag Data Access]
[Historian Queries]
[Alarm Monitoring]
Property | Value |
---|---|
Name | MCP Tool |
Protocol | Model Context Protocol (MCP) |
Interface | stdio/TCP |
Runtime | .NET 8.0 |
AI Models | Claude, GPT-4, Custom |
Configuration | Scripts → Classes |
Create specialized script classes that expose methods to AI models. These classes use decorator attributes to define AI-accessible functions.
Learn more: Scripts Classes Reference
FrameworX's consistent object model and event-driven architecture provide the foundation for reliable AI integration.
Learn more: AI-Ready by Design
Pre-built examples demonstrate MCP integration for real industrial scenarios.
Learn more: SolarPanels MCP Demo
csharp
[McpServerTool, Description("Get current tank level")]
public string GetTankLevel(
[Description("Tank identifier")] string tankId)
{
return @Tag[$"Tank_{tankId}_Level"].ToString();
}
Configure your AI client (e.g., Claude Desktop) to connect to the MCP server:
json
{
"mcpServers": {
"YourSolution": {
"command": "C:\\FrameworX\\fx-10\\net8.0\\TMCPServerStdio\\TMCPServerStdio.exe",
"args": ["/host:127.0.0.1", "/port:5000"],
"transport": "stdio"
}
}
}
Once configured, the AI can access your solution data:
Build your first MCP Tool and connect it to Claude AI:
How to Build an MCP Tool - Step-by-step guide for creating and deploying MCP Tools
Explore a complete working example with MQTT integration:
SolarPanels MCP Demo - Full solution demonstrating MCP Tools with solar panel monitoring
Connect MCP Tools with external databases:
PostgreSQL Connector - Example of integrating MCP with PostgreSQL for historian data
csharp
[McpServerTool, Description("Safe data retrieval")]
public string GetData(string tagName)
{
try
{
if (!@Tag.Exists(tagName))
return $"Error: Tag {tagName} not found";
return @Tag[tagName].ToString();
}
catch (Exception ex)
{
@Info.Trace($"MCP Error: {ex.Message}");
return "Error: Unable to retrieve data";
}
}
The MCP Tool Connector supports multiple AI models simultaneously:
Beyond standard methods, create specialized tools for:
MCP Server not starting
AI cannot access methods
Runtime → Startup
)Data not updating
Page Tree | ||
---|---|---|
|