
TDengine MCP Server.
概览
A Model Context Protocol (MCP) server that provides TDengine database queries for AI assistants. Execute queries, explore database structures, and investigate your data directly from your AI-powered tools. This MCP server works with any tool that supports the Model Context Protocol, including: - : Set up in .cursor/mcp.json - : Use with a compatible MCP client - : Follow the tool's MCP configuration instructions - ✅ Execute TDengine queries (SELECT, SHOW, DESCRIBE only) - ✅ Provide database/stable information and metadata - ✅ List available database and stables - ❌ Execute write operations (INSERT, UPDATE, DELETE, CREATE, ALTER, etc.) - ❌ Provide database design or schema generation capabilities - ❌ Function as a full database management tool This tool is designed specifically for through read-only queries. to use this MCP server is to run it directly with uv without installation. This is how both Claude Desktop and Cursor are configured to use it in the examples below.
README
以下为原文 README 节选,完整内容请查看原文。
TDengine Query MCP Server
A Model Context Protocol (MCP) server that provides read-only TDengine database queries for AI assistants. Execute queries, explore database structures, and investigate your data directly from your AI-powered tools.
Supported AI Tools
This MCP server works with any tool that supports the Model Context Protocol, including:
- Cursor IDE: Set up in
.cursor/mcp.json - Anthropic Claude: Use with a compatible MCP client
- Other MCP-compatible AI assistants: Follow the tool’s MCP configuration instructions
Features & Limitations
What It Does
- ✅ Execute read-only TDengine queries (SELECT, SHOW, DESCRIBE only)
- ✅ Provide database/stable information and metadata
- ✅ List available database and stables
What It Doesn’t Do
- ❌ Execute write operations (INSERT, UPDATE, DELETE, CREATE, ALTER, etc.)
- ❌ Provide database design or schema generation capabilities
- ❌ Function as a full database management tool
This tool is designed specifically for data investigation and exploration through read-only queries. It is not intended for database administration, schema management, or data modification.
How to use
Run from source code
The recommended way to use this MCP server is to run it directly with uv without installation. This is how both Claude Desktop and Cursor are configured to use it in the examples below.
If you want to clone the repository:
git clone https://github.com/Abeautifulsnow/tdengine-mcp.git
cd tdengine-mcp
Then you can run the server directly:
uv run src/tdengine_mcp_server -th 192.100.8.22 -db log -ll debug
Alternatively you can change the .env file in the src/tdengine_mcp_server/ directory to set the environment variables and run the server with the following command:
uv run src/tdengine_mcp_server
Important: the .env file will have higher priority than the command line arguments.
Install From Pypi by pip command
# Install globally with pip
pip install tdengine_mcp_server
and then run:
python -m tdengine_mcp_server -h
Install by uvx command
uvx tdengine-mcp-server -h
Install From smithery by npx command
npx -y @smithery/cli@latest install @Abeautifulsnow/tdengine-mcp --client cursor --config '"{}"'
You can change the client after the --client option with alternatives claude, ‘windsurf’ and so on. Also you can refer to this: smithery/tdengine-mcp-server
Configuration Options
.env file
| Environment Variable | Description | Default |
|---|
安装
uvx tdengine-mcp-server -h