ClickHouse MCP by usefulapi

v1.2.1
io.usefulapi/clickhouse Checked 1 day ago Published 8 hours ago

Run read-only SQL, list databases and tables, describe columns, explain queries in ClickHouse.

Use your ClickHouse account from Claude, Cursor, or any MCP client. Run read-only SQL, list databases and tables, describe columns and explain query plans. Hosted, no local install: connect with your own credentials. Add only the URL. Do not add an Authorization header or an API key to the client config: the server signs you in with OAuth, and the login page asks for your ClickHouse credentials. Step-by-step setup, where to find your credentials, and FAQ: https://usefulapi.io/clickhouse/

Summary extracted from the README.

ClickHouse MCP by usefulapi

Use your ClickHouse account from Claude, Cursor, or any MCP client. Run read-only SQL, list databases and tables, describe columns and explain query plans. Hosted, no local install: connect with your own credentials.

Live endpoint: https://clickhouse.usefulapi.io/mcp · Homepage: https://usefulapi.io

Connect

  • Claude (claude.ai, Desktop): open Customize → Connectors, click + Add → Add custom connector, and paste https://clickhouse.usefulapi.io/mcp.
  • Claude Code: claude mcp add --transport http clickhouse https://clickhouse.usefulapi.io/mcp, then run /mcp to log in.
  • VS Code: Add to VS Code.
  • Cursor and other clients: add the URL as a remote MCP server:
{
  "mcpServers": {
    "clickhouse": {
      "url": "https://clickhouse.usefulapi.io/mcp"
    }
  }
}

Add only the URL. Do not add an Authorization header or an API key to the client config: the server signs you in with OAuth, and the login page asks for your ClickHouse credentials.

Step-by-step setup, where to find your credentials, and FAQ: https://usefulapi.io/clickhouse/

On first connect you provide the host name and port of your server (the public name with its port, for example abc.region.provider.clickhouse.cloud:8443), a user name (default default), and a password (empty if the user has none). The server validates it and stores it per user. No keys go in config files.

Tools

Tool Type What it does
clickhouse_get_server_info read Get server info
clickhouse_list_running_queries read List running queries
clickhouse_list_databases read List databases
clickhouse_list_tables read List tables
clickhouse_describe_table read Describe table
clickhouse_run_query read Run a read-only query
clickhouse_explain_query read Explain a query
clickhouse_usage_status meta Usage status (free-tier meter)
clickhouse_request_feature meta Request a missing feature
clickhouse_upgrade meta Upgrade to Pro or Pro+
clickhouse_cancel_subscription meta Cancel the Pro subscription

read tools are read-only; write tools mutate data (clients should confirm them); meta tools report usage, manage your subscription or send a feature request.

Pricing

Plan Price Limit
Free $0 50 tool calls / month
Pro (per user) $9/mo or $90/yr (2 months free) 10,000 tool calls / month
Pro+ (per user) $39/mo or $390/yr (2 months free) 100,000 tool calls / month

Each paid plan covers this server only. Ask your AI to run clickhouse_upgrade and choose Pro or Pro+, billed monthly or yearly (it returns a Stripe Checkout link). If you already have Pro, ask to change it to Pro+. The change requires your confirmation, keeps your billing interval and charges the price difference for the rest of the period immediately. Cancel any time with clickhouse_cancel_subscription: your paid plan continues to the end of the paid period, with no refund for the current period, and asking to resume the same plan with clickhouse_upgrade before then undoes the cancel. Or write to support@usefulapi.io.

License

MIT — see LICENSE. Documentation only; the server is hosted.