Clickhouse MCPサーバー
Clickhouse データベース MCP サーバー プロジェクト。
インストール
uv
を使用してパッケージをインストールできます。
またはpip
を使用します:
コンポーネント
ツール
サーバーは次の 2 つのツールを提供します。
connect_database
: 特定のClickhouseデータベースに接続しますdatabase
パラメータ: 接続するデータベースの名前(文字列)- 接続が成功すると確認メッセージを返します
execute_query
: Clickhouseクエリを実行するquery
パラメータ: 実行する SQL クエリ (文字列)- クエリ結果をJSON形式で返します
- 複数のクエリはセミコロンで区切って送信できます
構成
サーバーは次の環境変数を使用します。
CLICKHOUSE_HOST
: Clickhouseサーバーのアドレス(デフォルト: "localhost")CLICKHOUSE_USER
: Clickhouse のユーザー名 (デフォルト: "root")CLICKHOUSE_PASSWORD
: Clickhouseのパスワード(デフォルト: "")CLICKHOUSE_DATABASE
: 初期データベース(オプション)CLICKHOUSE_READONLY
: 読み取り専用モード(有効にするには 1/true に設定、デフォルト: false)
クイックスタート
インストール
クロードデスクトップ
MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
Smithery経由でインストール
Smithery経由でClaude Desktop用のClickhouseデータベース統合サーバーを自動的にインストールするには:
発達
建築と出版
配布用のパッケージを準備するには:
- 依存関係を同期し、ロックファイルを更新します。
- パッケージディストリビューションをビルドします。
これにより、 dist/
ディレクトリにソースとホイールのディストリビューションが作成されます。
- PyPI に公開:
注: 環境変数またはコマンド フラグを使用して PyPI 資格情報を設定する必要があります。
- トークン:
--token
またはUV_PUBLISH_TOKEN
- またはユーザー名/パスワード:
--username
/UV_PUBLISH_USERNAME
および--password
/UV_PUBLISH_PASSWORD
デバッグ
MCPサーバーはstdio経由で実行されるため、デバッグが困難になる場合があります。最適なデバッグ環境を実現するには、 MCP Inspectorの使用を強くお勧めします。
次のコマンドを使用して、 npm
経由で MCP Inspector を起動できます。
起動すると、ブラウザでアクセスしてデバッグを開始できる URL がインスペクタに表示されます。
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Claude AIがClickhouseデータベースと連携できるようにするMCPサーバー実装。安全なデータベース接続、クエリ実行、読み取り専用モードのサポート、マルチクエリ機能などの機能を備えています。
Related Resources
Related MCP Servers
- AsecurityFlicenseAqualityAn MCP server that allows Claude AI to perform filesystem operations including reading, writing, listing, moving files, and searching directories within specified allowed paths.Last updated -921JavaScript
- AsecurityAlicenseAqualityClickUp MCP Server enables AI assistants to seamlessly interact with your ClickUp workspace. This powerful integration allows Claude to create and manage tasks, access documents, organize folders and lists, add comments, and handle checklists—all through natural conversation.Last updated -4276222TypeScriptMIT License
- -securityAlicense-qualityAn MCP server that implements Claude Code-like functionality, allowing the AI to analyze codebases, modify files, execute commands, and manage projects through direct file system interactions.Last updated -229PythonMIT License
- -securityFlicense-qualityAn MCP server that integrates with Claude to provide smart documentation search capabilities across multiple AI/ML libraries, allowing users to retrieve and process technical information through natural language queries.Last updated -Python