
An MCP server implementation that enables Claude AI to interact with Clickhouse databases.
An MCP server implementation that enables Claude AI to interact with Clickhouse databases.
A Clickhouse database MCP server project.
You can install the package using uv:
uv pip install clickhouse-mcp-serverOr using pip:
pip install clickhouse-mcp-serverThe server provides two tools:
connect_database: Connects to a specific Clickhouse database
database parameter: Name of the database to connect to (string)execute_query: Executes Clickhouse queries
query parameter: SQL query/queries to execute (string)The server uses the following environment variables:
CLICKHOUSE_HOST: Clickhouse server address (default: "localhost")CLICKHOUSE_USER: Clickhouse username (default: "root")CLICKHOUSE_PASSWORD: Clickhouse password (default: "")CLICKHOUSE_DATABASE: Initial database (optional)CLICKHOUSE_READONLY: Read-only mode (set to 1/true to enable, default: false)MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"clickhouse-mcp-server": {
"command": "uv",
"args": [
"--directory",
"/Users/burakdirin/Projects/clickhouse-mcp-server",
"run",
"clickhouse-mcp-server"
],
"env": {
"CLICKHOUSE_HOST": "localhost",
"CLICKHOUSE_USER": "root",
"CLICKHOUSE_PASSWORD": "password",
"CLICKHOUSE_DATABASE": "[optional]",
"CLICKHOUSE_READONLY": "true"
}
}
}
}{
"mcpServers": {
"clickhouse-mcp-server": {
"command": "uvx",
"args": [
"clickhouse-mcp-server"
],
"env": {
"CLICKHOUSE_HOST": "localhost",
"CLICKHOUSE_USER": "root",
"CLICKHOUSE_PASSWORD": "password",
"CLICKHOUSE_DATABASE": "[optional]",
"CLICKHOUSE_READONLY": "true"
}
}
}
}To install Clickhouse Database Integration Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @burakdirin/clickhouse-mcp-server --client claudeTo prepare the package for distribution:
uv syncuv buildThis will create source and wheel distributions in the dist/ directory.
uv publishNote: You'll need to set PyPI credentials via environment variables or command flags:
--token or UV_PUBLISH_TOKEN--username/UV_PUBLISH_USERNAME and --password/UV_PUBLISH_PASSWORDSince MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector.
You can launch the MCP Inspector via npm with this command:
npx @modelcontextprotocol/inspector uv --directory /Users/burakdirin/Projects/clickhouse-mcp-server run clickhouse-mcp-serverUpon launching, the Inspector will display a URL that you can access in your browser to begin debugging.
Pick your client and paste the snippet. Each one is the same server, written the way that client expects it.
claude mcp add clickhouse-mcp-server -- uv --directory /Users/burakdirin/Projects/clickhouse-mcp-server run clickhouse-mcp-server{
"mcpServers": {
"clickhouse-mcp-server": {
"env": {
"CLICKHOUSE_HOST": "",
"CLICKHOUSE_USER": "",
"CLICKHOUSE_DATABASE": "",
"CLICKHOUSE_PASSWORD": "",
"CLICKHOUSE_READONLY": ""
},
"args": [
"--directory",
"/Users/burakdirin/Projects/clickhouse-mcp-server",
"run",
"clickhouse-mcp-server"
],
"command": "uv"
}
}
}code --add-mcp '{"name":"clickhouse-mcp-server","env":{"CLICKHOUSE_HOST":"","CLICKHOUSE_USER":"","CLICKHOUSE_DATABASE":"","CLICKHOUSE_PASSWORD":"","CLICKHOUSE_READONLY":""},"args":["--directory","/Users/burakdirin/Projects/clickhouse-mcp-server","run","clickhouse-mcp-server"],"command":"uv"}'[mcp_servers.clickhouse-mcp-server]
command = "uv"
args = ["--directory", "/Users/burakdirin/Projects/clickhouse-mcp-server", "run", "clickhouse-mcp-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-3 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
npx -y @smithery/cli install @burakdirin/clickhouse-mcp-server --client claude
npx @modelcontextprotocol/inspector uv --directory /Users/burakdirin/Projects/clickhouse-mcp-server run clickhouse-mcp-serverThis 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-3)Nothing comparable is listed yet.
v0.1.0Release notesConnect 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-3" 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.