Skip to main content

Greptimedb MCP Server

io.github.GreptimeTeam/greptimedb-mcp-server

v0.6.0Updated Sep 14, 2026stdio · PyPI

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

Install

Replace 1 placeholder with your own values.

Run in your terminal. Replace 1 placeholder.

claude mcp add greptimedb-mcp-server -- uvx greptimedb-mcp-server==0.6.0 --password '<your-password>'

Configuration

19 settings.

  • GREPTIMEDB_PASSWORD
    Env var· optional· secret
    Database password
  • --password
    Argument· optional· secret
    Database password
  • GREPTIMEDB_HOST
    Env var· optional
    GreptimeDB host address
  • GREPTIMEDB_PORT
    Env var· optional
    GreptimeDB MySQL protocol port (default: 4002)
  • GREPTIMEDB_USER
    Env var· optional
    Database username
  • GREPTIMEDB_DATABASE
    Env var· optional
    Database name to connect to
Show 13 more
  • GREPTIMEDB_TIMEZONE
    Env var· optional
    Session timezone (default: UTC)
  • GREPTIMEDB_POOL_SIZE
    Env var· optional
    Connection pool size (default: 5)
  • GREPTIMEDB_HTTP_PORT
    Env var· optional
    HTTP API port for pipeline/dashboard management (default: 4000)
  • GREPTIMEDB_HTTP_PROTOCOL
    Env var· optional
    HTTP protocol for pipeline/dashboard API: http or https (default: http)
  • GREPTIMEDB_MASK_ENABLED
    Env var· optional
    Enable sensitive data masking (default: true)
  • GREPTIMEDB_MASK_PATTERNS
    Env var· optional
    Additional column name patterns for data masking (comma-separated)
  • GREPTIMEDB_AUDIT_ENABLED
    Env var· optional
    Enable audit logging for tool invocations (default: true)
  • GREPTIMEDB_ALLOW_WRITE
    Env var· optional
    Allow write/destructive SQL (DDL/DML) via execute_sql by skipping the security gate. DANGEROUS: only use on local or test instances (default: false)
  • --host
    Argument· optional
    GreptimeDB host address
  • --port
    Argument· optional
    GreptimeDB MySQL protocol port
  • --database
    Argument· optional
    Database name to connect to
  • --user
    Argument· optional
    Database username
  • --timezone
    Argument· optional
    Session timezone

Listed in the official MCP Registry since Sep 14, 2026. Mirrored daily; last checked Nov 26, 2026.