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 服务器
安装
- 克隆存储库:Copy
- 安装所需的软件包:Copy
- 在环境变量中设置您的 ClickHouse 连接详细信息或更新
server.py
中的get_clickhouse_client
函数。
用法
运行服务器:
Copy
服务器将启动并监听 MCP 请求。
测试
使用 pytest 运行测试:
Copy
贡献
欢迎贡献代码!欢迎提交 Pull 请求。
执照
该项目已获得 MIT 许可。
This server cannot be installed
模型上下文协议服务器,使大型语言模型能够与 ClickHouse 数据库无缝交互,支持资源列表、模式检索和查询执行。