greptimedb-mcp-server

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

stdio v0.4.7

Connection Configuration

Add this to your AI agent's MCP config file to connect.

Run in your terminal:

claude mcp add io.github.greptimeteam--greptimedb-mcp-server -- uvx

Server Details

Transport

stdio

Authentication

None

Version

v0.4.7

Server Name

io.github.GreptimeTeam/greptimedb-mcp-server

Last Updated

Mar 2, 2026

Get Started

How to install and connect this MCP server.

Required Configuration

Environment variables you must provide when running this server.

Variable Required
GREPTIMEDB_HOST Optional
GREPTIMEDB_PORT Optional
GREPTIMEDB_USER Optional
GREPTIMEDB_PASSWORD secret Optional
GREPTIMEDB_DATABASE Optional
GREPTIMEDB_TIMEZONE Optional
GREPTIMEDB_POOL_SIZE Optional
GREPTIMEDB_HTTP_PORT Optional
GREPTIMEDB_HTTP_PROTOCOL Optional
GREPTIMEDB_MASK_ENABLED Optional
GREPTIMEDB_MASK_PATTERNS Optional
GREPTIMEDB_AUDIT_ENABLED Optional