ClickHouse MCP Server
Gives AI agents MCP tools to inspect ClickHouse databases, list tables, and run SQL queries.
Description
ClickHouse MCP Server is the official open-source MCP integration for connecting AI assistants to ClickHouse databases. It exposes structured tools for inspecting data and executing queries. An agent can list databases, inspect tables and their columns, and execute SQL through run_query. Queries run in read-only mode by default; write access must be enabled explicitly. For example, an analyst can connect the server to an MCP-compatible assistant, ask it to inspect a schema, and retrieve records related to a question. Setup requires the MCP server, a ClickHouse endpoint, and database credentials. Access is governed by the ClickHouse user's grants as well as the server configuration. A dedicated least-privilege account is recommended even for read-only use. The MCP server is open source, but hosting and operating ClickHouse databases is a separate responsibility and may involve costs.