MCP server enabling SQL queries and metadata listing on ClickHouse databases with secure connection options.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by MCP Timeplus.
run_select_queryCallable MCP tool function
sqlCallable MCP tool function
list_databasesCallable MCP tool function
list_tablesCallable MCP tool function
databaseCallable MCP tool function
An MCP server for ClickHouse.
run_select_query
sql (string): The SQL query to execute.readonly = 1 to ensure they are safe.list_databases
list_tables
database (string): The name of the database.Open the Claude Desktop configuration file located at:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%/Claude/claude_desktop_config.jsonAdd the following:
Update the environment variables to point to your own ClickHouse service.
Or, if you'd like to try it out with the ClickHouse SQL Playground, you can use the following config:
Locate the command entry for uv and replace it with the absolute path to the uv executable. This ensures that the correct version of uv is used when starting the server. On a mac, you can find this path using which uv.
Restart Claude Desktop to apply the changes.
In test-services directory run docker compose up -d to start the ClickHouse cluster.
Add the following variables to a .env file in the root of the repository.
Run uv sync to install the dependencies. To install uv follow the instructions here. Then do source .venv/bin/activate.
For easy testing, you can run mcp dev mcp_clickhouse/mcp_server.py to start the MCP server.
The following environment variables are used to configure the ClickHouse connection:
CLICKHOUSE_HOST: The hostname of your ClickHouse serverCLICKHOUSE_USER: The username for authenticationCLICKHOUSE_PASSWORD: The password for authenticationCLICKHOUSE_PORT: The port number of your ClickHouse server
8443 if HTTPS is enabled, 8123 if disabledCLICKHOUSE_SECURE: Enable/disable HTTPS connection
"true""false" for non-secure connectionsCLICKHOUSE_VERIFY: Enable/disable SSL certificate verification
"true""false" to disable certificate verification (not recommended for production)CLICKHOUSE_CONNECT_TIMEOUT: Connection timeout in seconds
"30"CLICKHOUSE_SEND_RECEIVE_TIMEOUT: Send/receive timeout in seconds
"300"CLICKHOUSE_DATABASE: Default database to use
For local development with Docker:
For ClickHouse Cloud:
For ClickHouse SQL Playground:
You can set these variables in your environment, in a .env file, or in the Claude Desktop configuration:
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/jovezhong-mcp-timeplus)<a href="https://allmcps.com/mcp/jovezhong-mcp-timeplus"><img src="https://allmcps.com/api/badge/jovezhong-mcp-timeplus?style=directory" alt="MCP Timeplus on AllMCPs" /></a>