Skip to main content
Glama
Abeautifulsnow

TDengine Query MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoSet the log level (DEBUG, INFO, WARN, ERROR)INFO
TDENGINE_HOSTNoDatabase host for environmentlocalhost
TDENGINE_PORTNoDatabase port6041
TDENGINE_TIMEOUTNoSet the connection timeout in seconds30
TDENGINE_DATABASENoDatabase namelog
TDENGINE_PASSWORDNoDatabase passwordtaosdata
TDENGINE_USERNAMENoDatabase usernameroot

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
test_table_existsB

Important: Check if the stable exists in the current Taos database(涛思数据库) configuration.

    Args:
        stable_name (str): The name of the stable.

    Returns:
        Dict: The `stable_name` exists or not in the current Taos configuration. If the `stable_name` does not exist, an empty dictionary is returned.

        The key of the dictionary is the `stable_name` name, and the value is a boolean indicating whether the `stable_name` exists.
    
get_all_dbsB

Get all databases.

    Returns:
        TaosSqlResponse: All databases in the current Taos configuration.
    
get_all_stablesC

Get all stables.

    Args:
        db_name (Optional[str]): The name of the database. Defaults to None. When the value is None, it means the configured database is used.

    Returns:
        TaosSqlResponse: All stables in the current Taos database.
    
switch_dbB

Switch to the specified database.

    Args:
        db_name (str): The name of the database to switch to.

    Returns:
        TaosSqlResponse: The result of the `USE` command.
    
get_field_infosC

Get the field information of the specified stable.

    Args:
        db_name (Optional[str]): The name of the database. Defaults to None. When the value is None, it means the configured database is used.
        stable_name (str): The name of the stable.

    Returns:
        TaosSqlResponse: The field information of the specified stable.
    
query_taos_db_dataB

Important: Run a read-only SQL query on Taos database(涛思数据库).

    Args:
        sql_stmt (str): The sql statement you want to retrieve data from taos db.

    Returns:
        List: All data from the specified table.

Prompts

Interactive templates invoked by user choice

NameDescription
taos_queryA guide to steer llm how to query Taos(涛思) database.
describe_query_prompt Generate a prompt to ask an LLM to explain what a given SQL query does. Args: query: The SQL query string. Returns: A list containing a prompt message to explain the query.

Resources

Contextual data attached and managed by the client

NameDescription
get_current_taos_databaseGet current mysql database.
get_current_db_all_taos_schemaProvide all schema in the current database.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Abeautifulsnow/tdengine-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server