Skip to content
appsgit

Greptimedb MCP Server

Greptimedb MCP Server is an MCP server that adds cloud and DevOps tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Query GreptimeDB metrics, logs and traces with SQL, TQL and RANGE. It has 29 GitHub stars, is released under the MIT license and runs locally with uvx greptimedb-mcp-server.

github.com/GreptimeTeam/greptimedb-mcp-server (opens in a new tab)

Install Greptimedb MCP Server

Generated from the server's MCP registry entry. Replace your-value with your own values.

Claude Desktop

claude_desktop_config.json
{
  "mcpServers": {
    "greptimedb-mcp-server": {
      "command": "uvx",
      "args": [
        "greptimedb-mcp-server"
      ],
      "env": {
        "GREPTIMEDB_PASSWORD": "your-value"
      }
    }
  }
}

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

Claude Code

claude mcp add --env GREPTIMEDB_PASSWORD=your-value --transport stdio greptimedb-mcp-server -- uvx greptimedb-mcp-server

Cursor

.cursor/mcp.json
{
  "mcpServers": {
    "greptimedb-mcp-server": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "greptimedb-mcp-server"
      ],
      "env": {
        "GREPTIMEDB_PASSWORD": "your-value"
      }
    }
  }
}

Project file; use ~/.cursor/mcp.json to enable it in every project.

VS Code

.vscode/mcp.json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "greptimedb_password",
      "description": "GREPTIMEDB_PASSWORD",
      "password": true
    }
  ],
  "servers": {
    "greptimedb-mcp-server": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "greptimedb-mcp-server"
      ],
      "env": {
        "GREPTIMEDB_PASSWORD": "${input:greptimedb_password}"
      }
    }
  }
}

Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).

Environment variables

Variables the server reads at startup.

NameRequiredDescription
GREPTIMEDB_HOSTNoGreptimeDB host address
GREPTIMEDB_PORTNoGreptimeDB MySQL protocol port (default: 4002)
GREPTIMEDB_USERNoDatabase username
GREPTIMEDB_PASSWORDsecretNoDatabase password
GREPTIMEDB_DATABASENoDatabase name to connect to
GREPTIMEDB_TIMEZONENoSession timezone (default: UTC)
GREPTIMEDB_POOL_SIZENoConnection pool size (default: 5)
GREPTIMEDB_HTTP_PORTNoHTTP API port for pipeline/dashboard management (default: 4000)
GREPTIMEDB_HTTP_PROTOCOLNoHTTP protocol for pipeline/dashboard API: http or https (default: http)
GREPTIMEDB_MASK_ENABLEDNoEnable sensitive data masking (default: true)
GREPTIMEDB_MASK_PATTERNSNoAdditional column name patterns for data masking (comma-separated)
GREPTIMEDB_AUDIT_ENABLEDNoEnable audit logging for tool invocations (default: true)
GREPTIMEDB_ALLOW_WRITENoAllow write/destructive SQL (DDL/DML) via execute_sql by skipping the security gate. DANGEROUS: only use on local or test instances (default: false)

Tools (8)

Parsed from the Tools section of the README; check the repository for the current list.

  • execute_sql

    Execute SQL queries with format (csv/json/markdown) and limit options

  • execute_tql

    Execute TQL (PromQL-compatible) queries for time-series analysis

  • query_range

    Execute time-window aggregation queries with RANGE/ALIGN syntax

  • search_table_semantics

    Find tables by observability concept, ranked by matched terms; searches table names, semantic options, and entity…

  • query_semantic_graph

    Query the semantic graph: summary (what it contains), entities (nodes), relationships (edges) over a required time…

  • describe_table

    Inspect a table profile: schema, semantic metadata, latest sample rows, and query guidance

  • explain_query

    Analyze SQL or TQL query execution plans (analyze=true for runtime stats; add verbose=true alongside analyze=true for…

  • health_check

    Check database connection status and server version

About Greptimedb MCP Server

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

  • greptimedb
  • mcp-server
  • observability-data
  • time-series-analysis
  • observability

FAQ

Greptimedb MCP Server FAQ

Still curious? Email info@appsgit.com.

What is Greptimedb MCP Server?

Greptimedb MCP Server is an MCP server that adds cloud and DevOps tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Query GreptimeDB metrics, logs and traces with SQL, TQL and RANGE. It has 29 GitHub stars, is released under the MIT license and runs locally with uvx greptimedb-mcp-server. The source code is at github.com/GreptimeTeam/greptimedb-mcp-server.

How do I install the Greptimedb MCP Server MCP server?

Add the command uvx greptimedb-mcp-server to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.

Is Greptimedb MCP Server free?

The server is open source under the MIT license, so running it is free. It needs credentials (GREPTIMEDB_PASSWORD) for the service it connects to, which may require a paid account.

Is Greptimedb MCP Server actively maintained?

The most recent commit was on Sep 14, 2026. The latest release is v0.6.0, published Sep 14, 2026. appsgit only lists MCP servers with a commit in the last six months and re-checks every server daily.