greptimedb-mcp-server
v0.6.0Query GreptimeDB metrics, logs and traces with SQL, TQL and RANGE.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
execute_sql
Execute SQL query against GreptimeDB. Please use MySQL dialect. Read-only by default. When the server runs with write mode enabled (--allow-write / GREPTIMEDB_ALLOW_WRITE), destructive SQL (DDL/DML) is also permitted.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
format | string | |
limit | integer |
describe_table
Get a table profile: schema, semantic metadata, sample rows, and guidance. Use it when deciding how to query an unfamiliar table. When the right table is not known yet, search_table_semantics first; describing candidates one by one is slower than querying the data. The semantic profile says what the table means, not what its data says. signal_type is metric, log, trace, or event; source and source_version name the ingestion protocol; pipeline names the schema that shaped the rows; semantic_options carries signal-specific facts such as metric type and unit. met…
| Parameter | Type | Description |
|---|---|---|
table * | string | |
include_samples | boolean | |
include_semantics | boolean | |
sample_limit | integer |
search_table_semantics
Find tables by observability concept when the right table name is unknown. Searches table names, semantic options, and entity declarations, and ranks tables by how many query terms they matched. Use it before describe_table when the schema is wide or table names do not say what they hold. It searches schema metadata only, never telemetry row values, so it can say which table holds Redis memory usage but not which row belongs to `Redis02`. It ranks on the values in that metadata, not on the schema's own key names, so search for `gauge` or `bytes` rather than `metri…
| Parameter | Type | Description |
|---|---|---|
query * | string | |
limit | integer | |
signal_type |
query_semantic_graph
Query the semantic graph: which entities exist and which are related. Use view=summary when the entity and relationship types in this graph are not known yet; it reports them with the endpoint type pairs each relationship connects. With a type or an id already in hand, query entities or relationships directly. The window is required and half-open, [start_time, end_time), over observed_at -- the 60-second bucket an observation was recorded in. Rows are aggregated across the buckets in the window, and the result echoes the window and the limit it used. rela…
| Parameter | Type | Description |
|---|---|---|
end_time * | string | Exclusive end of the window, RFC3339. |
start_time * | string | Inclusive start of the window, RFC3339, e.g. 2026-09-05T07:00:00Z. Without an offset it is read as UTC. |
view * | string | summary: which entity and relationship types exist and what they connect. entities: the nodes. relationships: the edges. |
dst_id | relationships only: a canonical destination id this graph returned. | |
dst_type | relationships only: destination endpoint type. | |
entity_id | entities only: a canonical id this graph returned. | |
entity_type | entities only: service, k8s.pod, host, ... | |
limit | integer | Maximum rows to return. |
provenance | relationships only: how the edge was obtained -- trace (paired spans), attribute (identities on one row), declared, or agent. | |
rel_type | relationships only: calls, runs_on, contains, part_of, uses, invokes, depends_on, owns, or a custom declared value. | |
scope | entities only: the namespace or environment an id is scoped to. | |
src_id | relationships only: a canonical source id this graph returned. | |
src_type | relationships only: source endpoint type. |
health_check
Check GreptimeDB connection status and server version.
execute_tql
Execute TQL query for time-series analysis. TQL is PromQL-compatible - use standard PromQL syntax.
| Parameter | Type | Description |
|---|---|---|
end * | string | |
query * | string | |
start * | string | |
step * | string | |
format | string | |
lookback |
query_range
Execute time-window aggregation query using GreptimeDB's RANGE query syntax.
| Parameter | Type | Description |
|---|---|---|
align * | string | |
select * | string | |
table * | string | |
by | ||
fill | ||
format | string | |
limit | integer | |
order_by | ||
where |
explain_query
Analyze SQL or TQL query execution plan.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
analyze | boolean | |
verbose | boolean |
list_pipelines
List all pipelines or get details of a specific pipeline.
| Parameter | Type | Description |
|---|---|---|
name |
create_pipeline
Create a new pipeline in GreptimeDB.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
pipeline * | string |
dryrun_pipeline
Test a pipeline with sample data without writing to the database. You can test a pipeline in two ways: - Provide 'pipeline' with inline YAML configuration - Provide 'pipeline_name' to test a previously saved pipeline Args: pipeline: Pipeline YAML configuration (inline) pipeline_name: Name of saved pipeline (mutually exclusive with pipeline) data: Test data in JSON/NDJSON format data_type: Optional content type (e.g., 'application/x-ndjson')
| Parameter | Type | Description |
|---|---|---|
data | string | |
data_type | ||
pipeline | ||
pipeline_name |
delete_pipeline
Delete a specific version of a pipeline from GreptimeDB.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
version * | string |
list_dashboards
List all Perses dashboard definitions stored in GreptimeDB.
create_dashboard
Create or update a Perses dashboard definition in GreptimeDB.
| Parameter | Type | Description |
|---|---|---|
definition * | string | |
name * | string |
delete_dashboard
Delete a Perses dashboard definition from GreptimeDB.
| Parameter | Type | Description |
|---|---|---|
name * | string |