# ClickHouse MCP

[BASE product page](<https://base.akulich.dev/en/library/github-com-clickhouse-mcp-clickhouse/>) · [Resource](<https://github.com/ClickHouse/mcp-clickhouse>)

ID: github\-com\-clickhouse\-mcp\-clickhouse · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

The official ClickHouse MCP server for exploring schemas and running analytical SQL queries with an AI agent\.

## Type

MCP tools for developers

## Entry type

mcp

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/github-com-clickhouse-mcp-clickhouse/#resource-access>)

free

## [What you can use for free](<https://base.akulich.dev/en/library/github-com-clickhouse-mcp-clickhouse/#resource-access>)

You can use the code under the stated license; servers, APIs, and compute must be provided separately\.

## [Paid features and costs](<https://base.akulich.dev/en/library/github-com-clickhouse-mcp-clickhouse/#resource-access>)

ClickHouse Cloud, a self\-hosted server, and the agent’s model are billed separately\.

## [Access and limitations](<https://base.akulich.dev/en/library/github-com-clickhouse-mcp-clickhouse/#resource-access>)

You can use the code under the stated license; servers, APIs, and compute must be provided separately\. ClickHouse Cloud, a self\-hosted server, and the agent’s model are billed separately\.

## [Use cases](<https://base.akulich.dev/en/library/github-com-clickhouse-mcp-clickhouse/#resource-tasks>)

- Connect a user with limited permissions and inspect the tables\.
- Run a limited SELECT and compare aggregations with a reference SQL query\.

## Category IDs

- integrations
- backend

## Subcategory IDs

- integrations\.data
- backend\.databases

## Tags

- ClickHouse MCP
- ClickHouse
- MCP

## Also known as

- ClickHouse/mcp\-clickhouse

## [Selection purpose](<https://base.akulich.dev/en/library/github-com-clickhouse-mcp-clickhouse/#resource-selection>)

Connect a user with limited permissions and inspect the tables\.

## [Choose this when](<https://base.akulich.dev/en/library/github-com-clickhouse-mcp-clickhouse/#resource-selection>)

- Connect a user with limited permissions and inspect the tables\.
- Run a limited SELECT and compare aggregations with a reference SQL query\.

## [Consider alternatives when](<https://base.akulich.dev/en/library/github-com-clickhouse-mcp-clickhouse/#resource-selection>)

- When choosing for this topic, compare ClickHouse MCP with ClickHouse\. A candidate to compare under the topic: Databases\. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together\.
- When choosing for this topic, compare ClickHouse MCP with ClickHouse Agent Skills\. A candidate to compare under the topic: Databases\. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together\.

## [Requirements](<https://base.akulich.dev/en/library/github-com-clickhouse-mcp-clickhouse/#resource-selection>)

- In client code, preserve large integers as strings or handle them with a type offering sufficient precision\.

## [Limitations](<https://base.akulich.dev/en/library/github-com-clickhouse-mcp-clickhouse/#resource-selection>)

- Costs and limits of free use: ClickHouse Cloud, a self\-hosted server, and the agent’s model are billed separately\.
- Terms of use: Apache\-2\.0 for this repository; connected services, models, and data have separate terms\.
- Writes are disabled by default\. Write\-enabling flags do not replace the ClickHouse user's actual permissions; SQL checks are described as best\-effort\.

## [Questions before use](<https://base.akulich.dev/en/library/github-com-clickhouse-mcp-clickhouse/#resource-faq>)

### What can you use for free in ClickHouse MCP?

You can use the code under the stated license; servers, APIs, and compute must be provided separately\.

### What additional costs might arise with ClickHouse MCP?

ClickHouse Cloud, a self\-hosted server, and the agent’s model are billed separately\.

### What terms of use matter for ClickHouse MCP?

Apache\-2\.0 for this repository; connected services, models, and data have separate terms\.

### How do you get started with ClickHouse MCP?

Connect a user with limited permissions and inspect the tables\. Run a limited SELECT and compare aggregations with a reference SQL query\. Compare the result with the workflow's goal; after changing the project, run its standard checks\.

### Why is a large numeric identifier returned as a string?

The README describes transmitting 64\-bit integers outside JavaScript's safe range as decimal strings\. This preserves identifier precision in JSON transmission; it does not mean the ClickHouse column has become a text column\.

## Related resources selected by editors

- clickhouse: A candidate to compare under the topic: Databases\. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together\.
- github\-com\-clickhouse\-agent\-skills: A candidate to compare under the topic: Databases\. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together\.

## Sources for the selection guide

- [https://github\.com/ClickHouse/mcp\-clickhouse](<https://github.com/ClickHouse/mcp-clickhouse>)
- [https://raw\.githubusercontent\.com/ClickHouse/mcp\-clickhouse/main/README\.md](<https://raw.githubusercontent.com/ClickHouse/mcp-clickhouse/main/README.md>)
- [https://raw\.githubusercontent\.com/ClickHouse/mcp\-clickhouse/main/LICENSE](<https://raw.githubusercontent.com/ClickHouse/mcp-clickhouse/main/LICENSE>)

## [Possible workflow](<https://base.akulich.dev/en/library/github-com-clickhouse-mcp-clickhouse/#resource-scenario>)

The official ClickHouse MCP server for exploring schemas and running analytical SQL queries with an AI agent\.

A possible workflow; this is not a report of hands-on testing.

## Before you start

- A test ClickHouse database, a read\-only user, and an SQL task\.

## Steps

1. Connect a user with limited permissions and inspect the tables\.
2. Run a limited SELECT and compare aggregations with a reference SQL query\.
3. Compare the result with the workflow's goal; after changing the project, run its standard checks\.

## Check your result

- Aggregation results match; permissions do not allow unnecessary writes\.
- Check connection permissions and dependency terms; confirm external service costs if the workflow requires them\.

## [License](<https://base.akulich.dev/en/library/github-com-clickhouse-mcp-clickhouse/#resource-license>)

Apache\-2\.0 for this repository; connected services, models, and data have separate terms\.

## License explanations for the specified scope

### Apache 2\.0 — permissive license with patent terms

You can use and modify the code in commercial and closed\-source projects\. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided\. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks\.

[License terms](<https://www.apache.org/licenses/LICENSE-2.0>)

## Related resource IDs

- clickhouse
- github\-com\-clickhouse\-agent\-skills

## [Sources](<https://base.akulich.dev/en/library/github-com-clickhouse-mcp-clickhouse/#resource-sources>)

- [Official repository](<https://github.com/ClickHouse/mcp-clickhouse>)
- [Documentation](<https://raw.githubusercontent.com/ClickHouse/mcp-clickhouse/main/README.md>)
- [License](<https://raw.githubusercontent.com/ClickHouse/mcp-clickhouse/main/LICENSE>)

## Editorial review date

2026\-10\-06

## Editorial review scope

The README and license were reviewed against public primary sources on 2026\-10\-06\. The code was not installed or run; applicability depends on the project and client versions\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
