Thingsboard MCP (thingsboard-mcp-server)

MCPAI代理

提供方 thingsboard

AI代理 SSE · 服务端推送 无需鉴权 社区 / 第三方

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,

一句话选型结论

按资料字段整理

Thingsboard MCP (thingsboard-mcp-server) 属于AI代理类 MCP 服务器,SSE · 服务端推送,无需鉴权,没有现成安装命令,需按官方文档接入。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类AI代理 传输方式SSE · 服务端推送 鉴权无需鉴权 部署方式远程部署
GitHub 星标 未标注 仓库热度,无公开仓库时显示未标注
工具数 未标注 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

AI代理
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量未标注暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

安装与配置

SSE · 服务端推送 无需鉴权
早期远程传输方式,正在被 HTTP 取代
  1. 1
    准备运行环境

    确认你的客户端支持远程端点,并拿到服务地址。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后随便调一个只读工具,确认能返回结果,再接入正式流程。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
给代理接外部能力

让代理在任务中途调用搜索、数据库等真实工具。

多步任务编排

把一串操作拆成步骤,由代理按顺序执行。

自动化重复流程

把固定流程交给代理跑,减少手工操作。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 资料标注无需鉴权,装好就能连。

先想清楚的地方

  • 远程端点依赖网络与服务方可用性,注意密钥与调用额度。
  • 没有现成安装命令,需要按官方文档自己填启动命令和参数。
  • 资料没标注工具数量,实际能力要装好后确认。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在AI代理场景里让模型直接调用外部能力的人。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
Thingsboard MCP (thingsboard-mcp-server)当前 未标注 SSE · 服务端推送 远程部署 无 2026-05-17
Filesystem 560c4363 13 未标注 本地部署 无 2026-05-17
Server Everything (everything) 11 stdio · 本地进程 本地部署 有 2026-05-17
Time 7365cb6d 2 SSE · 服务端推送 远程部署 有 2026-05-18
Everything Claude Code 未标注 stdio · 本地进程 本地部署 有 2026-05-17
Openmemory 557e1585 未标注 stdio · 本地进程 本地部署 有 2026-05-17

服务器档案

AI代理
字段来自项目仓库与公开索引,中文说明由本站标注
提供方thingsboard上游标注的维护方 thingsboard
分类AI代理本站按上游分类展示
连接方式SSE · 服务端推送早期远程传输方式,正在被 HTTP 取代
鉴权方式无需鉴权远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时未标注 · 未标注本地安装时用到的包标识与运行时
部署类型远程部署上游给出的部署形态
最近核验2026-05-17上游最后核验时间

详细介绍

16.5 KB
来自项目仓库与上游目录的原文,未做删改

ThingsBoard MCP Server

Connect AI agents to your ThingsBoard IoT platform via Model Context Protocol (MCP). Query devices, manage entities, analyze telemetry, and automate operations — all through natural language.

Works with Claude Desktop, Cursor, VS Code Copilot, Claude Code, and any MCP-compatible client.

Quick Start

You need a ThingsBoard instance (Cloud, EU Cloud, self-hosted CE/PE, or Edge) and an API key (ThingsBoard 4.3+) or username/password.

Claude Desktop

Add to your claude_desktop_config.json:```json
{
"mcpServers": {
"thingsboard": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "THINGSBOARD_URL", "-e", "THINGSBOARD_API_KEY", "thingsboard/mcp"],
"env": {
"THINGSBOARD_URL": "https://thingsboard.cloud",
"THINGSBOARD_API_KEY": "YOUR_API_KEY"
}
}
}
}


Cursor

Add to `~/.cursor/mcp.json` (global) or `.cursor/mcp.json` (project):```json
{
  "mcpServers": {
    "thingsboard": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "-e", "THINGSBOARD_URL", "-e", "THINGSBOARD_API_KEY", "thingsboard/mcp"],
      "env": {
        "THINGSBOARD_URL": "https://thingsboard.cloud",
        "THINGSBOARD_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

VS Code Copilot

Add to your VS Code settings.json or .vscode/mcp.json:```json
{
"mcp": {
"servers": {
"thingsboard": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "THINGSBOARD_URL", "-e", "THINGSBOARD_API_KEY", "thingsboard/mcp"],
"env": {
"THINGSBOARD_URL": "https://thingsboard.cloud",
"THINGSBOARD_API_KEY": "YOUR_API_KEY"
}
}
}
}
}


Claude Code```bash
claude mcp add thingsboard \
  -e THINGSBOARD_URL=https://thingsboard.cloud \
  -e THINGSBOARD_API_KEY=YOUR_API_KEY \
  -- docker run -i --rm -e THINGSBOARD_URL -e THINGSBOARD_API_KEY thingsboard/mcp

SSE Mode (any HTTP-based MCP client)

Start the server:```bash
docker run --rm -p 8000:8000 \
-e THINGSBOARD_URL=https://thingsboard.cloud \
-e THINGSBOARD_API_KEY=YOUR_API_KEY \
-e SPRING_AI_MCP_SERVER_STDIO=false \
-e SPRING_WEB_APPLICATION_TYPE=servlet \
thingsboard/mcp


Then point your MCP client to `http://localhost:8000/sse`.

> **Legacy auth**: If your ThingsBoard version is older than 4.3, use `THINGSBOARD_USERNAME` and `THINGSBOARD_PASSWORD` instead of `THINGSBOARD_API_KEY`.

## What You Can Do

Ask questions in natural language and get structured results from your ThingsBoard instance:

**Query devices and entities** · **Analyze time-series data**
**Generate and save telemetry** · **Get anomaly analysis**

**120+ tools** across 10 tool groups:

- **Devices** — create, update, delete, list, search by name/type/group
- **Assets** — CRUD, list by tenant/customer, search
- **Customers** — CRUD, list, search by title
- **Users** — CRUD, list, admin/customer user management
- **Alarms** — create, acknowledge, clear, delete, query by severity
- **Telemetry** — read/write attributes and time-series, aggregation, TTL
- **Relations** — create, delete, navigate entity relationships
- **OTA Packages** — upload, download, assign firmware/software to devices
- **Entity Groups** (PE) — manage groups, assign/remove entities
- **Entity Data Query** — complex filtered queries across all entity types with attribute/telemetry filters

## Installation

### Docker (Recommended)```bash
docker pull thingsboard/mcp

The Docker image supports two transport modes:

  • STDIO (default) — for clients that launch the server as a subprocess (Claude Desktop, Cursor, etc.)
  • SSE — for clients that connect over HTTP

See Quick Start for usage examples.

Download Binary```bash

wget https://github.com/thingsboard/mcp-server/releases/download/v2.1.0/thingsboard-mcp-server-2.1.0.jar


Run with:```bash
# STDIO mode
java -jar thingsboard-mcp-server-2.1.0.jar

# SSE mode
java -Dspring.ai.mcp.server.stdio=false -Dspring.main.web-application-type=servlet -jar thingsboard-mcp-server-2.1.0.jar

Binary client configuration

If you're using the JAR file instead of Docker, use this in your claude_desktop_config.json:```json
{
"mcpServers": {
"thingsboard": {
"command": "java",
"args": ["-jar", "/absolute/path/to/thingsboard-mcp-server-2.1.0.jar"],
"env": {
"THINGSBOARD_URL": "https://thingsboard.cloud",
"THINGSBOARD_API_KEY": "YOUR_API_KEY"
}
}
}
}


### Build from Source

Requires Java 17+ and Maven 3.6+.```bash
git clone https://github.com/thingsboard/mcp-server.git
cd mcp-server
mvn clean install -DskipTests
java -jar target/thingsboard-mcp-server-2.1.0.jar

Configuration

Environment Variables

Variable Description Default
THINGSBOARD_URL Base URL of your ThingsBoard instance required
THINGSBOARD_API_KEY API key for authentication (recommended for 4.3+)
THINGSBOARD_USERNAME Username for authentication (legacy)
THINGSBOARD_PASSWORD Password for authentication (legacy)
THINGSBOARD_LOGIN_INTERVAL_SECONDS Session refresh interval 1800
HTTP_BIND_ADDRESS HTTP bind address (SSE mode) 127.0.0.1
HTTP_BIND_PORT HTTP port (SSE mode) 8000
SPRING_AI_MCP_SERVER_STDIO Enable STDIO transport true
SPRING_WEB_APPLICATION_TYPE none for STDIO, servlet for SSE none
SPRING_AI_MCP_SERVER_SSE_ENDPOINT SSE endpoint path /sse
SPRING_AI_MCP_SERVER_SSE_MESSAGE_ENDPOINT SSE message endpoint path /mcp/message

Advanced: connection and logging

Variable · Description · Default
THINGSBOARD_CONNECTION_MAX_RETRIES · Max connection retry attempts · 3
THINGSBOARD_CONNECTION_RETRY_DELAY_SECONDS · Delay between retries · 5
THINGSBOARD_CONNECTION_CONNECT_TIMEOUT_SECONDS · HTTP connect timeout · 10
THINGSBOARD_CONNECTION_READ_TIMEOUT_SECONDS · HTTP read timeout · 60
LOG_LEVEL_APP · Application log level · info
LOG_LEVEL_TOOLS · Tool execution log level · info
LOG_LEVEL_TOOL_RESPONSE · Tool response log level · info
LOGGING_PATTERN_CONSOLE · Logback console pattern · %d{yyyy-MM-dd HH:mm:ss} \ · %-5level \ · %logger{1} \ · %msg%n
LOGGING_CONSOLE_TARGET · Log output target · System.err

Tool Groups

The server exposes 120+ tools which may exceed context limits for some clients. Disable groups you don't need:

Variable Group Tools Default
THINGSBOARD_TOOLS_EDQ Entity Data Query + Guides 40 true
THINGSBOARD_TOOLS_TELEMETRY Telemetry & Attributes 11 true
THINGSBOARD_TOOLS_DEVICE Devices 11 true
THINGSBOARD_TOOLS_ASSET Assets 8 true
THINGSBOARD_TOOLS_ALARM Alarms 9 true
THINGSBOARD_TOOLS_OTA OTA Packages 11 true
THINGSBOARD_TOOLS_RELATION Relations 8 true
THINGSBOARD_TOOLS_CUSTOMER Customers 7 true
THINGSBOARD_TOOLS_USER Users 9 true
THINGSBOARD_TOOLS_GROUP Entity Groups (PE only) 10 true

Example — reduce to ~50 tools for clients with limited context:json { "env": { "THINGSBOARD_TOOLS_EDQ": "false", "THINGSBOARD_TOOLS_OTA": "false", "THINGSBOARD_TOOLS_GROUP": "false", "THINGSBOARD_TOOLS_USER": "false" } }

Available Tools

Device Tools (11)

Tool Description
createOrUpsertDevice Create or update a device by name. Primary tool for most device tasks.
saveDevice Create or update the device object from raw JSON. Advanced tool.
deleteDevice Delete the device by id.
getDeviceById Fetch the Device object based on the provided Device Id.
getDeviceCredentialsByDeviceId Get device credentials by device id.
getTenantDevices Returns a page of devices owned by tenant.
getTenantDevice Get tenant device by name.
getCustomerDevices Returns a page of devices assigned to customer.
getUserDevices (PE) Returns a page of devices available for the current user.
getDevicesByIds Get devices by ids.
getDevicesByEntityGroupId (PE) Returns a page of devices in a specified entity group.

Asset Tools (8)

Tool Description
saveAsset Create or update the asset object.
deleteAsset Delete the asset by id.
getAssetById Get the Asset object by id.
getTenantAssets Returns a page of assets owned by tenant.
getTenantAsset Get tenant asset by name.
getCustomerAssets Returns a page of assets assigned to customer.
getUserAssets (PE) Returns a page of assets available for the current user.
getAssetsByEntityGroupId (PE) Returns a page of assets in a specified entity group.

Customer Tools (7)

Tool Description
saveCustomer Create or update the customer object.
deleteCustomer Delete the customer by id.
getCustomerById Get the Customer object by id.
getCustomers Returns a page of customers owned by tenant.
getTenantCustomer Get customer by title.
getUserCustomers (PE) Returns a page of customers available for the user.
getCustomersByEntityGroupId (PE) Returns a page of customers in a specified entity group.

User Tools (9)

Tool Description
saveUser Create or update the user object.
deleteUser Delete the user by id.
getUserById Fetch the User object by id.
getUsers Returns a page of users owned by tenant or customer.
getTenantAdmins Returns a page of tenant administrator users.
getCustomerUsers Returns a page of users assigned to a customer.
getAllCustomerUsers (PE) Returns a page of all customer users for the current tenant.
getUsersForAssign Returns users that can be assigned to an alarm.
getUsersByEntityGroupId (PE) Returns a page of users in a specified entity group.

Alarm Tools (9)

Tool Description
saveAlarm Create or update the alarm object.
deleteAlarm Delete the alarm by id.
ackAlarm Acknowledge the alarm.
clearAlarm Clear the alarm.
getAlarmInfoById Get alarm info by id (includes originator name).
getAlarms Get a page of alarms for the selected entity.
getAllAlarms Get a page of alarms for the current user owner.
getHighestAlarmSeverity Get highest alarm severity by originator.
getAlarmTypes Get unique alarm types.

OTA Tools (11)

Tool Description
saveOtaPackageInfo Create or update OTA package info.
saveOtaPackageData Upload OTA package binary from a file path.
downloadOtaPackage Download OTA package binary to a local file path.
getOtaPackageInfoById Get OTA package info by id.
getOtaPackageById Get OTA package by id.
getOtaPackages Get OTA packages (paged).
getOtaPackagesByDeviceProfile Get OTA packages by device profile and type.
assignOtaPackageToDevice Assign or clear OTA package for a device.
assignOtaPackageToDeviceProfile Assign or clear OTA package for a device profile.
countByDeviceProfileAndEmptyOtaPackage Count devices without assigned OTA package.
deleteOtaPackage Delete OTA package by id.

Relation Tools (8)

Tool Description
saveRelation Create or update a relation.
deleteRelation Delete a relation between two entities.
deleteRelations Delete all relations for an entity.
getRelation Get a relation between two entities.
findInfoByFrom Find relations from an entity (includes entity names).
findByFromWithRelationType Find relations from an entity filtered by type.
findInfoByTo Find relations to an entity (includes entity names).
findByToWithRelationType Find relations to an entity filtered by type.

Telemetry Tools (11)

Tool Description
getAttributeKeys Get all attribute keys for an entity.
getAttributeKeysByScope Get attribute keys by scope.
getAttributes Get attributes for an entity.
getAttributesByScope Get attributes by scope.
getTimeseriesKeys Get all time-series keys for an entity.
getLatestTimeseries Get latest time-series values.
getTimeseries Get time-series data for a time range.
saveDeviceAttributes Save device attributes.
saveEntityAttributesV2 Save entity attributes.
saveEntityTelemetry Save entity telemetry data.
saveEntityTelemetryWithTTL Save entity telemetry with TTL.

Entity Group Tools — PE only (10)

Tool Description
saveEntityGroup Create or update an entity group.
deleteEntityGroup Delete an entity group by id.
getEntityGroupById Get entity group by id.
getEntityGroupsByType Get entity groups by entity type.
getEntityGroupByOwnerAndNameAndType Get entity group by owner, type, and name.
getEntityGroupsByOwnerAndType Get entity groups by owner and type.
getEntityGroupsForEntity Get groups containing a specified entity.
getEntityGroupsByIds Get entity groups by ids.
addEntitiesToEntityGroup Add entities to a group.
removeEntitiesFromEntityGroup Remove entities from a group.

Entity Data Query Tools (19)

Complex filtered queries across all entity types. Supports entity fields, attributes, and latest telemetry with key filters.

Tool Description
findEntityDataBySingleEntityFilter Find data for one entity by ID.
findEntityDataByEntityGroupFilter (PE) Find data by entity group.
findEntityDataByEntityListFilter Find data for a list of entity IDs.
findEntityDataByEntityNameFilter Find data by name prefix.
findEntityDataByEntityTypeFilter Find data by entity type.
findEntityDataByEntityGroupListFilter (PE) Find data for multiple groups.
findEntityDataByEntityGroupNameFilter (PE) Find data for groups by name prefix.
findEntityDataByEntitiesGroupNameFilter (PE) Find data for entities in a named group.
findEntityDataByStateEntityOwnerFilter Find data for entity owner.
findEntityDataByAssetTypeFilter Find assets by type.
findEntityDataByDeviceTypeFilter Find devices by type.
findEntityDataByEdgeTypeFilter Find edges by type.
findEntityDataByEntityViewTypeFilter Find entity views by type.
findEntityDataByRelationsQueryFilter Find related entities.
findEntityDataByAssetSearchQueryFilter Find related assets.
findEntityDataByDeviceSearchQueryFilter Find related devices.
findEntityDataByEntityViewSearchQueryFilter Find related entity views.
findEntityDataByApiUsageStateFilter Find API usage data.
findEntityDataByEdgeQueryFilter Find related edges.

Entity Count Query Tools (18)

Count entities matching filters. Same filter types as Entity Data Query.

Tool Description
countBySingleEntityFilter Count by single entity ID.
countByEntityGroupFilter (PE) Count by entity group.
countByEntityListFilter Count by entity ID list.
countByEntityNameFilter Count by name prefix.
countByEntityTypeFilter Count by entity type.
countByEntityGroupListFilter (PE) Count by multiple groups.
countByEntityGroupNameFilter (PE) Count by group name prefix.
countByEntitiesGroupNameFilter (PE) Count entities in a named group.
countByAssetTypeFilter Count assets by type.
countByDeviceTypeFilter Count devices by type.
countByEdgeTypeFilter Count edges by type.
countByEntityViewTypeFilter Count entity views by type.
countByApiUsageStateFilter Count API usage rows.
countByRelationsQueryFilter Count related entities.
countByAssetSearchQueryFilter Count related assets.
countByDeviceSearchQueryFilter Count related devices.
countByEntityViewSearchQueryFilter Count related entity views.
countByEdgeQueryFilter Count related edges.

Guide Tools (3)

Documentation tools that help LLMs construct correct queries.

Tool Description
getEdqGuide Get documentation for creating Entity Data Queries.
getEdqCountGuide Get documentation for creating Entity Count Queries.
getKeyFiltersGuide Get documentation for creating key filters.

License

This project is licensed under the Apache License 2.0 — see the LICENSE file for details.

常见问题

7 问
答案由本站依据条目字段整理,不引用上游原文
Thingsboard MCP (thingsboard-mcp-server) 怎么安装?

资料没有给出安装命令,请到官方仓库或文档按说明接入;这类条目多数是生态应用,或尚未发布可安装包。

Thingsboard MCP (thingsboard-mcp-server) 怎么在客户端里配置?

它的传输方式未标注,在客户端 MCP 配置里按官方文档填写启动命令和参数,保存后重启客户端生效。

Thingsboard MCP (thingsboard-mcp-server) 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Thingsboard MCP (thingsboard-mcp-server) 需要 API Key 吗?

资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

Thingsboard MCP (thingsboard-mcp-server) 能提供哪些能力?

资料显示能力标签包括 设备管理、物联网、自然语言、AI代理、OAuth认证。具体工具清单以官方文档为准。

Thingsboard MCP (thingsboard-mcp-server) 需要什么运行环境?

属于远程端点,不需要在本地装运行时。

Thingsboard MCP (thingsboard-mcp-server) 是本地还是远程?

它是远程端点,连服务地址即可。传输方式为SSE · 服务端推送。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 2026-05-17。