What is greptimedb-mcp-server?
It is a Model Context Protocol (MCP) server for GreptimeDB, an open-source observability database that handles metrics, logs, and traces. It enables AI assistants to query and analyze GreptimeDB using SQL, TQL (PromQL-compatible), and RANGE queries, with built-in security features like read-only enforcement and data masking.
How to use greptimedb-mcp-server?
Install via pip install greptimedb-mcp-server, then run greptimedb-mcp-server --host localhost --database public. For Claude Desktop, add the MCP server configuration to your claude_desktop_config.json. The server can also be started in HTTP server mode for containerized deployments.
Key features of greptimedb-mcp-server
- Execute SQL, TQL, and time-window aggregation queries.
- Inspect table schemas and query execution plans.
- List, create, test, and delete pipelines.
- List, create, and delete Perses dashboards.
- Read-only security gate blocking destructive SQL by default.
- Automatic data masking for sensitive columns.
- Audit logging of all tool invocations.
Use cases of greptimedb-mcp-server
- Query and analyze observability metrics, logs, and traces with AI assistants.
- Automate pipeline and dashboard management via MCP tools.
- Debug and optimize queries by inspecting execution plans.
- Enforce security policies (read-only, masking, audit) for AI-driven database access.
コメント