io.github.GreptimeTeam/greptimedb-mcp-server

MCP

by GreptimeTeam · v0.4.7

Query and analyze GreptimeDB metrics, logs and traces via SQL, TQL and RANGE queries.

mcplocal

MCP configuration

stdio

Command

uvx greptimedb-mcp-server==0.4.7 --host --port --database --user --password --timezone

Environment

  • GREPTIMEDB_HOST

    GreptimeDB host address

  • GREPTIMEDB_PORT

    GreptimeDB MySQL protocol port (default: 4002)

  • GREPTIMEDB_USER

    Database username

  • GREPTIMEDB_PASSWORDsecret

    Database password

  • GREPTIMEDB_DATABASE

    Database name to connect to

  • GREPTIMEDB_TIMEZONE

    Session timezone (default: UTC)

  • GREPTIMEDB_POOL_SIZE

    Connection pool size (default: 5)

  • GREPTIMEDB_HTTP_PORT

    HTTP API port for pipeline management (default: 4000)

  • GREPTIMEDB_HTTP_PROTOCOL

    HTTP protocol for pipeline API: http or https (default: http)

  • GREPTIMEDB_MASK_ENABLED

    Enable sensitive data masking (default: true)

  • GREPTIMEDB_MASK_PATTERNS

    Additional column name patterns for data masking (comma-separated)

  • GREPTIMEDB_AUDIT_ENABLED

    Enable audit logging for tool invocations (default: true)

Install in one click with Zurek

Browse here, install from the native macOS app — pick targets, fill env vars, and write configs safely.