TypeScript
MIT License
Allows querying and interacting with ClickHouse databases, providing tools for executing SQL select queries, listing databases, and viewing tables within a database.
An MCP server for ClickHouse.
run_select_query
sql
(string): The SQL query to execute.readonly = 1
to ensure they are safe.list_databases
list_tables
database
(string): The name of the database.Note: This is a temporary configuration process that will be significantly improved once the package is published.
uv sync
to install the dependencies. To install uv
follow the instructions here. Then do source .venv/bin/activate
..env.production
file with the ClickHouse credentials.fastmcp install mcp_clickhouse/mcp_server.py -f .env.production
to install the server.test-services
directory run docker compose up -d
to start the ClickHouse cluster..env
file in the root of the repository.uv sync
to install the dependencies. To install uv
follow the instructions here. Then do source .venv/bin/activate
.fastmcp dev mcp_clickhouse/mcp_server.py
to start the MCP server.You must be authenticated.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
An MCP server for ClickHouse.