# mcp-clickhouse

Connect ClickHouse to your AI assistants.

Canonical page: https://www.reposhelf.co.uk/projects/github/clickhouse/mcp-clickhouse.html

- Project ID: ClickHouse/mcp-clickhouse
- Source: GitHub
- Original project: https://github.com/ClickHouse/mcp-clickhouse
- Description attribution: project author metadata
- Categories: AI &amp; machine learning, MCP servers &amp; agents, Chatbots &amp; assistants
- Technologies: Python
- Licence: Apache-2.0
- Repository availability checked: 2026-11-05T21:13:20.238Z
- Demo page loaded: 2026-11-06T01:34:55.459Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> The server implements MCP 2026-07-28 and supports legacy initialize handshakes from 2024-11-05 through 2025-11-25. Modern clients use sessionless requests and server/discover. Existing clients can continue to negotiate the legacy protocol.

> HTTP requests without MCP-Protocol-Version are routed through legacy handling so clients from before 2025-06-18 can continue to connect. MCP 2026-07-28 permits this behavior on servers that support those clients. Modern clients should send the header on every POST request.

- ClickHouse tool responses are JSON-encoded strings. Integers outside \[-9007199254740991, 9007199254740991\] are returned as decimal strings to preserve exact values in JavaScript clients. This applies to query rows and…
- Execute SQL queries on your ClickHouse cluster.
- Input: query \(string\): The SQL query to execute.
- Optional input: params \(object\): Named values for ClickHouse \{name:Type\} placeholders. See Query parameters.
- Queries run in read-only mode by default \(CLICKHOUSEALLOWWRITEACCESS=false\), but writes can be enabled explicitly if needed.

## Author-documented requirements and audience

> The server implements MCP 2026-07-28 and supports legacy initialize handshakes from 2024-11-05 through 2025-11-25. Modern clients use sessionless requests and server/discover. Existing clients can continue to negotiate the legacy protocol.





Not recorded: Account, External API key, Paid service, Self-hosting. Missing information does not mean there are no requirements.

Source: https://github.com/ClickHouse/mcp-clickhouse/blob/main/README.md

Extraction checked: 2026-11-05T21:13:20.349Z

Last recorded source update: 2026-11-04T23:44:17.000Z

Saved release: v0.7.0 — 2026-09-21T13:55:16.000Z. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=ClickHouse%2Fmcp-clickhouse). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
