clickhouse-mcp

clickhouse-mcp

3.1

If you are the rightful owner of clickhouse-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

MCP-compatible server for interacting with ClickHouse databases.

The ClickHouse MCP server is designed to facilitate seamless interaction with ClickHouse databases using the Model Context Protocol (MCP). It provides a robust interface for executing SQL queries, retrieving database and table lists, and obtaining table schemas. The server supports multiple transport methods, including standard input/output (stdio) and Server-Sent Events (SSE), making it versatile for different deployment scenarios. The project is structured to separate core application logic, ClickHouse client interactions, and MCP protocol handling, ensuring modularity and ease of maintenance.

Features

  • Retrieve list of databases
  • Retrieve list of tables in a selected database
  • Obtain schema of a selected table
  • Execute SQL queries and retrieve results
  • Support for different transports (stdio and SSE)

Tools

  1. get_databases

    Get the database list

  2. get_tables

    Get a list of tables in the specified database

  3. get_schema

    Get the structure of the specified table

  4. query

    Execute SQL query and get results