GreptimeDB MCP Server
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GREPTIMEDB_HOST | No | Database host | localhost |
| GREPTIMEDB_PORT | No | Database MySQL port | 4002 |
| GREPTIMEDB_USER | No | The database username | root |
| GREPTIMEDB_DATABASE | No | The database name | public |
| GREPTIMEDB_PASSWORD | No | The database password | |
| GREPTIMEDB_TIMEZONE | No | The session time zone | UTC |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
GreptimeDB MCP Server - provides secure read-only access to GreptimeDB
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| execute_sqlA | Execute SQL query against GreptimeDB. Please use MySQL dialect. |
| describe_tableA | Get a table profile: schema, semantic metadata, sample rows, and guidance. |
| search_table_semanticsA | Find tables by observability concept when the right table name is unknown. |
| query_semantic_graphA | Query the semantic graph: which entities exist and which are related. |
| health_checkA | Check GreptimeDB connection status and server version. |
| execute_tqlA | Execute TQL query for time-series analysis. TQL is PromQL-compatible. |
| query_rangeA | Execute time-window aggregation query using GreptimeDB's RANGE query syntax. |
| explain_queryC | Analyze SQL or TQL query execution plan. |
| list_pipelinesB | List all pipelines or get details of a specific pipeline. |
| create_pipelineA | Create a new pipeline in GreptimeDB. Stores a new version of the pipeline; it does not replace existing ones. Refused unless the server runs with write mode enabled. |
| dryrun_pipelineA | Test a pipeline with sample data without writing to the database. |
| delete_pipelineA | Delete a specific version of a pipeline from GreptimeDB. Irreversible, and refused unless the server runs with write mode enabled. |
| list_dashboardsB | List all Perses dashboard definitions stored in GreptimeDB. |
| create_dashboardA | Create or update a Perses dashboard definition in GreptimeDB. Overwrites any dashboard already stored under this name. Refused unless the server runs with write mode enabled. |
| delete_dashboardA | Delete a Perses dashboard definition from GreptimeDB. Irreversible, and refused unless the server runs with write mode enabled. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| schema_design_advisor | Schema and index design advisor for GreptimeDB tables. |
| trace_analysis | Distributed trace analysis for OpenTelemetry spans in GreptimeDB. |
| ingestion_troubleshooting | Troubleshoot GreptimeDB ingestion issues across OTLP, Prometheus, Loki, SQL, and pipelines. |
| observability_correlation | Correlate GreptimeDB metrics, logs, and traces across a shared time window. |
| query_performance_tuning | Tune GreptimeDB SQL, TQL, and RANGE queries using execution plans and table metadata. |
| metrics_analysis | SQL and RANGE analysis for existing GreptimeDB time-series tables. |
| pipeline_creator | Generate GreptimeDB pipeline YAML configuration from log samples. |
| table_operation | Table diagnostics: schema, region health, storage, and cluster metadata for GreptimeDB. |
| log_pipeline | Log analysis with full-text search and aggregation in GreptimeDB. |
| promql_analysis | PromQL-style queries using GreptimeDB TQL EVAL syntax. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 15 tools
The three query entry points (execute_sql, execute_tql, query_range) inherently overlap, but the descriptions explicitly delineate them (query_range is 'the narrowest of the three', metrics go to execute_tql, everything else to execute_sql). describe_table vs. search_table_semantics and the dashboard/pipeline CRUD groups are also clearly separated. Only the query trio carries any residual selection risk.
Nearly everything is snake_case verb_noun (execute_sql, describe_table, create_pipeline, delete_dashboard), which is predictable. Minor deviations exist: 'dryrun_pipeline' should be 'dry_run_pipeline', and 'health_check' is noun-based rather than verb-based, but these are small blemishes on an otherwise consistent scheme.
15 tools is at the top of the ideal band but every one earns its place: query entry points, schema discovery, health, plus compact CRUD for pipelines and dashboards. No filler or duplicate variants.
Query, discovery, explanation, pipeline CRUD+dryrun, and dashboard create/list/delete are covered, and write-mode gating for DML/DDL is documented. Small gaps remain: there is no get-single-dashboard tool and pipelines lack an explicit version/detail retrievable beyond list_pipelines' overloaded 'details' behavior.