ThingsPanel MCPOfficial
An integration server that connects AI models with ThingsPanel IoT platform, allowing AI assistants to interact with IoT devices through natural language for device control, data retrieval, and management operations.
ThingsPanel
README
ThingsPanel MCP

ThingsPanel IoT Platform's MCP (Model Context Protocol) Server.
š Project Overview
ThingsPanel MCP Server is an innovative intelligent interface that enables you to:
- Interact with IoT devices using natural language
- Easily retrieve device information
- Monitor device performance and status in real-time
- Simplify device control commands
- Analyze platform-wide statistical data and trends
Target Audience
Intended Users
- IoT Solution Developers: Engineers and developers building solutions on the ThingsPanel IoT platform and seeking AI integration capabilities
- AI Integration Experts: Professionals looking to connect AI models with IoT systems
- System Administrators: IT personnel managing IoT infrastructure and wanting to enable AI-driven analysis and control
- Product Teams: Teams building products that combine IoT and AI functionality
Problems Addressed
- Integration Complexity: Eliminates the need to create custom integrations between AI models and IoT platforms
- Standardized Access: Provides a consistent interface for AI models to interact with IoT data and devices
- Security Control: Manages authentication and authorization for AI access to IoT systems
- Lowered Technical Barriers: Reduces technical obstacles to adding AI capabilities to existing IoT deployments
Ideal Application Scenarios
- Natural Language IoT Control: Enable users to control devices through AI assistants using natural language
- Intelligent Data Analysis: Allow AI models to access and analyze IoT sensor data for insights
- Anomaly Detection: Connect AI models to device data streams for real-time anomaly detection
- Predictive Maintenance: Enable AI-driven predictive maintenance by providing device history access
- Automated Reporting: Create systems that can generate IoT data reports and visualizations on demand
- Operational Optimization: Use AI to optimize device operations based on historical patterns
⨠Core Features
- š£ļø Natural Language Querying
- š Comprehensive Device Insights
- š”ļø Real-time Telemetry Data
- š® Convenient Device Control
- š Platform-wide Analytics
š ļø Prerequisites
- Python 3.8+
- ThingsPanel Account
- ThingsPanel API Key
š¦ Installation
Option 1: Pip Installation
pip install thingspanel-mcp
Option 2: Source Code Installation
# Clone the repository
git clone https://github.com/ThingsPanel/thingspanel-mcp.git
# Navigate to project directory
cd thingspanel-mcp
# Install the project
pip install -e .
š Configuration
Configuration Methods (Choose One)
Method 1: Direct Command Line Configuration (Recommended)
thingspanel-mcp --api-key "Your API Key" --base-url "Your ThingsPanel Base URL"
Method 2: Environment Variable Configuration
If you want to avoid repeated input, set environment variables:
# Add to ~/.bashrc, ~/.zshrc, or corresponding shell config file
export THINGSPANEL_API_KEY="Your API Key"
export THINGSPANEL_BASE_URL="Your ThingsPanel Base URL"
# Then run
source ~/.bashrc # or source ~/.zshrc
š” Tips:
- API keys are typically obtained from the API KEY management in the ThingsPanel platform
- Base URL refers to your ThingsPanel platform address, e.g.,
http://demo.thingspanel.cn/ - Command-line configuration is recommended to protect sensitive information
š„ļø Claude Desktop Integration
Add the following to your Claude desktop configuration file (claude_desktop_config.json):
{
"mcpServers": {
"thingspanel": {
"command": "thingspanel-mcp",
"args": [
"--api-key", "Your API Key",
"--base-url", "Your Base URL"
]
}
}
}
š¤ Interaction Examples
Using the ThingsPanel MCP Server, you can now make natural language queries such as:
- "What is the current temperature of my sensor?"
- "List all active devices"
- "Turn on the automatic sprinkler system"
- "Show device activity for the last 24 hours"
š”ļø Security
- Secure credential management
- Uses ThingsPanel official API
- Supports token-based authentication
License
Apache License 2.0
š Support Us
If this project helps you, please give us a star on GitHub! ā
Recommended Servers
@kazuph/mcp-taskmanager
Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.
Claude Code MCP
An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.
Beamlit MCP Server
An MCP server implementation that enables seamless integration between Beamlit CLI and AI models using the Model Context Protocol standard.
MCP Python Toolbox
A Model Context Protocol server that enables AI assistants like Claude to perform Python development tasks through file operations, code analysis, project management, and safe code execution.
Shell MCP Server
A secure server that enables AI applications to execute shell commands in specified directories, supporting multiple shell types (bash, sh, cmd, powershell) with built-in security features like directory isolation and timeout control.
Command Executor MCP Server
A Model Context Protocol server that allows secure execution of pre-approved commands, enabling AI assistants to safely interact with the user's system.
DevEnvInfoServer
An MCP server that provides detailed information about your development environment to the Cursor code editor, enabling more context-aware assistance.
mcp-cli-exec MCP Server
A CLI command execution server that enables running shell commands with structured output, providing detailed execution results including stdout, stderr, exit code, and execution duration.
Siri Shortcuts MCP Server
Enables interaction with macOS Siri Shortcuts via the Model Context Protocol, allowing users to list, open, and run shortcuts dynamically with optional inputs.
WASM MCP Server
This server enables running a Model Context Protocol in a web browser with functionalities including arithmetic operations and session-based key-value storage.