IoTDB MCP Server

Apache IoTDB MCP Server

Local serverstdioPython

What is the IoTDB MCP Server?

Apache IoTDB MCP Server

The short version

A Model Context Protocol (MCP) server implementation that provides database interaction and business intelligence capabilities through IoTDB. This server enables running SQL queries and interacting with IoTDB using different SQL dialects (Tree Model and Table Model).

The tools it exposes

The server publishes 5 tools. What each one is for:

  • Resources — The Resources tool exposed by this server
  • Prompts — The Prompts tool exposed by this server
  • Tools — The server offers different tools for IoTDB Tree Model and Table Model. You can choose between them by setting the "IOTDB_SQL_DIALECT" configuration
  • macOS — Location: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows — The Windows tool exposed by this server

What it needs from you

  • Python environment - uv package manager - IoTDB installation - MCP server dependencies

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Configuration

  • Python environment - uv package manager - IoTDB installation - MCP server dependencies
VariableDescriptionRequired
IOTDB_HOSTEndpoint or connection string the server talks to.Optional
IOTDB_PORTConfiguration value read at startup.Optional
IOTDB_USERConfiguration value read at startup.Optional
IOTDB_PASSWORDConfiguration value read at startup.Optional
IOTDB_DATABASEConfiguration value read at startup.Optional
IOTDB_SQL_DIALECTConfiguration value read at startup.Optional
IOTDB_EXPORT_PATHFilesystem location the server is allowed to use.Optional

Example prompts to try

  • “Use IoTDB to Resources.”
  • “Use IoTDB to Prompts.”
  • “Use IoTDB to Tools.”

Frequently asked questions

Two dialects: **tree** (for timeseries metadata and data) and **table** (for relational tables). Set the `IOTDB_SQL_DIALECT` environment variable to `tree` or `table`.