supOS
STDIOMCP server providing supOS open-APIs for topic data management and querying
MCP server providing supOS open-APIs for topic data management and querying
English | 中文
This MCP server is developed based on the typescript-sdk provided by the Model Context Protocol (MCP) protocol, allowing any client that supports the MCP protocol to use it.
It provides a series of supOS open-apis, such as querying topic tree structure, topic details, etc.
get-topic-tree
key (string): Fuzzy search keyword for child nodesshowRec (boolean): Number of records to displaytype (string): Search type: 1--Text search, 2--Tag searchget-topic-detail
topic (string): The topic path corresponding to the modelget-topic-realtime-data
topic (string): The topic path corresponding to the modelget-all-topic-realtime-data
pg-query-sql
sql (string): The SQL statement to be executedparams (array): SQL parameter array, optionalget-topic-history-data-by-pg
prompt (string): The prompt message input by the user for querying the historical data of the topicget-topic-query-sql
prompt (string): The prompt of the SQL statement input by the user for querying the topicLet's follow the documentation to start using it
Currently, there are many clients that support the MCP protocol, such as desktop applications like Claude for Desktop, or IDE plugins (like the Cline plugin for VSCode). To learn about supported clients, visit Model Context Protocol Client.
Here we'll use Claude for Desktop as an example.
Download Claude for Desktop.
Configure the required MCP server for Claude for Desktop.
Claude for Desktop configuration in a text editor: ~/Library/Application Support/Claude/claude_desktop_config.json.Edit Config in File -> Setting -> Developer:

After opening the configuration file, add the following content to claude_desktop_config.json and restart the application:
Note: The application needs to be restarted after each modification of this configuration file for changes to take effect.
```json
{
  "mcpServers": {
    "supos": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-supos"
      ],
      "env": {
        "SUPOS_API_KEY": "<API_KEY>",
        "SUPOS_API_URL": "<API_URL>",
        "SUPOS_MQTT_URL": "<MQTT_URL>",
        "SUPOS_PG_URL": "<PG_URL>"
      }
    }
  }
}
```
API_URL is the accessible address of supOS Community Edition, you can try the entry point from here. API_KEY is the key required for open-api access. MQTT_URL can be found by visiting UNS -> MqttBroker -> Listeners to view the subscribable address.PG_URL is the URL required to access the pg database, format: postgresql://user:password@host:port/db-nameNote: The above configuration of the MCP server uses npx to pull the mcp-server-supos npm package and run it locally to provide services to clients. However, npx may have issues reading environment variable env configurations on Windows systems, so the following solutions can be adopted:
Choose one of the following two methods:
mcp-server-supos locally and run it through nodenpm install mcp-server-supos -g
Find the installed package path, for example: "C://Users//<USER_NAME>//AppData//Roaming//npm//node_modules//mcp-server-supos//dist//index.js"
Modify the configuration in claude_desktop_config.json and restart the application
{ "mcpServers": { "supos": { "command": "node", "args": [ "C://Users//<USER_NAME>//AppData//Roaming//npm//node_modules//mcp-server-supos//dist//index.js" ], "env": { "SUPOS_API_KEY": "<API_KEY>", "SUPOS_API_URL": "<API_URL>", "SUPOS_MQTT_URL": "<MQTT_URL>", "SUPOS_PG_URL": "<PG_URL>" } } } }
git clone https://github.com/FREEZONEX/mcp-server-supos.git
npm ci
npm run build
claude_desktop_config.json and restart the application{ "mcpServers": { "supos": { "command": "node", "args": ["<local project path>//dist//index.js"], "env": { "SUPOS_API_KEY": "<API_KEY>", "SUPOS_API_URL": "<API_URL>", "SUPOS_MQTT_URL": "<MQTT_URL>", "SUPOS_PG_URL": "<PG_URL>" } } } }
That's the complete tutorial for using this service. After successful configuration, you can see the corresponding services and tools in the following panels:

To install supOS MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @FREEZONEX/mcp-server-supos --client claude
supOS Community Edition has integrated the open-mcp-client open-sourced by CopilotKit authors, and built-in the mcp-server-supos service, supporting ts version agent.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.