Skip to content
ClickHouse Docs
ClickHouse DocsClickHouse Docs

The ClickHouse MCP server

The ClickHouse MCP server is the open-standard access layer of the Agentic Data Stack: it exposes ClickHouse to the chat front-end over the Model Context Protocol, so the agent can explore your data and run read-only queries against it.

In the stack, the open-source server runs alongside ClickHouse and is preconfigured in LibreChat. It exposes three tools to the agent:

  • List databases — enumerate the databases in the connected ClickHouse instance.
  • List tables — inspect the tables and their schemas within a database.
  • Run SELECT queries — execute read-only queries and return the results.

To run it as part of the stack, see the Docker setup guide. To use the ClickHouse MCP server with other clients and agent frameworks, or to read its source and configuration:

Navigation