ClickHouse MCP 服务器
迁移至https://github.com/ClickHouse/mcp-clickhouse
ClickHouse 的 MCP 服务器。
特征
工具
run_select_query在您的 ClickHouse 集群上执行 SQL 查询。
输入:
sql(字符串):要执行的 SQL 查询。所有 ClickHouse 查询均以
readonly = 1运行,以确保它们是安全的。
list_databases列出 ClickHouse 集群上的所有数据库。
list_tables列出数据库中的所有表。
输入:
database(字符串):数据库的名称。
配置
注意:这是一个临时配置过程,一旦软件包发布,将会得到显著改善。
运行
uv sync来安装依赖项。要安装uv,请按照此处的说明操作。然后执行source .venv/bin/activate。使用 ClickHouse 凭证设置
.env.production文件。
运行
fastmcp install mcp_clickhouse/mcp_server.py -f .env.production来安装服务器。重新启动 Claude Desktop。
发展
在
test-services目录中运行docker compose up -d来启动 ClickHouse 集群。将以下变量添加到存储库根目录中的
.env文件中。
运行
uv sync来安装依赖项。要安装uv,请按照此处的说明操作。然后执行source .venv/bin/activate。为了方便测试,您可以运行
fastmcp dev mcp_clickhouse/mcp_server.py来启动 MCP 服务器。
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.
ClickHouse 的 MCP 服务器。
Related MCP Servers
- Asecurity-licenseAqualityA MCP Server used to collect MCP Servers over the internet.Last updated -319
- MIT License
- -security-license-qualityMCP server that enables collection of data from BuildingLink, providing access to occupant profiles, vendors, deliveries, library items, announcements, and other building-related information.Last updated -0MIT License
- MIT License