Download the solution: SolarPanels MCP Demo.dbsln This guide demonstrates how to integrate MQTT Tools with Cloud AI by setting up a Built-in Broker, mapping MQTT data to the solution namespace, creating assets, and configuring MCP scripts for solar panel monitoring. System Overview: Your solution now:
|
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
Configure the script parameters for solar panel monitoring
Make a minor change and save the script
Go in Runtime → Startup and click in Run Startup
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