Skip to content

greptimedb mcp server for Zed

io.github.greptimeteam/greptimedb-mcp-server

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

client:Zed transport:stdio runtime:pypi

Install greptimedb mcp server in Zed

~/.config/zed/settings.json · windows: %APPDATA%\Zed\settings.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "context_servers": {
    "greptimedb-mcp-server": {
      "command": "uvx",
      "args": [
        "greptimedb-mcp-server"
      ],
      "env": {
        "GREPTIMEDB_HOST": "<GREPTIMEDB_HOST>",
        "GREPTIMEDB_PORT": "<GREPTIMEDB_PORT>",
        "GREPTIMEDB_USER": "<GREPTIMEDB_USER>",
        "GREPTIMEDB_PASSWORD": "<GREPTIMEDB_PASSWORD>",
        "GREPTIMEDB_DATABASE": "<GREPTIMEDB_DATABASE>",
        "GREPTIMEDB_TIMEZONE": "<GREPTIMEDB_TIMEZONE>",
        "GREPTIMEDB_POOL_SIZE": "<GREPTIMEDB_POOL_SIZE>",
        "GREPTIMEDB_HTTP_PORT": "<GREPTIMEDB_HTTP_PORT>",
        "GREPTIMEDB_HTTP_PROTOCOL": "<GREPTIMEDB_HTTP_PROTOCOL>",
        "GREPTIMEDB_MASK_ENABLED": "<GREPTIMEDB_MASK_ENABLED>",
        "GREPTIMEDB_MASK_PATTERNS": "<GREPTIMEDB_MASK_PATTERNS>",
        "GREPTIMEDB_AUDIT_ENABLED": "<GREPTIMEDB_AUDIT_ENABLED>",
        "GREPTIMEDB_ALLOW_WRITE": "<GREPTIMEDB_ALLOW_WRITE>"
      }
    }
  }
}

Merge this into your existing settings object — do not replace the file. Zed docs

greptimedb mcp server in other clients