Skip to main content
Glama
ThingsPanel

ThingsPanel MCP

Official
by ThingsPanel

ThingsPanel MCP License Python Version PyPI version

ThingsPanel IoT Platform's MCP (Model Context Protocol) Server.

English | 中文

🚀 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

Related MCP server: ThingsBoard MCP Server

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)

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! ⭐

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    Links IoT devices to AI large models using the MCP and MQTT protocols, enabling natural language control, real-time AI responses, and complex instruction execution for interconnected IoT devices.
    Last updated
    3
    371
    MIT
  • A
    license
    -
    quality
    B
    maintenance
    Connect your AI workflows to the ThingsBoard IoT Platform through this MCP server. Enables LLMs to query device telemetry, manage IoT entities (devices, assets, customers), and analyze sensor data - all through natural language. Perfect for building AI-powered IoT monitoring, predictive maintenance,
    Last updated
    98
    Apache 2.0
  • A
    license
    B
    quality
    -
    maintenance
    An MCP server that bridges the physical world and AI models by enabling natural language control of IoT hardware via the MQTT protocol. It supports real-time device monitoring, command publishing, and response handling for seamless integration between AI clients and physical devices.
    Last updated
    3
  • F
    license
    -
    quality
    D
    maintenance
    Enables AI assistants to read sensor data from IoT devices and dispatch data collection tasks through a unified interface supporting multiple protocols.
    Last updated
    16

View all related MCP servers

Related MCP Connectors

  • MCP server for AI dialogue using various LLM models via AceDataCloud

  • Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.

  • Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ThingsPanel/thingspanel-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server