greptimedb-mcp-server
GreptimeDB用のモデルコンテキストプロトコル (MCP) サーバー実装。
このサーバーは、AIアシスタントにデータベースを安全かつ構造化された方法で探索・分析する手段を提供します。制御されたインターフェースを介してテーブルの一覧表示、データの読み取り、SQLクエリの実行が可能になり、責任あるデータベースアクセスが確保されます。
プロジェクトのステータス
これはまだ開発中の実験的なプロジェクトです。データのセキュリティとプライバシーの問題については具体的に対処されていないため、慎重にご利用ください。
機能
- テーブルを一覧表示するには
list_resources
使用します - テーブルデータを読み取るための
read_resource
- ツールを一覧表示するには
list_tools
使用します - SQLを実行するための
call_tool
list_prompts
はプロンプトを一覧表示しますget_prompt
名前でプロンプトを取得します
インストール
構成
次の環境変数を設定します。
またはコマンドライン引数経由:
--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
ライセンス
MIT ライセンス - 詳細については LICENSE.md ファイルを参照してください。
貢献する
前提条件
uv
パッケージ マネージャーを使用した Python- GreptimeDBのインストール
- MCP サーバーの依存関係
発達
デバッグにはMCP Inspectorを使用します。
了承
このライブラリの実装は、以下の 2 つのリポジトリからインスピレーションを受け、そのコードを組み込んでいます。感謝の意を表します。
ありがとう!
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
AI アシスタントが GreptimeDB と安全に対話し、制御されたインターフェースを介してデータベース スキーマを探索し、データを読み取り、SQL クエリを実行できるようにするモデル コンテキスト プロトコル サーバーの実装。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA 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 -1108PythonMIT License
- -securityAlicense-qualityA Model Context Protocol (MCP) server that enables AI assistants to interact with MySQL databases by executing SQL queries and checking database connectivity.Last updated -TypeScriptMIT License
- -securityAlicense-qualityA Model Context Protocol server implementation that enables AI assistants to execute SQL queries and interact with SQLite databases through a structured interface.Last updated -6TypeScriptMIT License
- -securityFlicense-qualityA 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 -16TypeScript