greptimedb-mcp-server
v0.6.0Query GreptimeDB metrics, logs and traces with SQL, TQL and RANGE.
Values you need
| Variable | What it is | |
|---|---|---|
GREPTIMEDB_HOST | optional | GreptimeDB host address |
GREPTIMEDB_PORT | optional | GreptimeDB MySQL protocol port (default: 4002) |
GREPTIMEDB_USER | optional | Database username |
GREPTIMEDB_PASSWORD | optional secret | Database password |
GREPTIMEDB_DATABASE | optional | Database name to connect to |
GREPTIMEDB_TIMEZONE | optional | Session timezone (default: UTC) |
GREPTIMEDB_POOL_SIZE | optional | Connection pool size (default: 5) |
GREPTIMEDB_HTTP_PORT | optional | HTTP API port for pipeline/dashboard management (default: 4000) |
GREPTIMEDB_HTTP_PROTOCOL | optional | HTTP protocol for pipeline/dashboard API: http or https (default: http) |
GREPTIMEDB_MASK_ENABLED | optional | Enable sensitive data masking (default: true) |
GREPTIMEDB_MASK_PATTERNS | optional | Additional column name patterns for data masking (comma-separated) |
GREPTIMEDB_AUDIT_ENABLED | optional | Enable audit logging for tool invocations (default: true) |
GREPTIMEDB_ALLOW_WRITE | 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) |
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add greptimedb-mcp-server -- uvx greptimedb-mcp-server==0.6.0Add to
claude_desktop_config.json{
"mcpServers": {
"greptimedb-mcp-server": {
"args": [
"greptimedb-mcp-server==0.6.0"
],
"command": "uvx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"greptimedb-mcp-server": {
"args": [
"greptimedb-mcp-server==0.6.0"
],
"command": "uvx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"greptimedb-mcp-server": {
"args": [
"greptimedb-mcp-server==0.6.0"
],
"command": "uvx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.greptimedb-mcp-server]
command = "uvx"
args = ["greptimedb-mcp-server==0.6.0"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: execute_sql, describe_table, search_table_semantics, query_semantic_graph, health_check, execute_tql, query_range, explain_query, ….
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json