ThingsBoard MCP Server

ThingsBoard MCP Server

thingsboard-mcp-server-pophalea•bypophalea

A Model Context Protocol server that connects AI assistants to a ThingsBoard instance for managing assets, devices, telemetry, alarms, and more.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Auto-generates MCP tools from the official ThingsBoard Python REST client to cover its API.
  • •Detects whether ThingsBoard Community Edition or Professional Edition is installed and adapts accordingly.
  • •Connects to a ThingsBoard instance using configurable URL, username, password, and edition environment variables.
  • •Logs in to ThingsBoard on the first tool call.

BEST FOR

  • •AI assistants that need to manage ThingsBoard assets, devices, and telemetry on a tenant's instance.
  • •Developers using Claude Desktop who want ThingsBoard tools available through MCP.

ABOUT THINGSBOARD-MCP-SERVER-POPHALEA

ThingsBoard MCP Server is cataloged as an MCP server attributed to pophalea. A Model Context Protocol server that connects AI assistants to a ThingsBoard instance for managing assets, devices, telemetry, alarms, and more. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for ThingsBoard MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which ThingsBoard SDK editions does it support?

It detects installed ThingsBoard SDK editions and supports both Community Edition and Professional Edition.

How does it authenticate with ThingsBoard?

It uses configured tenant administrator credentials and logs in when the first tool call is made.

上游原版 README

在 GitHub 查看同一版本原文

README.md · bddc9cd68819 · 采集于 2026-11-13 12:07:32 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

ThingsBoard MCP Server

A Model Context Protocol (MCP) server for ThingsBoard. This project allows AI assistants (like Claude Desktop) to interact directly with your ThingsBoard instance to manage assets, devices, telemetry, alarms, and more.

The tools are auto-generated from the official Python SDK (tb-rest-client), ensuring 100% API coverage, strict type checking, and rich documentation derived directly from the source code.

🚀 Features

  • Auto-Discovery: Automatically detects installed ThingsBoard SDK editions (CE or PE) and adapts accordingly.
  • Smart Tracing: Maps high-level Client methods (rest_client_ce.py) to their underlying API Controllers to extract accurate docstrings and signatures.
  • Strict Verification: Includes a test suite (verify_tools.py) that mocks the SDK to ensure every generated tool has valid inputs, docstrings, and execution logic.
  • Comprehensive Reporting: Generates detailed Markdown documentation (TOOLS_CE.md) and verification audits (VERIFICATION_REPORT_CE.md).

📋 Prerequisites

  • Python 3.10+
  • ThingsBoard Python REST Client
pip install tb-rest-client

🛠️ Setup & Generation

  1. Generate the Tools Run the generator script. This will scan your installed tb-rest-client library, trace the method calls, and generate the MCP tool code.
python3 generate_thingsboard_mcp.py

What happens?

  • Creates thingsboard_mcp/tools/ce/ (and pe/ if installed).
  • Generates a TOOLS_CE.md file listing all available tools, their descriptions, and parameters.
  • Filters out internal utility methods and lambdas automatically.
  1. Verify the Tools Run the verification suite to ensure the generated code is valid and adheres to strict quality standards.
python3 verify_final.py

What happens?

  • Mocks the ThingsBoard SDK (no real connection required).
  • Tests every tool with dummy data to ensure it calls the client correctly.
  • Generates VERIFICATION_REPORT_CE.md with a pass/fail status for every tool.

⚙️ Configuration

The server requires the following environment variables to connect to your ThingsBoard instance.

VariableDescriptionDefault
TB_URLYour ThingsBoard URLhttp://localhost:8080
TB_USERNAMETenant Administrator Usernametenant@thingsboard.org
TB_PASSWORDTenant Administrator Passwordtenant
TB_EDITIONEdition to load (CE or PE)PE

🏃‍♂️ Usage

Option A: Use with Claude Desktop

Add the following configuration to your Claude Desktop config file: MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "thingsboard": {
      "command": "python3",
      "args": ["/absolute/path/to/thingsboard-mcp/thingsboard_mcp/main.py"],
      "env": {
        "TB_URL": "http://YOUR_TB_IP:8080",
        "TB_USERNAME": "tenant@thingsboard.org",
        "TB_PASSWORD": "your_password",
        "TB_EDITION": "CE"
      }
    }
  }
}

Option B: Run Manually (Testing)

You can run the server directly in your terminal to test connections or debug.

export TB_URL="http://localhost:8080"
export TB_USERNAME="tenant@thingsboard.org"
export TB_PASSWORD="tenant"
export TB_EDITION="CE"

python3 thingsboard_mcp/main.py

📂 Project Structure.

├── generate_thingsboard_mcp.py # Scans SDK and generates tool code
├── verify_tools.py             # Mocks SDK and verifies generated tools
├── TOOLS_CE.md                 # Documentation of all generated tools
├── VERIFICATION_REPORT_CE.md   # Audit log of tool health
├── README.md                   # This file
└── thingsboard_mcp/            # The generated package
    ├── main.py                 # Entry point for MCP Server
    └── tools/
        ├── shared.py           # Shared utilities (Auth, JSON parsing)
        ├── ce/                 # Community Edition tools (Asset, Device, etc.)
        └── pe/                 # Professional Edition tools (if applicable)

🛡️ Troubleshooting

Missing Tools? Check TOOLS_CE.md or the console output of generate_thingsboard_mcp.py. Tools are skipped if:

  1. They correspond to internal internal threading methods (join, start).
  2. The source SDK is missing a docstring for that method.
  3. The method is a lambda or partial function. Connection Errors? The server attempts to log in immediately upon the first tool call. Ensure your TB_URL is reachable from the machine running the MCP server and that credentials are correct.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for ThingsBoard MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/thingsboard-mcp-server-pophalea)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools