Monitor and control a brewing process.

How-to ExamplesIndustry → SolaPanels MCP


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:

  • 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

 


Technical Information

MQTT Broker and Simulator

  1. Navigate to Data Explorer → MQTT Tools

  2. Start the Built-in Broker

  3. Start the MQTT Publisher Simulator

  4. Verify the MQTT Broker tree is visible in the explorer

  5. Confirm data is being simulated and published

MQTT Tree to Solution

  1. In Data Explorer, locate the MQTT tree structure

  2. Click in the structure you want to import, in this case Cities → Barcelona → Panel_1

  3. Click the Map to the Solution button

  4. Select Collector and New TagProvider Service and confirm the mapping operation

  5. Navigate to Unified Namespace → Tag Provider

  6. Verify that the Tag Provider has been automatically created

Asset Structure

  1. Navigate to Unified Namespace → Assets

  2. Create a New Folder in root

  3. Name the folder "Europe"

  4. Link the Europe folder to the TagProvider by clicking in Insert data from TagProvider

  5. Verify that you can see the data in the asset

SolarPanelMCP Script

  1. Navigate to Scripts → Classes

  2. Click New to create a new script

  3. Select Import code from the Library and choose SolarPanelMCP

  4. Configure the script parameters for solar panel monitoring

  5. Make a minor change and save the script

Run the solution

  1. Go in Runtime → Startup and click in Run Startup

Claude AI

  1. Have Claude AI Desktop downloaded

  2. Go in Settings → Developer → Edit Config and select the ”claude_desktop_config.json”

  3. 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"
        }
      }
    }
  4. Restart the Claude AI

  5. 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.

Query in Claude AI

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



In this section...