clickhouse-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CLICKHOUSE_MCP_HOST | Yes | ClickHouse host | |
| CLICKHOUSE_MCP_USER | Yes | ClickHouse read-only user | |
| CLICKHOUSE_MCP_DATABASE | No | ClickHouse database (default: usa) | usa |
| CLICKHOUSE_MCP_PASSWORD | Yes | ClickHouse password | |
| CLICKHOUSE_MCP_HTTP_PORT | No | ClickHouse HTTP port (default 8123) | 8123 |
| CLICKHOUSE_MCP_ALLOW_RAW_SQL | No | Set to 'true' to enable raw SQL tool (disabled by default) | false |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_ohlcvA | Return OHLCV bars for one symbol over [start, end] at frequency.
|
| get_indicatorsC | Return one technical-indicator series (e.g. ma20, rsi14, macd_hist). |
| screen_stocksA | Full-market technical-indicator scan.
|
| get_correlation_matrixB | Return the pairwise return-correlation matrix for 2-50 symbols. |
| run_safe_sqlA | Run a single read-only SELECT (DISABLED by default). Off unless CLICKHOUSE_MCP_ALLOW_RAW_SQL=true. Even when enabled only single read-only SELECT statements are allowed (readonly=1, forced LIMIT, execution-time + result-row guardrails). Prefer the structured tools. |
| health_checkA | Local health probe + optional ClickHouse reachability check. |
| get_server_infoA | Local server metadata. Never calls ClickHouse. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kevinkda/clickhouse-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server