IoTDB MCP 服务器
概述
模型上下文协议 (MCP) 服务器实现,通过 IoTDB 提供数据库交互和商业智能功能。此服务器支持运行 SQL 查询。
成分
资源
服务器不公开任何资源。
提示
服务器没有提供任何提示。
工具
IoTDB 服务器提供了针对树形模型和表模型的不同工具。您可以通过将“IOTDB_SQL_DIALECT”配置设置为“tree”或“table”来选择。
树模型
metadata_query执行 SHOW/COUNT 查询以从数据库读取元数据
输入:
query_sql(字符串):要执行的 SHOW/COUNT SQL 查询
返回:查询结果作为对象数组
select_query执行 SELECT 查询以从数据库读取数据
输入:
query_sql(字符串): 要执行的 SELECT SQL 查询
返回:查询结果作为对象数组
表格模型
查询工具
read_query执行 SELECT 查询以从数据库读取数据
输入:
query(字符串):要执行的 SELECT SQL 查询
返回:查询结果作为对象数组
架构工具
list_tables获取数据库中所有表的列表
无需输入
返回:表名称数组
describe-table查看特定表的架构信息
输入:
table_name(字符串):要描述的表的名称
返回:具有名称和类型的列定义数组
Claude 桌面集成
先决条件
Python 与
uv包管理器IoTDB 安装
MCP 服务器依赖项
发展
在Claude Desktop的配置文件中配置MCP服务器:
MacOS
位置: ~/Library/Application Support/Claude/claude_desktop_config.json
视窗
位置: %APPDATA%/Claude/claude_desktop_config.json
您可能需要在命令字段中输入 uv 可执行文件的完整路径。您可以在 MacOS/Linux 上运行
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
一种能够针对 IoTDB 数据库运行 SQL 查询的服务器,通过模型上下文协议接口提供数据读取功能和模式信息。
Related MCP Servers
- Asecurity-licenseAqualityA Model Context Protocol server that enables secure interaction with Microsoft SQL Server databases, allowing AI assistants to list tables, read data, and execute SQL queries through a controlled interface.Last updated -254MIT License
- Asecurity-licenseAqualityA Model Context Protocol server that enables executing SQL queries and managing connections with Microsoft SQL Server databases.Last updated -1546MIT License
- -security-license-qualityA Model Context Protocol server that enables AI assistants to securely interact with Apache IoTDB databases through a controlled interface for listing tables, reading data, and executing SQL queries.