MCP directory
GM

Greptimedb Mcp Server

by github.com/GreptimeTeam · v0.6.0 · updated Sep 14, 2026

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

PyPI

Run it locally

Install the package and point your AI client at it.

PyPI

uvx greptimedb-mcp-server==0.6.0

Environment variables

  • 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/dashboard management (default: 4000)

  • GREPTIMEDB_HTTP_PROTOCOL

    HTTP protocol for pipeline/dashboard 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)

  • GREPTIMEDB_ALLOW_WRITE

    Allow write/destructive SQL (DDL/DML) via execute_sql by skipping the security gate. DANGEROUS: only use on local or test instances (default: false)

More MCP servers