Loading...
{
"mcpServers": {
"mcp-clickhouse": {
"command": "uv",
"args": [
"run",
"--with",
"mcp-clickhouse",
"--python",
"3.10",
"mcp-clickhouse"
],
"env": {
"CLICKHOUSE_HOST": "<clickhouse-host>",
"CLICKHOUSE_PORT": "<clickhouse-port>",
"CLICKHOUSE_USER": "<clickhouse-user>",
"CLICKHOUSE_PASSWORD": "<clickhouse-password>",
"CLICKHOUSE_ROLE": "<clickhouse-role>",
"CLICKHOUSE_SECURE": "true",
"CLICKHOUSE_VERIFY": "true",
"CLICKHOUSE_CONNECT_TIMEOUT": "30",
"CLICKHOUSE_SEND_RECEIVE_TIMEOUT": "30"
}
}
}
}run_select_queryExecutes a read-only SQL query on the ClickHouse cluster.
Queries are run with `readonly = 1`, preventing data modification.
list_databasesLists all databases on the ClickHouse cluster.
Read-only operation with no side effects.
list_tablesLists tables in a database with optional filtering and pagination.
Read-only operation with no side effects.
run_chdb_select_queryExecutes a SQL query using the chDB embedded ClickHouse engine.
Queries data directly from various sources, potentially including untrusted URLs or files.
This MCP server offers a reasonable level of safety when properly configured with authentication and secure connection settings. The greatest risks arise from disabling authentication or using the chDB tool with untrusted data sources. Exercise caution when configuring environment variables and granting access to the ClickHouse instance.