ClickHouse MCP Server
A MCP server for ClickHouse
Installation
Installing for Claude Desktop
Option 1: One-Command Installation
npx mcpbar@latest install ThomAub/clickhouse_mcp_server -c claude
This command will automatically install and configure the ClickHouse MCP Server MCP server for your selected client.
Option 2: Manual Configuration
Run the command below to open your configuration file:
npx mcpbar@latest edit -c claude
After opening your configuration file, copy and paste this configuration:
View JSON configuration
{
"mcpServers": {
"ClickHouse MCP Server": {
"command": "uvx",
"args": [
"clickhouse-mcp-server"
],
"env": {}
}
}
}
ClickHouse MCP Server
This project implements a Model Context Protocol (MCP) server for ClickHouse, allowing seamless integration of ClickHouse databases with Large Language Models (LLMs) and other AI applications.
Features
- List ClickHouse databases and tables as resources
- Retrieve table schemas
- Execute SELECT queries on ClickHouse databases
- Secure and efficient communication using the MCP protocol
Requirements
- Python 3.10+
- ClickHouse server
Installation
-
Clone the repository:
git clone https://github.com/ThomAub/clickhouse_mcp_server.git cd clickhouse_mcp_server
-
Install the required packages:
uv sync --all-extras
-
Set up your ClickHouse connection details in environment variables or update the
get_clickhouse_client
function inserver.py
.
Usage
Run the server:
python clickhouse_mcp_server/server.py
The server will start and listen for MCP requests.
Testing
Run the tests using pytest:
pytest tests/
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License.
Stars
1Forks
1Last commit
6 months agoRepository age
6 monthsLicense
MIT
Auto-fetched from GitHub .
MCP servers similar to ClickHouse MCP Server:

Stars
Forks
Last commit

Stars
Forks
Last commit

Stars
Forks
Last commit