ClickHouse MCP Server

MIT License
1
  • Linux
  • Apple

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Enables seamless integration with ClickHouse databases, allowing listing of databases and tables, retrieving table schemas, and executing SELECT queries against ClickHouse data.

ClickHouse MCPサーバー

このプロジェクトは、ClickHouse 用のモデル コンテキスト プロトコル (MCP) サーバーを実装し、ClickHouse データベースと大規模言語モデル (LLM) およびその他の AI アプリケーションとのシームレスな統合を可能にします。

特徴

  • ClickHouseデータベースとテーブルをリソースとしてリストする
  • テーブルスキーマを取得する
  • ClickHouseデータベースでSELECTクエリを実行する
  • MCPプロトコルを使用した安全で効率的な通信

要件

  • Python 3.10以上
  • ClickHouseサーバー

インストール

  1. リポジトリをクローンします。
    git clone https://github.com/ThomAub/clickhouse_mcp_server.git cd clickhouse_mcp_server
  2. 必要なパッケージをインストールします。
    uv sync --all-extras
  3. 環境変数で ClickHouse 接続の詳細を設定するか、 server.pyget_clickhouse_client関数を更新します。

使用法

サーバーを実行します。

python clickhouse_mcp_server/server.py

サーバーが起動し、MCP 要求をリッスンします。

テスト

pytest を使用してテストを実行します。

pytest tests/

貢献

貢献を歓迎します!お気軽にプルリクエストを送信してください。

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています。

-
security - not tested
A
license - permissive license
-
quality - not tested

大規模言語モデルが ClickHouse データベースとシームレスに対話し、リソースの一覧表示、スキーマの取得、およびクエリの実行をサポートするモデル コンテキスト プロトコル サーバー。

  1. Features
    1. Requirements
      1. Installation
        1. Usage
          1. Testing
            1. Contributing
              1. License
                ID: bdw529ct5w