Databases - official ClickHouse server
ClickHouse MCP server
Open-source MCP server from ClickHouse that lets AI assistants list databases and tables and run SQL against any ClickHouse instance, self-hosted or Cloud. It also has an optional chDB embedded engine. It runs locally over stdio by default, and can also serve Streamable HTTP. It runs locally from mcp-clickhouse (pypi); the notes below cover how it authenticates.
Last verified 4 tools7 sources
Install
Claude Code
About Claude Codeclaude mcp add \
--transport stdio \
--env CLICKHOUSE_HOST=your-clickhouse-host \
--env CLICKHOUSE_USER=your-clickhouse-user \
--env CLICKHOUSE_PASSWORD=your-clickhouse-password \
--scope user \
mcp-clickhouse -- \
uv run --with mcp-clickhouse --python 3.10 mcp-clickhouseCodex
About Codexcodex mcp add mcp-clickhouse \
--env CLICKHOUSE_HOST=your-clickhouse-host \
--env CLICKHOUSE_USER=your-clickhouse-user \
--env CLICKHOUSE_PASSWORD=your-clickhouse-password \
-- uv run --with mcp-clickhouse --python 3.10 mcp-clickhouseCursor
About Cursor{
"mcpServers": {
"mcp-clickhouse": {
"command": "uv",
"args": [
"run",
"--with",
"mcp-clickhouse",
"--python",
"3.10",
"mcp-clickhouse"
],
"env": {
"CLICKHOUSE_HOST": "your-clickhouse-host",
"CLICKHOUSE_USER": "your-clickhouse-user",
"CLICKHOUSE_PASSWORD": "your-clickhouse-password"
}
}
}
}Generic
{
"mcpServers": {
"mcp-clickhouse": {
"command": "uv",
"args": [
"run",
"--with",
"mcp-clickhouse",
"--python",
"3.10",
"mcp-clickhouse"
],
"env": {
"CLICKHOUSE_HOST": "your-clickhouse-host",
"CLICKHOUSE_USER": "your-clickhouse-user",
"CLICKHOUSE_PASSWORD": "your-clickhouse-password"
}
}
}
}Tools
run_query- Execute SQL on the ClickHouse cluster; read-only by default, with optional named query parameters.
list_databases- List all databases on the ClickHouse cluster.
list_tables- List tables in a database with pagination, LIKE filters and optional column metadata.
run_chdb_select_query- Execute SQL using chDB's embedded ClickHouse engine (requires the optional chdb extra).
As documented on October 17, 2026. A running server reports its current list through tools/list.
Notes and caveats
- Latest release v0.7.0 (2026-09-21).
- Version numbers are pre-1.0, and the docs give no ga/beta label.
- Connects with ClickHouse credentials in environment variables.
- HTTP/SSE transports require auth by default: a static bearer token (CLICKHOUSE_MCP_AUTH_TOKEN), OAuth/OIDC via FastMCP, or auth explicitly disabled for local development.
- The standalone SSE transport is deprecated in favor of Streamable HTTP.
- Writes are off by default (CLICKHOUSE_ALLOW_WRITE_ACCESS=false).
- The generic snippet is the Claude Desktop config from the docs.
- ClickHouse's Cloud docs list the open-source tools as run_select_query, list_databases and list_tables, but the current README names the query tool run_query.
More MCP servers for databases
- ClickHouseStatus: Beta
ClickHouse Cloud remote MCP server
A fully managed remote MCP endpoint for ClickHouse Cloud services that lets agents list databases and tables, run read-only SELECT queries, and inspect organizations, services, backups, ClickPipes and billing. All 13 tools are read-only.
Transport: Streamable HTTPAuth: OAuth or API key - AirtableStatus: GA
Airtable MCP server
Airtable's official hosted MCP server lets AI tools list and create bases, change table and field schema, read and write records, build interfaces, submit forms and draft automations, all within the user's existing permissions.
Transport: Streamable HTTPAuth: OAuth or API key - Chroma
Chroma MCP server
Self-hosted MCP server that lets agents create and manage Chroma collections and add, query, update and delete documents. It supports vector search, full-text search and metadata filtering against ephemeral, persistent, self-hosted HTTP or Chroma Cloud clients.
Transport: stdioAuth: Other - CockroachDBStatus: GA
CockroachDB Cloud MCP server
Managed MCP server built into CockroachDB Cloud that lets AI tools list clusters, explore live schemas and run SQL against clusters in a CockroachDB Cloud organization. Connections can cover every cluster the user or service account can access, or be scoped to one cluster with an mcp-cluster-id header.
Transport: Streamable HTTPAuth: OAuth or API key - Convex
Convex MCP server
Local MCP server built into the Convex CLI that lets agents inspect and act on a Convex deployment: list tables and schemas, page through data, run read-only one-off queries, call deployed functions, read logs and health insights, and manage environment variables.
Transport: stdioAuth: Other - CouchbaseStatus: GA
Couchbase MCP server
Self-hosted MCP server that connects AI agents to Couchbase clusters on Capella or self-managed, with tools for cluster health, schema discovery, key-value operations, SQL++ queries, indexing, full-text and vector search, and query performance analysis.
Transport: stdio, Streamable HTTP, SSEAuth: Other
Related reading
- Claude Code MCP Tasks: Long-Running Tools That Ask You ThingsClaude Code supports MCP Tasks and elicitations. What a tool call needs to become a task, what v2.1.319 changed for Bedrock and gateways, and what server authors change.
- Claude Security Continuous Scanning: Fix Tracking, API and MCPClaude Security now rescans repos as commits land, marks findings fixed when the fix ships, and adds an API, MCP connector and webhooks. Setup, limits and cost.
- MCP Client Features: Sampling, Elicitation and Roots ExplainedMCP sampling, elicitation and roots explained against the 2026-07-28 spec, with JSON-RPC examples and which of 24 clients support each one.
- REA vs leanrea: Skill or MCP for Reverse Engineering Agents?leanrea is an 8 KB skill pitched as a replacement for the REA (Reverse Engineer Anything) MCP server. What its benchmark shows, what it skips, and which to install.
- How to Publish a Plugin to the Claude Directory (Developer Portal Guide)Submit a plugin to the Claude directory: validate it, clear the security scan, publish, and read 90 days of usage analytics. Needs a paid plan.
- ChatGPT Plugin Extensions: Sidebar Apps, Panels and File EditorsChatGPT plugins can now add sidebar apps, side panels, file editors and native forms. How openai/ui entrypoints work, with type-checked code.
FAQ
What does the ClickHouse MCP server do?
Open-source MCP server from ClickHouse that lets AI assistants list databases and tables and run SQL against any ClickHouse instance, self-hosted or Cloud. It also has an optional chDB embedded engine. It runs locally over stdio by default, and can also serve Streamable HTTP. The vendor documents 4 tools, including run_query, list_databases, list_tables and run_chdb_select_query.
How do I add the ClickHouse MCP server to Claude Code?
ClickHouse documents a Claude Code config; copy it from the Claude Code section of this page. Snippets for Codex, Cursor and Generic are there too.
Does the ClickHouse MCP server need authentication?
It uses a scheme other than OAuth or an API key, such as the session of the app or instance it runs in; the notes on this page describe it. Transport: stdio, Streamable HTTP, SSE. Status: Unlabelled, last checked October 17, 2026.
Sources
Last verified against 7 ClickHouse pages, then re-checked independently.
- github.comhttps://github.com/ClickHouse/mcp-clickhouse
- raw.githubusercontent.comhttps://raw.githubusercontent.com/ClickHouse/mcp-clickhouse/HEAD/README.md
- raw.githubusercontent.comhttps://raw.githubusercontent.com/ClickHouse/mcp-clickhouse/HEAD/LICENSE
- github.comhttps://github.com/ClickHouse/mcp-clickhouse/releases
- clickhouse.comhttps://clickhouse.com/docs/guides/use-cases/ai-ml/MCP/claude-desktop.md
- clickhouse.comhttps://clickhouse.com/docs/concepts/features/interfaces/mcp.md
- clickhouse.comhttps://clickhouse.com/docs/use-cases/AI/MCP
Newsletter
New MCP servers, the week they ship
One email per week. New official MCP servers, the coding tools that support them and how developers wire them up.