
thingspanel/thingspanel-mcp 是从 https://github.com/thingspanel/thingspanel-mcp. 导入的 MCP 服务器候选。
概览
thingspanel/thingspanel-mcp 是从 https://github.com/thingspanel/thingspanel-mcp. 导入的 MCP 服务器候选。
概述(AI 翻译)
ThingsPanel MCP 将兼容 MCP 的助手连接到 ThingsPanel 和 ThingsVis API。它既提供聚焦的物联网工具,也提供带有固定源代码审计路由的独立命名 API 工具。
英文 |中文
内容
- 378个MCP工具:364个生成的API工具,以及14个聚焦的设备、遥测、仪表盘和控制工具。
- 生成的集合涵盖312个ThingsPanel和52个ThingsVis的API操作,包括设备、遥测、警报、组、产品、服务访问、仪表盘和上传。
- 178次生成读取操作。其余186次写控操作要求工具参数确认=真。
- 结构化JSON结果、业务代码错误检测、路径编码、文件上传支持以及有界的SSE/WebSocket读取。
- ThingsPanel 和 ThingsVis 的认证配置文件。授权始终由连接服务强制执行。
完整的允许列表API库存在src/thingspanel_mcp/api_manifest.json中。工具定义固定了HTTP方法和路由;调用者提供path_params、查询、正体和可选file_path值。
这14个聚焦工具返回类型为MCP structuredContent,字段为ok、summary、data和error]。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
ThingsPanel MCP
ThingsPanel MCP connects MCP-compatible assistants to ThingsPanel and ThingsVis APIs. It offers both focused IoT tools and individually named API tools with fixed, source-audited routes.
What it includes
- 378 MCP tools: 364 generated API tools plus 14 focused device, telemetry, dashboard, and control tools.
- The generated set covers 312 ThingsPanel and 52 ThingsVis API operations, including device, telemetry, alarms, groups, products, service access, dashboards, and uploads.
- 178 generated read operations. The remaining 186 write or control operations require the tool argument confirmed=true.
- Structured JSON results, business-code error detection, path encoding, file upload support, and bounded SSE/WebSocket reads.
- Authentication profiles for ThingsPanel and ThingsVis. Authorization is always enforced by the connected service.
The complete allow-listed API inventory is in src/thingspanel_mcp/api_manifest.json. The tool definitions fix the HTTP method and route; callers provide path_params, query, body, and optional file_path values.
The 14 focused tools return typed MCP structuredContent with ok, summary, data, and error fields. Use the data fields for programmatic decisions; summary is for people. send_device_command returns a message_id when available; pass it to get_device_command_status to query the command receipt. An accepted command is not proof that the device executed it.
Requirements and installation
- Python 3.8 or later.
- A ThingsPanel account and a credential accepted by the target API. ThingsVis operations may require ThingsVis credentials as well.
Install from PyPI:
python -m pip install --upgrade thingspanel-mcp
Run without a persistent installation using uv:
uvx --from thingspanel-mcp thingspanel-mcp --help
Install from source:
git clone https://github.com/ThingsPanel/thingspanel-mcp.git
cd thingspanel-mcp
python -m pip install .
Authentication and permissions
ThingsPanel Community supports SYS_ADMIN and TENANT_ADMIN. It does not have tenant subusers; tenant-user accounts are an Enterprise edition capability. ThingsPanel API keys map to tenant-administrator permissions. A system administrator must use a ThingsPanel login JWT.
安装
uvx --from thingspanel-mcp==0.1.11 thingspanel-mcp