/ Directory / Playground / ClickHouse MCP
● Official clickhouse ⚡ Instant

ClickHouse MCP

by clickhouse · ClickHouse/mcp-clickhouse

Connect ClickHouse columnar database to AI assistants — query analytical workloads through MCP.

ClickHouse MCP is an MCP server maintained by clickhouse. Connect ClickHouse columnar database to AI assistants — query analytical workloads through MCP. See README for installation and configuration: https://github.com/ClickHouse/mcp-clickhouse

Why use it

Key features

Live Demo

What it looks like in practice

clickhouse-mcp.replay ▶ ready
0/0

Install

Pick your client

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "clickhouse-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-clickhouse"
      ],
      "_inferred": true
    }
  }
}

Open Claude Desktop → Settings → Developer → Edit Config. Restart after saving.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "clickhouse-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-clickhouse"
      ],
      "_inferred": true
    }
  }
}

Cursor uses the same mcpServers schema as Claude Desktop. Project config wins over global.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "clickhouse-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-clickhouse"
      ],
      "_inferred": true
    }
  }
}

Click the MCP Servers icon in the Cline sidebar, then "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "clickhouse-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-clickhouse"
      ],
      "_inferred": true
    }
  }
}

Same shape as Claude Desktop. Restart Windsurf to pick up changes.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "clickhouse-mcp",
      "command": "npx",
      "args": [
        "-y",
        "mcp-clickhouse"
      ]
    }
  ]
}

Continue uses an array of server objects rather than a map.

~/.config/zed/settings.json
{
  "context_servers": {
    "clickhouse-mcp": {
      "command": {
        "path": "npx",
        "args": [
          "-y",
          "mcp-clickhouse"
        ]
      }
    }
  }
}

Add to context_servers. Zed hot-reloads on save.

claude mcp add clickhouse-mcp -- npx -y mcp-clickhouse

One-liner. Verify with claude mcp list. Remove with claude mcp remove.

Use Cases

Real-world ways to use ClickHouse MCP

Use ClickHouse MCP for its primary workflow

👤 Claude/MCP client users ⏱ ~20 min intermediate

When to use: See repo README for canonical use cases.

Prerequisites
  • Repo cloned or installed — See undefined
Flow
  1. Install
    Install ClickHouse MCP per README.✓ Copied
    → Tool registered with client
  2. Configure
    Provide credentials/config as instructed.✓ Copied
    → Successful auth/init
  3. Use
    Run a sample task with ClickHouse MCP.✓ Copied
    → Expected output

Outcome: You can drive the documented workflow end-to-end.

Pitfalls
  • Skipping README — Read the repo README and CHANGELOG before shipping to prod.

Tools

What this MCP exposes

ToolInputsWhen to callCost
primary see README Primary action free

Cost & Limits

What this costs to run

API quota
None of its own; bounded by upstream provider quotas if any
Tokens per call
Depends on usage
Monetary
Open source — check repo LICENSE
Tip
Review upstream API costs (if any) before automating.

Security

Permissions, secrets, blast radius

Minimum scopes: Whatever the upstream provider requires
Credential storage: Env vars or local config — never commit secrets
Data egress: Forwards data per its README
Never grant: Full admin to untrusted prompts

Troubleshooting

Common errors and fixes

Auth fails

Verify credentials and required scopes match README.

Verify: Re-read repo README auth section.
Tool not found by client

Ensure MCP client config points to correct command/path.

Verify: Restart the client after editing config.

More

Resources

📖 Read the official README on GitHub

🐙 Browse open issues

🔍 Browse all 400+ MCP servers and Skills

Continue exploring

Related tools and workflows

Choose another guide for your workflow, or explore a collection.

Same collection group

StarRocks MCP

Explore StarRocks databases, run SQL, inspect query performance, and turn analytical query results into charts.

MCP

Same collection group

Apache IoTDB MCP

Query Apache IoTDB time-series data using Tree Model or Table Model SQL and inspect the permission requirements for database actions.

MCP

Same collection group

GreptimeDB MCP

Analyze metrics, logs and traces in GreptimeDB with SQL, PromQL-compatible TQL, and time-window aggregation tools.

MCP

Same collection group

Teradata MCP

Connect AI clients to Teradata for data exploration, profiling, semantic layers, analytics, and database administration.

MCP

Browse all topic collections → · See 29 new official additions →