Download the solution: SolarPanels MCP Demo.dbsln
This example demonstrates how to integrate MCP for Runtime with MQTT data and Cloud AI. You will set up a Built-in MQTT Broker, map MQTT data to the solution namespace, create assets, and configure custom MCP tools via Script Classes for solar panel monitoring. *
*Note:** This demo uses **MCP for Runtime**, which connects to a running solution (TServer.exe) to query live data. For AI-assisted solution configuration, see MCP for Designer.
This solution showcases:
Runs a Built-in MQTT Broker with SparkPlug simulation
Maps MQTT data structure to the solution namespace
Organizes data through the Europe asset structure
Monitors solar panel data via MCP scripts
Provides intelligent insights through Cloud AI integration
Enables real-time queries and analysis of MQTT data
Navigate to Data Explorer → MQTT Tools
Start the Built-in Broker
Start the MQTT Publisher Simulator
Verify the MQTT Broker tree is visible in the explorer
Confirm data is being simulated and published
In Data Explorer, locate the MQTT tree structure
Click in the structure you want to import, in this case Cities → Barcelona → Panel_1
Click the Map to the Solution button
Select Collector and New TagProvider Service and confirm the mapping operation
Navigate to Unified Namespace → Tag Provider
Verify that the Tag Provider has been automatically created
Navigate to Unified Namespace → Assets
Create a New Folder in root
Name the folder "Europe"
Link the Europe folder to the TagProvider by clicking in Insert data from TagProvider
Verify that you can see the data in the asset
Navigate to Scripts → Classes
Click New to create a new script
Select Import code from the Library and choose SolarPanelMCP
This Script Class defines custom MCP tools that MCP for Runtime will expose to AI models
Configure the script parameters for solar panel monitoring
Make the changes and save the script
Go in Runtime → Startup and click in Run Startup
Claude AI connects to your running solution via MCP for Runtime, enabling AI-powered queries of live operational data.
Have Claude AI Desktop downloaded
Go in Settings → Developer → Edit Config and select the ”claude_desktop_config.json”
This .json should have the following content:
{
"mcpServers": {
"<SolutionName>": {
"command": "<ProductPath>\\fx-10\\net8.0\\TMCPServerStdio\\TMCPServerStdio.exe",
"args": [ "/host:127.0.0.1", "/port:<port>" ],
"transport": "stdio"
}
}
}
Restart the Claude AI
In the Developer setting it shoud show “running” and when you open a new chat in “Search and Tools” you will see the name of your solution there.
You can query any method in a Claude chat. e.g: “Returns the power output of the SolarPanels in Spain” and it returns the value requested.
Besides the method that are presented in the script, you can ask general information about the solution, like:
Get tag historian
Get alarm online
Get value