
A Model Context Protocal (MCP) server implement for ClickHouse.
A Model Context Protocal (MCP) server implement for ClickHouse.
A Model Context Protocal (MCP) server implement for ClickHouse.
This server provides AI assistants with a secure and structured way to explore and analyze databases. It enables them to list tables, read data, and execute SQL queries through a controlled interface, ensuring responsible database access.
Set the following environment variables:
CLICKHOUSE_HOST=localhost
CLICKHOUSE_PORT=8123
CLICKHOUSE_USER=default
CLICKHOUSE_PASSWORD=CHANGE_TO_YOUR_PASSWORD
CLICKHOUSE_DATABASE=defaultOr via command-line args:
--host the database host--port the database port--user the database username--password the database password--database the database nameCheck the SQL in dev_contribute.md for details.
What is the sales volume in each region? Which product is the best - selling?
Configure the MCP server in VSCode, Cline extension, or other MCP client.: Example:
{
"mcpServers": {
"clickhouse": {
"command": "uv",
"args": [
"--directory",
"/path/to/clickhouse_mcp_server",
"run",
"-m",
"clickhouse_mcp_server.server"
],
"env": {
"CLICKHOUSE_HOST": "localhost",
"CLICKHOUSE_PORT": "8123",
"CLICKHOUSE_USER": "default",
"CLICKHOUSE_PASSWORD": "CHANGE_TO_YOUR_PASSWORD",
"CLICKHOUSE_DATABASE": "default"
}
}
}
}APACHE - See LICENSE file for details.
See dev_contribute.md for details.
uv package managerThis library's implementation was inspired by the following three repositories and incorporates their code, respect for the open-source spirit!
Thanks!
Pick your client and paste the snippet. Each one is the same server, written the way that client expects it.
claude mcp add clickhouse -- uv --directory /path/to/clickhouse_mcp_server run -m clickhouse_mcp_server.server{
"mcpServers": {
"clickhouse": {
"env": {
"CLICKHOUSE_HOST": "",
"CLICKHOUSE_PORT": "",
"CLICKHOUSE_USER": "",
"CLICKHOUSE_DATABASE": "",
"CLICKHOUSE_PASSWORD": ""
},
"args": [
"--directory",
"/path/to/clickhouse_mcp_server",
"run",
"-m",
"clickhouse_mcp_server.server"
],
"command": "uv"
}
}
}code --add-mcp '{"name":"clickhouse","env":{"CLICKHOUSE_HOST":"","CLICKHOUSE_PORT":"","CLICKHOUSE_USER":"","CLICKHOUSE_DATABASE":"","CLICKHOUSE_PASSWORD":""},"args":["--directory","/path/to/clickhouse_mcp_server","run","-m","clickhouse_mcp_server.server"],"command":"uv"}'[mcp_servers.clickhouse]
command = "uv"
args = ["--directory", "/path/to/clickhouse_mcp_server", "run", "-m", "clickhouse_mcp_server.server"]Runs locally on your device. Your client starts the server itself, so nothing has to be hosted.
Paste this prompt into your agent. It reads this page and does the setup for you.
Read https://aiagentslisting.com/mcp/clickhouse-mcp-server-2 to learn what the "ClickHouse MCP Server" MCP server does and how to install it. Add it to my coding agent's MCP configuration as documented on that page, then confirm the server connects and list the tools it exposes.Agents can also browse this directory over MCP at https://aiagentslisting.com/api/mcp
This server runs locally, so we can't read its tool list over the web yet.
Maintain this server? Claiming proves you own the listing and earns the last 4 points.
Claim this listingPaste this line near the top of your repository's README. The badge always renders the current score.
[](https://aiagentslisting.com/mcp/clickhouse-mcp-server-2)Nothing comparable is listed yet.
No tagged releases on record.
Connect to the AI Agents Listing MCP server at https://aiagentslisting.com/api/mcp using the HTTP transport and complete the sign-in when it asks. Then call the submit_review tool for the listing "clickhouse-mcp-server-2" with a rating from 1 to 5 and a short note on what worked and what did not.No reviews yet
Be the first to share your experience with this tool.
One email a week. New agents, MCP servers and skills, and what is actually getting traction.