
This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that provides read-only TDengine database queries, metadata exploration tools, resources, and prompts for AI assistants.
TDengine Query MCP Server is cataloged as an MCP server attributed to abeautifulsnow. A Model Context Protocol server that provides read-only TDengine database queries, metadata exploration tools, resources, and prompts for AI assistants. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for TDengine Query MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
No, it is read-only and does not execute write operations or provide database administration, schema management, or data modification.
It supports stdio, sse, and streamable-http transports, with http as an alias of streamable-http.
README.md · 4a6ab9665789 · 采集于 2026-11-13 10:12:13 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
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.
Requirements: Python 3.12+ and the MCP Python SDK v2 (
mcp>=2.3,<3). See Migrating to MCP SDK v2 if you are coming from0.0.x.
This MCP server works with any tool that supports the Model Context Protocol, including:
.cursor/mcp.jsonThis 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.
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.
pip command# Install globally with pip
pip install tdengine_mcp_server
and then run:
python -m tdengine_mcp_server -h
uvx commanduvx tdengine-mcp-server -h
npx commandnpx -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
| Environment Variable | Description | Default |
|---|---|---|
| LOG_LEVEL | Set the log level (DEBUG, INFO, WARN, ERROR) | INFO |
| TDENGINE_HOST | Database host for environment | localhost |
| TDENGINE_PORT | Database port | 6041 |
| TDENGINE_USERNAME | Database username | root |
| TDENGINE_PASSWORD | Database password | taosdata |
| TDENGINE_DATABASE | Database name | log |
| TDENGINE_TIMEOUT | Set the connection timeout in seconds | 30 |
| TRANSPORT | Control the transport to use (stdio / sse / streamable-http; http is an alias of streamable-http) | stdio |
| MCP_HOST | Host to bind for the HTTP transports (sse / streamable-http) | 0.0.0.0 |
| MCP_PORT | Port to bind for the HTTP transports (sse / streamable-http) | 8000 |
.envis loaded by the server itself (python-dotenv), not by the MCP SDK. Since SDK v2 no longer readsMCP_*variables or.envfiles on its own,MCP_HOST/MCP_PORTare honoured by this server's own configuration layer.
$ python3 -m tdengine_mcp_server -h
usage: __main__.py [-h] [-th TAOS_HOST] [-tp TAOS_PORT] [-tu TAOS_USERNAME]
[-pwd TAOS_PASSWORD] [-db TAOS_DATABASE] [-to TAOS_TIMEOUT]
[-ll LOG_LEVEL] [-trans {sse,stdio,http,streamable-http}]
[--host HOST] [--port PORT]
TDengine MCP Server
options:
-h, --help show this help message and exit
-th, --taos-host TAOS_HOST
TDengine host address. Default: `localhost`
-tp, --taos-port TAOS_PORT
TDengine port number. Default: `6041`
-tu, --taos-username TAOS_USERNAME
TDengine username. Default: `root`
-pwd, --taos-password TAOS_PASSWORD
TDengine password. Default: `taosdata`
-db, --taos-database TAOS_DATABASE
TDengine database name. Default: `default`
-to, --taos-timeout TAOS_TIMEOUT
TDengine connection timeout. Default: `30`
-ll, --log-level LOG_LEVEL
Log level. Default: `INFO`
-trans {sse,stdio,http,streamable-http}, --transport {sse,stdio,http,streamable-http}
The transport to use (`http` is an alias of
`streamable-http`). Default: `sse`
--host HOST Host to bind for the HTTP transports (sse /
streamable-http). Default: `0.0.0.0`
--port PORT Port to bind for the HTTP transports (sse /
streamable-http). Default: `8000`
HTTP endpoints: sse serves GET /sse (messages back to POST /messages/), http / streamable-http serves /mcp. The HTTP transport runs stateless with JSON responses, so it can sit behind a plain reverse proxy or load balancer.
Your AI assistant can interact with TDengine databases through the MCP server. Here are some examples:
Example queries:
Can you use the query tool to show me the first 10 records from the database?
I need to analyze our sales data. Can you run a SQL query to get the total sales per region for last month from the development database?
Can you list all the available databases we have?
The server exposes six tools, two resources and two prompts:
| Tool | Purpose |
|---|---|
query_taos_db_data | Run any read-only SQL (SELECT, SHOW, DESCRIBE, ...) |
get_all_dbs | List databases |
get_all_stables | List stables of a database (defaults to the configured one) |
get_field_infos | DESCRIBE a stable (field name / type / length / note) |
test_table_exists | Check whether a stable exists |
switch_db | USE <db> for the current session |
| Resource | Purpose |
|---|---|
taos://database | Database list as text |
taos://schemas | All stables + field schema as JSON |
| Prompt | Purpose |
|---|---|
taos_query | TDengine-oriented prompt for writing queries |
describe_query_prompt | Ask the model to explain a given SQL statement |
Example:
Use the query_taos_db_data tool to run:
SELECT * FROM customers WHERE itemid > '2025-01-01' LIMIT 10;
Use the get_field_infos tool to check the meta info about the specified stable.
If you're having trouble connecting:
LOG_LEVEL in your configurationError: Query execution failed
Version 0.1.0 upgrades the server from MCP Python SDK 1.6.0 to 2.3.0. The MCP surface (tool / resource / prompt names and arguments) is unchanged, so existing MCP clients keep working. Internally:
FastMCP was renamed to MCPServer; mcp.server.fastmcp.* no longer exists and all imports moved to mcp.server.mcpserver.*.host, port, json_response, stateless_http) are no longer constructor settings: they are passed to run(), and streamable-http (alias http) is available as a third transport. The MCP_HOST / MCP_PORT environment variables are read by this project instead of the SDK.Error executing tool <name> to the client, so database and SQL errors are raised as ToolError to keep the real reason visible to the model.taosrest HTTP calls no longer stall the event loop.mcp 2.x pulls mcp-types, httpx2 and opentelemetry-api, and requires pydantic>=2.12; httpx / httpx-sse / pydantic-settings are no longer installed.Contributions are welcome! Please feel free to submit a Pull Request.
For more information or support, please open an issue on the GitHub repository.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for TDengine Query MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/tdengine-mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that lets AI assistants run SQL queries against AWS Athena databases and retrieve results.

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.