Best for
- Developers working with time-series and observability data.
- Teams needing natural language access to their database for query and analysis.
- Users wanting to integrate AI-assisted data exploration within MCP clients.
GreptimeDB MCP Server provides a comprehensive set of tools for querying GreptimeDB with strong security features like read-only enforcement and data masking. Actively maintained and backed by the upstream team. Suitable for AI-driven observability workflows interacting with GreptimeDB.
Strongest · Documentation 14/20 Weakest · Reliability 10/20
Static review · not runListed 2026-09-08
Read the FMRS scoring method →Runtime:Python
GREPTIMEDB_PASSWORD
Database password from your GreptimeDB instance configuration.
GREPTIMEDB_HOST
GreptimeDB host address, defaults to localhost; no signup needed.
GREPTIMEDB_PORT
MySQL protocol port, defaults to 4002.
GREPTIMEDB_USER
Database username, optional.
GREPTIMEDB_DATABASE
Database name to connect to, defaults to public.
GREPTIMEDB_TIMEZONE
Session timezone, defaults to UTC.
GREPTIMEDB_HTTP_PORT
HTTP API port for pipeline/dashboard management, defaults to 4000.
GREPTIMEDB_HTTP_PROTOCOL
HTTP protocol for pipeline/dashboard API (http or https), defaults to http.
GREPTIMEDB_POOL_SIZE
Connection pool size, defaults to 5.
GREPTIMEDB_MASK_ENABLED
Enable sensitive data masking, defaults to true.
GREPTIMEDB_MASK_PATTERNS
Additional masking column-name patterns, comma-separated.
GREPTIMEDB_AUDIT_ENABLED
Enable audit logging for tool invocations, defaults to true.
GREPTIMEDB_ALLOW_WRITE
Allow write/destructive SQL via execute_sql (dangerous, local/test only), defaults to false.
GREPTIMEDB_TRANSPORT
Transport mode: stdio, sse, or streamable-http.
GREPTIMEDB_LISTEN_HOST
HTTP server bind host, defaults to 0.0.0.0.
GREPTIMEDB_LISTEN_PORT
HTTP server bind port, defaults to 8080.
GREPTIMEDB_ALLOWED_HOSTS
Allowed hosts for DNS rebinding protection, comma-separated.
GREPTIMEDB_ALLOWED_ORIGINS
CORS allowed origins, comma-separated.
pip install greptimedb-mcp-server.greptimedb-mcp-server --host localhost --database public.~/Library/Application Support/Claude/claude_desktop_config.json.{
"mcpServers": {
"greptimedb": {
"command": "greptimedb-mcp-server",
"args": [
"--host",
"localhost",
"--database",
"public"
]
}
}
}
Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"greptimedb": {
"command": "greptimedb-mcp-server",
"args": [
"--host",
"localhost",
"--database",
"public"
]
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
claude mcp add greptimedb -- greptimedb-mcp-server --host localhost --database public
Run it in a terminal; replace any <…> placeholders with your own values first.
The greptimedb server's tools (execute_sql, health_check, etc.) should appear in the client's tool list; ask the AI to run health_check — a response with connection status and server version confirms the install works.
Once connected, you can ask your AI assistant things like:
No matching tools
Listed from the project's documentation, not tested by this site.
GreptimeDB MCP Server is a Model Context Protocol (MCP) server that enables AI assistants to query and analyze GreptimeDB metrics, logs, and traces using SQL, TQL (PromQL-compatible), and RANGE queries. Includes built-in security features like read-only enforcement and data masking, as well as pipeline and Perses dashboard management.
Connect ClickHouse to your AI assistants
Unofficial MCP server providing advanced access to the ChEMBL chemical database
Google's official database MCP toolbox — define AI-accessible database tools via config
Bytebase's official, minimalist two-tool database MCP server
Source revision 5347e7e38002 Data synced 2026-10-19 Read the FMRS scoring method