The IoTDB MCP Server provides an interface for interacting with IoTDB databases with the following capabilities:
SQL Query Execution: Execute SELECT queries using both Tree and Table SQL dialects for data retrieval
Metadata Operations: Run SHOW and COUNT queries for metadata (databases, timeseries, devices)
Schema Management: List all tables and describe table schemas (column names and types)
Data Export: Export query results to CSV or Excel files
Performance Optimizations: Includes session pooling, connection retry mechanisms, and timeout management
Connectivity: Configure connections using host, port, username, password, and database name
SQL Dialect Support: Switch between "Tree" and "Table" SQL dialects as needed
Provides database interaction with Apache IoTDB, enabling execution of SQL queries to read data, list tables, and describe table schemas.
IoTDB MCP Server
Overview
A Model Context Protocol (MCP) server implementation that provides database interaction and business intelligence capabilities through IoTDB. This server enables running SQL queries.
Related MCP server: Microsoft SQL Server MCP Server
Components
Resources
The server doesn't expose any resources.
Prompts
The server doesn't provide any prompts.
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 to either "tree" or "table".
Tree Model
metadata_queryExecute SHOW/COUNT queries to read metadata from the database
Input:
query_sql(string): The SHOW/COUNT SQL query to execute
Returns: Query results as array of objects
select_queryExecute SELECT queries to read data from the database
Input:
query_sql(string): The SELECT SQL query to execute
Returns: Query results as array of objects
Table Model
Query Tools
read_queryExecute SELECT queries to read data from the database
Input:
query(string): The SELECT SQL query to execute
Returns: Query results as array of objects
Schema Tools
list_tablesGet a list of all tables in the database
No input required
Returns: Array of table names
describe-tableView schema information for a specific table
Input:
table_name(string): Name of table to describe
Returns: Array of column definitions with names and types
Claude Desktop Integration
Prerequisites
Python with
uvpackage managerIoTDB installation
MCP server dependencies
Development
Configure the MCP server in Claude Desktop's configuration file:
MacOS
Location: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows
Location: %APPDATA%/Claude/claude_desktop_config.json
You may need to put the full path to the uv executable in the command field. You can get this by running