ClickHouse MCPサーバー
このプロジェクトは、ClickHouse 用のモデル コンテキスト プロトコル (MCP) サーバーを実装し、ClickHouse データベースと大規模言語モデル (LLM) およびその他の AI アプリケーションとのシームレスな統合を可能にします。
特徴
ClickHouseデータベースとテーブルをリソースとしてリストする
テーブルスキーマを取得する
ClickHouseデータベースでSELECTクエリを実行する
MCPプロトコルを使用した安全で効率的な通信
要件
Python 3.10以上
ClickHouseサーバー
インストール
リポジトリをクローンします。
git clone https://github.com/ThomAub/clickhouse_mcp_server.git cd clickhouse_mcp_server必要なパッケージをインストールします。
uv sync --all-extras環境変数で ClickHouse 接続の詳細を設定するか、
server.py
のget_clickhouse_client
関数を更新します。
使用法
サーバーを実行します。
サーバーが起動し、MCP 要求をリッスンします。
テスト
pytest を使用してテストを実行します。
貢献
貢献を歓迎します!お気軽にプルリクエストを送信してください。
ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています。
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
大規模言語モデルが ClickHouse データベースとシームレスに対話し、リソースの一覧表示、スキーマの取得、およびクエリの実行をサポートするモデル コンテキスト プロトコル サーバー。
Related Resources
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that enables Large Language Models to interact with ClickUp workspace tasks and data, allowing creation and retrieval of tasks through natural language.Last updated -19603MIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI assistants to securely interact with ClickHouse databases, supporting table exploration and SQL query execution through a controlled interface.Last updated -18Apache 2.0
MCP TapData Serverofficial
-securityFlicense-qualityA Model Context Protocol server that enables Large Language Models to access and interact with database connections, including viewing schemas and performing CRUD operations on connected databases.Last updated -- -securityFlicense-qualityA Model Context Protocol server that enables large language models to interact directly with Couchbase databases through natural language, supporting operations like querying buckets, performing CRUD operations, and executing N1QL queries.Last updated -217