greptimedb-mcp-server

v0.6.0
io.github.GreptimeTeam/greptimedb-mcp-server Checked 7 hours ago Published 2 months ago

Query GreptimeDB metrics, logs and traces with SQL, TQL and RANGE.

Values you need

VariableWhat it is
GREPTIMEDB_HOSToptional GreptimeDB host address
GREPTIMEDB_PORToptional GreptimeDB MySQL protocol port (default: 4002)
GREPTIMEDB_USERoptional Database username
GREPTIMEDB_PASSWORDoptional secret Database password
GREPTIMEDB_DATABASEoptional Database name to connect to
GREPTIMEDB_TIMEZONEoptional Session timezone (default: UTC)
GREPTIMEDB_POOL_SIZEoptional Connection pool size (default: 5)
GREPTIMEDB_HTTP_PORToptional HTTP API port for pipeline/dashboard management (default: 4000)
GREPTIMEDB_HTTP_PROTOCOLoptional HTTP protocol for pipeline/dashboard API: http or https (default: http)
GREPTIMEDB_MASK_ENABLEDoptional Enable sensitive data masking (default: true)
GREPTIMEDB_MASK_PATTERNSoptional Additional column name patterns for data masking (comma-separated)
GREPTIMEDB_AUDIT_ENABLEDoptional Enable audit logging for tool invocations (default: true)
GREPTIMEDB_ALLOW_WRITEoptional Allow write/destructive SQL (DDL/DML) via execute_sql by skipping the security gate. DANGEROUS: only use on local or test instances (default: false)

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add greptimedb-mcp-server -- uvx greptimedb-mcp-server==0.6.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "greptimedb-mcp-server": {
      "args": [
        "greptimedb-mcp-server==0.6.0"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "greptimedb-mcp-server": {
      "args": [
        "greptimedb-mcp-server==0.6.0"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "greptimedb-mcp-server": {
      "args": [
        "greptimedb-mcp-server==0.6.0"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.greptimedb-mcp-server]
command = "uvx"
args = ["greptimedb-mcp-server==0.6.0"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: execute_sql, describe_table, search_table_semantics, query_semantic_graph, health_check, execute_tql, query_range, explain_query, ….
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json