greptimedb-mcp-server
About
Query and analyze GreptimeDB metrics, logs and traces via SQL, TQL and RANGE queries.
Use this server
Add it to your MCP client. The catalogue lists this config verbatim from its source — it does not run, download, or vouch for the server. Review the command before you run it.
Transportstdio (runs a local command)
Env vars
GREPTIMEDB_HOST GREPTIMEDB_PORT GREPTIMEDB_USER GREPTIMEDB_PASSWORD GREPTIMEDB_DATABASE GREPTIMEDB_TIMEZONE GREPTIMEDB_POOL_SIZE GREPTIMEDB_HTTP_PORT GREPTIMEDB_HTTP_PROTOCOL GREPTIMEDB_MASK_ENABLED GREPTIMEDB_MASK_PATTERNS GREPTIMEDB_AUDIT_ENABLEDClaude Code
claude mcp add --env GREPTIMEDB_HOST= --env GREPTIMEDB_PORT= --env GREPTIMEDB_USER= --env GREPTIMEDB_PASSWORD= --env GREPTIMEDB_DATABASE= --env GREPTIMEDB_TIMEZONE= --env GREPTIMEDB_POOL_SIZE= --env GREPTIMEDB_HTTP_PORT= --env GREPTIMEDB_HTTP_PROTOCOL= --env GREPTIMEDB_MASK_ENABLED= --env GREPTIMEDB_MASK_PATTERNS= --env GREPTIMEDB_AUDIT_ENABLED= greptimedb-mcp-server -- uvx greptimedb-mcp-server
Cursor
If the button doesn't open Cursor, use the JSON below — Cursor accepts the same mcpServers config.
VS Code
code --add-mcp '{"name":"greptimedb-mcp-server","command":"uvx","args":["greptimedb-mcp-server"],"env":{"GREPTIMEDB_HOST":"","GREPTIMEDB_PORT":"","GREPTIMEDB_USER":"","GREPTIMEDB_PASSWORD":"","GREPTIMEDB_DATABASE":"","GREPTIMEDB_TIMEZONE":"","GREPTIMEDB_POOL_SIZE":"","GREPTIMEDB_HTTP_PORT":"","GREPTIMEDB_HTTP_PROTOCOL":"","GREPTIMEDB_MASK_ENABLED":"","GREPTIMEDB_MASK_PATTERNS":"","GREPTIMEDB_AUDIT_ENABLED":""}}'
JSON
{
"mcpServers": {
"greptimedb-mcp-server": {
"command": "uvx",
"args": [
"greptimedb-mcp-server"
],
"env": {
"GREPTIMEDB_HOST": "",
"GREPTIMEDB_PORT": "",
"GREPTIMEDB_USER": "",
"GREPTIMEDB_PASSWORD": "",
"GREPTIMEDB_DATABASE": "",
"GREPTIMEDB_TIMEZONE": "",
"GREPTIMEDB_POOL_SIZE": "",
"GREPTIMEDB_HTTP_PORT": "",
"GREPTIMEDB_HTTP_PROTOCOL": "",
"GREPTIMEDB_MASK_ENABLED": "",
"GREPTIMEDB_MASK_PATTERNS": "",
"GREPTIMEDB_AUDIT_ENABLED": ""
}
}
}
}
Environment variables are listed by name only — fill in your own values. Entries never carry secrets.