GreptimeDB MCP Server

Provides AI assistants with a secure and structured way to explore and analyze data in GreptimeDB.

Local serverstdioGo

What is the GreptimeDB MCP Server?

GreptimeDB becomes available to MCP clients through the greptimedb mcp server. Provides AI assistants with a secure and structured way to explore and analyze data in GreptimeDB.

What GreptimeDB does

A Model Context Protocol (MCP) server for GreptimeDB — an open-source observability database that handles metrics, logs, and traces in one engine.

Practical notes

  • Written in Go.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
execute_sqlExecute SQL queries with format (csv/json/markdown) and limit options
execute_tqlExecute TQL (PromQL-compatible) queries for time-series analysis
query_rangeExecute time-window aggregation queries with RANGE/ALIGN syntax
search_table_semanticsFind tables by observability concept, ranked by matched terms; searches table names, semantic options, and entity declarations
query_semantic_graphQuery the semantic graph: summary (what it contains), entities (nodes), relationships (edges) over a required time window
describe_tableInspect a table profile: schema, semantic metadata, latest sample rows, and query guidance
explain_queryAnalyze SQL or TQL query execution plans (analyze=true for runtime stats; add verbose=true alongside analyze=true for per-partition scan metrics and index-pruni
health_checkCheck database connection status and server version

How to install the GreptimeDB MCP Server

{
  "mcpServers": {
    "greptimedb": {
      "command": "greptimedb-mcp-server",
      "args": [
        "--host",
        "localhost",
        "--database",
        "public"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Example prompts to try

  • “Use GreptimeDB to execute sql.”
  • “Use GreptimeDB to execute tql.”
  • “Use GreptimeDB to query range.”

Frequently asked questions

Provides AI assistants with a secure and structured way to explore and analyze data in GreptimeDB. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.