
MCP Database Server
The MCP Database Server enables secure, programmatic access to popular databases like SQLite, SQL Server, PostgreSQL, and MySQL for AI assistants and automation...
Integrate IoTDB with your AI tools and workflows using the IoTDB MCP Server for powerful, real-time time-series data analytics, schema exploration, and automated business intelligence.
The Apache IoTDB MCP Server is an implementation of the Model Context Protocol (MCP) designed to provide seamless database interaction and business intelligence capabilities through IoTDB, a time-series database. By acting as a bridge, it enables AI assistants and clients to execute SQL queries against IoTDB, supporting data analysis and management tasks directly through natural language or programmatic LLM-driven workflows. Developers can use the MCP server to perform database queries, view schema information, and retrieve metadata, enhancing their ability to integrate IoTDB into AI-powered development environments for tasks such as querying time-series data and managing database schemas.
The server doesn’t provide any prompts.
The server doesn’t expose any resources.
The IoTDB MCP Server offers different tools depending on the selected SQL dialect (“tree” or “table”).
Tree Model
metadata_query
query_sql
(string) – The SHOW/COUNT SQL query to execute.select_query
query_sql
(string) – The SELECT SQL query to execute.Table Model
Query Tools
read_query
query
(string) – The SELECT SQL query to execute.Schema Tools
list_tables
describe-table
table_name
(string) – Name of the table to describe.uv
package manager.{
"mcpServers": {
"iotdb": {
"command": "uv",
"args": [
"--directory",
"YOUR_REPO_PATH/src/iotdb_mcp_server",
"run",
"server.py"
],
"env": {
"IOTDB_HOST": "127.0.0.1",
"IOTDB_PORT": "6667",
"IOTDB_USER": "root",
"IOTDB_PASSWORD": "root",
"IOTDB_DATABASE": "test",
"IOTDB_SQL_DIALECT": "table"
}
}
}
}
uv
, and IoTDB as prerequisites.~/Library/Application Support/Claude/claude_desktop_config.json
; on Windows, edit %APPDATA%/Claude/claude_desktop_config.json
.{
"mcpServers": {
"iotdb": {
"command": "uv",
"args": [
"--directory",
"YOUR_REPO_PATH/src/iotdb_mcp_server",
"run",
"server.py"
],
"env": {
"IOTDB_HOST": "127.0.0.1",
"IOTDB_PORT": "6667",
"IOTDB_USER": "root",
"IOTDB_PASSWORD": "root",
"IOTDB_DATABASE": "test",
"IOTDB_SQL_DIALECT": "table"
}
}
}
}
uv
, and IoTDB are installed.{
"mcpServers": {
"iotdb": {
"command": "uv",
"args": [
"--directory",
"YOUR_REPO_PATH/src/iotdb_mcp_server",
"run",
"server.py"
],
"env": {
"IOTDB_HOST": "127.0.0.1",
"IOTDB_PORT": "6667",
"IOTDB_USER": "root",
"IOTDB_PASSWORD": "root",
"IOTDB_DATABASE": "test",
"IOTDB_SQL_DIALECT": "table"
}
}
}
}
uv
, and IoTDB.{
"mcpServers": {
"iotdb": {
"command": "uv",
"args": [
"--directory",
"YOUR_REPO_PATH/src/iotdb_mcp_server",
"run",
"server.py"
],
"env": {
"IOTDB_HOST": "127.0.0.1",
"IOTDB_PORT": "6667",
"IOTDB_USER": "root",
"IOTDB_PASSWORD": "root",
"IOTDB_DATABASE": "test",
"IOTDB_SQL_DIALECT": "table"
}
}
}
}
Securing API Keys
API credentials such as IOTDB_USER
and IOTDB_PASSWORD
are managed via the env
field in the configuration. Use environment variables to avoid hard-coding sensitive data. Example:
"env": {
"IOTDB_HOST": "127.0.0.1",
"IOTDB_PORT": "6667",
"IOTDB_USER": "${IOTDB_USER}",
"IOTDB_PASSWORD": "${IOTDB_PASSWORD}",
"IOTDB_DATABASE": "test"
}
And set these environment variables in your system before starting the server.
Using MCP in FlowHunt
To integrate MCP servers into your FlowHunt workflow, start by adding the MCP component to your flow and connecting it to your AI agent:
Click on the MCP component to open the configuration panel. In the system MCP configuration section, insert your MCP server details using this JSON format:
{
"iotdb": {
"transport": "streamable_http",
"url": "https://yourmcpserver.example/pathtothemcp/url"
}
}
Once configured, the AI agent is now able to use this MCP as a tool with access to all its functions and capabilities. Remember to change “iotdb” to whatever the actual name of your MCP server is and replace the URL with your own MCP server URL.
Section | Availability | Details/Notes |
---|---|---|
Overview | ✅ | |
List of Prompts | ⛔ | No prompts provided |
List of Resources | ⛔ | No resources exposed |
List of Tools | ✅ | See tree/table model tools above |
Securing API Keys | ✅ | Uses env in config |
Sampling Support (less important in evaluation) | ⛔ | Not mentioned |
The IoTDB MCP Server is a focused, minimal implementation providing essential database-interaction tools for IoTDB. It lacks advanced MCP features such as prompts, resources, roots, and sampling, but is well-suited for its specific use-case in time-series database access. Setup is well-documented for Claude Desktop; other integrations are inferred but standard. Overall, this is a niche but solid MCP server for database-centric workflows.
Has a LICENSE | ✅ (Apache-2.0) |
---|---|
Has at least one tool | ✅ |
Number of Forks | 10 |
Number of Stars | 24 |
The IoTDB MCP Server is a Model Context Protocol implementation that acts as a bridge between AI tools and the Apache IoTDB time-series database, enabling natural language or programmatic SQL queries, schema exploration, and metadata access within AI workflows.
It provides tools for SELECT queries, metadata queries, listing tables, and describing table schemas—covering both tree and table SQL dialects. These enable reading time-series data, examining database structure, and retrieving metadata.
Ideal use cases include time-series database management, schema exploration, business intelligence integration, automated data analytics, and metadata inspection—all powered by AI assistants or LLM-based developer environments.
Set sensitive credentials like IOTDB_USER and IOTDB_PASSWORD using environment variables in your MCP server configuration to avoid hard-coding them.
No, the current implementation focuses on essential database interaction tools and does not provide prompts, resources, or sampling features.
Supercharge your time-series analytics and database management in AI workflows by connecting IoTDB through the MCP Server. Experience seamless SQL querying, schema exploration, and metadata insights.
The MCP Database Server enables secure, programmatic access to popular databases like SQLite, SQL Server, PostgreSQL, and MySQL for AI assistants and automation...
The YDB MCP Server connects AI assistants and LLMs with YDB databases, enabling natural language access, querying, and management of YDB instances. It empowers ...
The MariaDB MCP Server provides secure, read-only access to MariaDB databases for AI assistants, enabling workflow automation, data analytics, and business inte...