Chmcp MCP Server

A comprehensive Model Context Protocol (MCP) server that provides **two distinct capabilities**: 1. **Database Operations** - Connect to and query

Remote serverstreamable-httpPython

What is the Chmcp MCP Server?

A comprehensive Model Context Protocol (MCP) server that provides two distinct capabilities: 1. Database Operations - Connect to and query any ClickHouse

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Chmcp MCP Server

{
  "mcpServers": {
    "chmcp": {
      "command": "/path/to/uv",
      "args": [
        "run",
        "--with",
        "chmcp",
        "--python",
        "3.13",
        "chmcp"
      ],
      "env": {
        "CLICKHOUSE_HOST": "your-server.com",
        "CLICKHOUSE_PORT": "8443",
        "CLICKHOUSE_USER": "your-username",
        "CLICKHOUSE_PASSWORD": "YOUR_CLICKHOUSE_PASSWORD",
        "CLICKHOUSE_SECURE": "true",
        "CLICKHOUSE_READONLY": "true"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
CLICKHOUSE_HOSTDeclared in the maintainer’s client configuration.Check documentation
CLICKHOUSE_PORTDeclared in the maintainer’s client configuration.Check documentation
CLICKHOUSE_USERDeclared in the maintainer’s client configuration.Check documentation
CLICKHOUSE_PASSWORDDeclared in the maintainer’s client configuration.Check documentation
CLICKHOUSE_SECUREDeclared in the maintainer’s client configuration.Check documentation
CLICKHOUSE_READONLYDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use Chmcp to Admin.”
  • “Use Chmcp to Developer.”
  • “Use Chmcp to Read.”

Frequently asked questions

A comprehensive Model Context Protocol (MCP) server that provides **two distinct capabilities**: 1. **Database Operations** - Connect to and query any ClickHouse Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.