Queries and manages GreptimeDB through SQL, TQL, observability tools, pipelines, dashboards, and MCP resources.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Greptimedb MCP Server.
execute_sqlExecute SQL queries with format (csv/json/markdown) and limit options
execute_tqlExecute TQL (PromQL-compatible) queries for time-series analysis
query_rangeExecute time-window aggregation queries with RANGE/ALIGN syntax
search_table_semanticsFind tables by observability concept, ranked by matched terms; searches table names, semantic options, and entity declarations
describe_tableInspect a table profile: schema, semantic metadata, latest sample rows, and query guidance
explain_queryAnalyze SQL or TQL query execution plans (`analyze=true` for runtime stats; add `verbose=true` alongside `analyze=true` for per-partition scan metrics and index-pruning counters)
GreptimeTeam/greptimedb-mcp-server MCP server exposes GreptimeDB capabilities through the Model Context Protocol. It is intended for databases containing observability data such as metrics, logs, and traces. Agents can query data with SQL, TQL, or GreptimeDB range syntax, inspect table structure and semantic metadata, review query plans, and check database connectivity.
The server also covers selected operational workflows. Its tools can list, create, test, and delete pipelines, as well as list, create, update, and delete Perses dashboard definitions. A table-data resource uses greptime://<table>/data URIs, and built-in Jinja prompts support tasks including metrics analysis, PromQL analysis, trace analysis, schema design, ingestion troubleshooting, and query tuning.
After installation, the greptimedb-mcp-server executable connects to GreptimeDB using the configured host, port, database, user, and password. The default transport is stdio, which suits desktop MCP clients. HTTP deployments can use streamable HTTP or the legacy SSE mode, with configurable bind settings, CORS origins, and allowed hosts.
execute_sql accepts output formatting and row-limit options. execute_tql handles PromQL-compatible time-series queries, while query_range supports time-window aggregation with RANGE and ALIGN syntax. explain_query can return runtime analysis and, when verbose analysis is enabled, per-partition scan and index-pruning information. Semantic discovery reads information_schema.table_semantics; entity declarations require GreptimeDB 1.3 or later.
Install the Python package with:
A basic local launch is:
Connection settings are available through CLI options or GREPTIMEDB_* environment variables. These include the database host, MySQL protocol port, credentials, database name, timezone, connection-pool size, HTTP API settings, transport, and HTTP listen settings. Pipeline and dashboard operations use the configured HTTP API port and protocol.
For Claude Desktop, configure the server command with arguments such as --host localhost and --database public. Container or Kubernetes deployments can select --transport streamable-http and a listen port. DNS rebinding protection is disabled by default, but allowed hosts and origins can be supplied when needed.
GreptimeTeam/greptimedb-mcp-server MCP server provides these documented tool groups:
execute_sql, execute_tql, query_range, and explain_query.describe_table, search_table_semantics, and health_check.list_pipelines, create_pipeline, dryrun_pipeline, and delete_pipeline.list_dashboards, create_dashboard, and delete_dashboard.greptime://<table>/data.The server is read-only by default. Its application security gate blocks destructive or modifying SQL, including DROP, DELETE, TRUNCATE, UPDATE, INSERT, ALTER, CREATE, GRANT, REVOKE, EXEC, LOAD, and COPY, while allowing read and analysis statements such as SELECT, SHOW, DESCRIBE, TQL, EXPLAIN, and UNION. Setting GREPTIMEDB_ALLOW_WRITE=true or the equivalent CLI option bypasses that gate for execute_sql and is intended only for local development or testing.
Sensitive values can be masked using built-in column-name patterns for credentials, financial data, and personal identifiers. Additional patterns are configurable. Tool invocations are audit-logged by default, and audit logging can be disabled. entity_declarations is unavailable on GreptimeDB versions before 1.3, where the field is reported as missing rather than empty.
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/greptimeteam-greptimedb-mcp-server)<a href="https://allmcps.com/mcp/greptimeteam-greptimedb-mcp-server"><img src="https://allmcps.com/api/badge/greptimeteam-greptimedb-mcp-server?style=directory" alt="Greptimedb MCP Server on AllMCPs" /></a>