greptimedb-mcp-server logo

greptimedb-mcp-serverGreptimeDB 的模型上下文协议 (MCP) 服务器实现

(0)
Daniel Nikulshyn审阅者 Daniel Nikulshyn·更新 2026年7月

概览

针对 GreptimeDB 的模型上下文协议 (MCP) 服务器,GreptimeDB 是一款开源的可观测性数据库,可以在一个引擎中处理指标、日志和跟踪。使 AI 助手能够使用 SQL、TQL(兼容 PromQL)和 RANGE 查询,并具有只读强制和数据掩码等内置安全功能。一些值得注意的功能包括执行 SQL 查询、分析查询执行计划、检查数据库连接状态以及管理管道和仪表盘。该工具还包括用于各种任务的内置 Jinja 模板,例如管道创建、日志分析和查询性能调优。

主要功能

  • 执行 SQL
  • 执行 TQL
  • 查询 RANGE
  • 描述表
  • 解释查询
  • 健康检查

价格

模型
Free
评分
暂无评价

使用场景

可观测性数据分析

使用 MCP 服务器分析存储在 GreptimeDB 中的指标、日志和跟踪

AI 助手集成

使用 MCP 服务器将 AI 助手与 GreptimeDB 集成以进行查询和分析

优点 & 缺点

优点

  • 使 AI 助手能够查询 GreptimeDB
  • 支持 SQL、TQL 和 RANGE 查询
  • 具有只读强制和数据掩码等内置安全功能

缺点

  • 需要 GreptimeDB 设置
  • 写入能力有限(默认只读)

评测

登录以留下评测。

暂无评测。来当第一个吧!

问答

How do I configure the server for use with AI assistants like Claude Desktop?

Add an entry to Claude Desktop’s config file (e.g., `~/Library/Application Support/Claude/claude_desktop_config.json` on macOS) under `mcpServers` with the command and args (`host localhost`, `database public`). The assistant will then route queries through the MCP server.

Asked by Sanjay Gupta · Nov 4, 2025

What query languages and output formats does the server support?

It supports SQL, TQL (PromQL‑compatible) and RANGE queries. The `execute_sql` tool can return results in CSV, JSON, or Markdown, and you can limit rows with the `limit` option.

Asked by Aisha Khan · Nov 1, 2025

Is the MCP server read‑only or can it write data to GreptimeDB?

The server is primarily read‑only; it enforces read‑only access and includes data‑masking security. Write capabilities are limited and not enabled by default.

Asked by Tobias Hartmann · Aug 25, 2025

How do I install and start the greptimedb‑mcp‑server?

Install via pip (`pip install greptimedb-mcp-server`). By default it connects to `localhost:4002` using the `public` database; just run `greptimedb-mcp-server` and it will start listening on that address.

Asked by Paloma Ruiz · Aug 7, 2025

提问

服务配缩器 的替代品