GG

greptimeteam/greptimedb-mcp-server

Analytics & monitoring

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

29 stars 12 forks 品質 83 トレンド 39MIT

GreptimeDBのモデルコンテキストプロトコル(MCP)サーバー

概要

GreptimeDB用のモデルコンテキストプロトコル(MCP)サーバー — 1つのエンジンでメトリック、ログ、トレースを処理するオープンソースの保守性データベース。 AI アシスタントが、SQL、TQL(PromQL-compatible)、および RANGE クエリを使用して GreptimeDB を照会および解析できるようにします。また、既読のみの執行やデータマスキングなどの組み込みセキュリティ機能を備えています。 Claude Desktop では、config (~/Library/Application Support/Claude/claude desktop config.json を macOS に追加します。) search table semantics と semantic メタデータを記述 table 読み込み情報 schema.table semantics. greptime を運ぶとテーブルが現れます。 semantic.* オプションまたは組み込みのコンベンションは、それに対するエンティティティ宣言を導き出します。他のテーブルは不在です。 サーバは、プロセスごとにビューの列リストを一度読み出し、それが分かっている列だけを選択します。 entity declarations は GreptimeDB 1.3 が必要です。以前のバージョンでは空の宣言セットではなく、行方不明のカラムとして報告されます.

概要(AI 翻訳)

GreptimeDB用のモデルコンテキストプロトコル(MCP)サーバー — 1つのエンジンでメトリック、ログ、トレースを処理するオープンソースの保守性データベース。

AI アシスタントが、SQL、TQL(PromQL-compatible)、および RANGE クエリを使用して GreptimeDB を照会および解析できるようにします。また、既読のみの執行やデータマスキングなどの組み込みセキュリティ機能を備えています。

クイックスタート

Claude Desktop では、macOS で config (~/Library/Application Support/Claude/claude_desktop_config.json) にこれを追加します。

##特徴

ツール

| ツール | 概要 | お問い合わせ | [execute_sql | フォーマット(csv/json/markdown)と制限オプションでSQLクエリを実行 | | [execute_tql | タイムシリーズ解析のためのTQL(PromQL)クエリの実行 | | [query_range | RANGE/ALIGN 構文でタイムウィンドウ集計クエリを実行 | | [search_table_semantics | 一致した用語でランク付けされた、観察性概念によって表を検索し、テーブル名、セマンティックオプション、およびエンティティティ宣言を検索します。 [[schema]検索するためにデータベースを選択 | | [query_semantic_graph|セマンティックグラフの問い合わせ:[[T7、[entities(ノード)、[relationships(エッジ)) 必須時間ウィンドウ上の |

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

greptimedb-mcp-server

A Model Context Protocol (MCP) server for GreptimeDB — an open-source observability database that handles metrics, logs, and traces in one engine.

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.

Quick Start

# Install
pip install greptimedb-mcp-server

# Run (connects to localhost:4002 by default)
greptimedb-mcp-server --host localhost --database public

For Claude Desktop, add this to your config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "greptimedb": {
      "command": "greptimedb-mcp-server",
      "args": ["--host", "localhost", "--database", "public"]
    }
  }
}

Features

Tools

Tool Description
execute_sql Execute SQL queries with format (csv/json/markdown) and limit options
execute_tql Execute TQL (PromQL-compatible) queries for time-series analysis
query_range Execute time-window aggregation queries with RANGE/ALIGN syntax
search_table_semantics Find tables by observability concept, ranked by matched terms; searches table names, semantic options, and entity declarations. schema selects the database to search
query_semantic_graph Query the semantic graph: summary (what it contains), entities (nodes), relationships (edges) over a required time window
describe_table Inspect a table profile: schema, semantic metadata, latest sample rows, and query guidance
explain_query Analyze 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)
health_check Check database connection status and server version

search_table_semantics and the semantic metadata in describe_table read information_schema.table_semantics. A table appears there when it carries a greptime.semantic.* option or a built-in convention derives an entity declaration for it; other tables are absent. The server reads the view’s column list once per process and selects only the columns it exposes. entity_declarations requires GreptimeDB 1.3; on earlier versions it is reported as a missing column rather than as an empty declaration set.

GitHub で README 全文を見る

インストール

npx @modelcontextprotocol/inspector uv --directory . run -m greptimedb_mcp_server.server
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "greptimedb": { "command": "greptimedb-mcp-server", "args": ["--host", "localhost", "--database", "public"] } } }