clickhouse
Provides tools for querying and managing ClickHouse databases, including listing databases, tables, describing schemas, executing SELECT queries, and DDL/DML operations.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@clickhouseList all databases on the ClickHouse server"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ClickHouse MCP Server
一个用于 ClickHouse 的 Model Context Protocol (MCP) 服务器,让 Claude 等 AI 助手能够直接查询和管理 ClickHouse 数据库。
功能
提供 5 个工具:
工具 | 描述 |
| 列出所有数据库 |
| 列出指定数据库的所有表 |
| 查看表的列信息和建表语句 |
| 执行 SELECT 查询,返回 JSON 结果 |
| 执行 DDL / DML 语句(CREATE、ALTER、DROP、INSERT 等) |
Related MCP server: ClickHouse MCP Server
快速开始
安装依赖
npm install配置环境变量
复制 .env.example 并填写你的 ClickHouse 连接信息:
cp .env.example .envCLICKHOUSE_HOST=http://your-clickhouse-host:8123
CLICKHOUSE_USER=default
CLICKHOUSE_PASSWORD=your_password
CLICKHOUSE_DATABASE=default构建
npm run build在 Claude Desktop 中使用
编辑 ~/Library/Application Support/Claude/claude_desktop_config.json(macOS):
{
"mcpServers": {
"clickhouse": {
"command": "node",
"args": ["/path/to/clickhouse/dist/index.js"],
"env": {
"CLICKHOUSE_HOST": "http://your-clickhouse-host:8123",
"CLICKHOUSE_USER": "default",
"CLICKHOUSE_PASSWORD": "your_password",
"CLICKHOUSE_DATABASE": "default"
}
}
}
}在 Claude Code 中使用
claude mcp add clickhouse node /path/to/clickhouse/dist/index.js \
-e CLICKHOUSE_HOST=http://your-clickhouse-host:8123 \
-e CLICKHOUSE_USER=default \
-e CLICKHOUSE_PASSWORD=your_password \
-e CLICKHOUSE_DATABASE=default开发
# 直接运行(无需构建)
npm run dev技术栈
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/donald-ada/clickhouse'
If you have feedback or need assistance with the MCP directory API, please join our Discord server