Skip to main content
Glama

GreptimeDB MCP Server

Official
by GreptimeTeam

greptimedb-mcp-server

ビルドワークフロー

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

このサーバーは、AIアシスタントにデータベースを安全かつ構造化された方法で探索・分析する手段を提供します。制御されたインターフェースを介してテーブルの一覧表示、データの読み取り、SQLクエリの実行が可能になり、責任あるデータベースアクセスが確保されます。

プロジェクトのステータス

これはまだ開発中の実験的なプロジェクトです。データのセキュリティとプライバシーの問題については具体的に対処されていないため、慎重にご利用ください。

機能

  • テーブルを一覧表示するにはlist_resources使用します
  • テーブルデータを読み取るためのread_resource
  • ツールを一覧表示するにはlist_tools使用します
  • SQLを実行するためのcall_tool
  • list_promptsはプロンプトを一覧表示します
  • get_prompt名前でプロンプトを取得します

インストール

pip install greptimedb-mcp-server

構成

次の環境変数を設定します。

GREPTIMEDB_HOST=localhost # Database host GREPTIMEDB_PORT=4002 # Optional: Database MySQL port (defaults to 4002 if not specified) GREPTIMEDB_USER=root GREPTIMEDB_PASSWORD= GREPTIMEDB_DATABASE=public

またはコマンドライン引数経由:

  • --hostデータベースホスト、デフォルトはlocalhost
  • --portデータベースポート。MySQLプロトコルポートである必要があります。デフォルトでは4002
  • --userデータベースのユーザー名。デフォルトでは空。
  • --passwordデータベースのパスワード。デフォルトでは空です。
  • --databaseデータベース名。デフォルトはpublic

使用法

クロードデスクトップ統合

Claude Desktop の構成ファイルで MCP サーバーを構成します。

macOS

場所: ~/Library/Application Support/Claude/claude_desktop_config.json

ウィンドウズ

場所: %APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "greptimedb": { "command": "uv", "args": [ "--directory", "/path/to/greptimedb-mcp-server", "run", "-m", "greptimedb_mcp_server.server" ], "env": { "GREPTIMEDB_HOST": "localhost", "GREPTIMEDB_PORT": "4002", "GREPTIMEDB_USER": "root", "GREPTIMEDB_PASSWORD": "", "GREPTIMEDB_DATABASE": "public" } } } }

ライセンス

MIT ライセンス - 詳細については LICENSE.md ファイルを参照してください。

貢献する

前提条件

  • uvパッケージ マネージャーを使用した Python
  • GreptimeDBのインストール
  • MCP サーバーの依存関係

発達

# Clone the repository git clone https://github.com/GreptimeTeam/greptimedb-mcp-server.git cd greptimedb-mcp-server # Create virtual environment uv venv source venv/bin/activate # or `venv\Scripts\activate` on Windows # Install development dependencies uv sync # Run tests pytest

デバッグにはMCP Inspectorを使用します。

npx @modelcontextprotocol/inspector uv \ --directory \ /path/to/greptimedb-mcp-server \ run \ -m \ greptimedb_mcp_server.server

了承

このライブラリの実装は、以下の 2 つのリポジトリからインスピレーションを受け、そのコードを組み込んでいます。感謝の意を表します。

ありがとう!

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

AI アシスタントが GreptimeDB と安全に対話し、制御されたインターフェースを介してデータベース スキーマを探索し、データを読み取り、SQL クエリを実行できるようにするモデル コンテキスト プロトコル サーバーの実装。

  1. プロジェクトのステータス
    1. 機能
      1. インストール
        1. 構成
          1. 使用法
            1. クロードデスクトップ統合
          2. ライセンス
            1. 貢献する
              1. 前提条件
              2. 発達
            2. 了承

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                A Model Context Protocol server that enables secure interaction with Microsoft SQL Server databases, allowing AI assistants to list tables, read data, and execute SQL queries through a controlled interface.
                Last updated -
                1
                108
                Python
                MIT License
                • Linux
                • Apple
              • -
                security
                A
                license
                -
                quality
                A Model Context Protocol (MCP) server that enables AI assistants to interact with MySQL databases by executing SQL queries and checking database connectivity.
                Last updated -
                TypeScript
                MIT License
                • Apple
                • Linux
              • -
                security
                A
                license
                -
                quality
                A Model Context Protocol server implementation that enables AI assistants to execute SQL queries and interact with SQLite databases through a structured interface.
                Last updated -
                6
                TypeScript
                MIT License
              • -
                security
                F
                license
                -
                quality
                A comprehensive Model Context Protocol server implementation that enables AI assistants to interact with file systems, databases, GitHub repositories, web resources, and system tools while maintaining security and control.
                Last updated -
                16
                TypeScript

              View all related MCP servers

              MCP directory API

              We provide all the information about MCP servers via our MCP API.

              curl -X GET 'https://glama.ai/api/mcp/v1/servers/GreptimeTeam/greptimedb-mcp-server'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server