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 database (local, cloud, or self-hosted) 2. Cloud Management - Complete. The chmcp mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 3 defined tools rather than through you.

Its toolset

Everything the assistant can do here goes through one of these:

  • Admin — Full access to all resources
  • Developer — Service and resource management
  • Read — only mode** (CLICKHOUSE_READONLY=true): Only SELECT, SHOW, DESCRIBE, EXPLAIN queries

Adding it to your client

Being a remote server, there is no local install. You register the endpoint with your client, authorise it once, and the tools appear.

Configuration

You will need 8 environment variables: CLICKHOUSE_HOST, CLICKHOUSE_PORT, CLICKHOUSE_USER, CLICKHOUSE_PASSWORD, CLICKHOUSE_SECURE, CLICKHOUSE_READONLY, CLICKHOUSE_CLOUD_KEY_ID, CLICKHOUSE_CLOUD_KEY_SECRET. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

When to reach for it

This sits in the database access group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Chmcp's toolset — Admin, Developer, Read — is a fair guide to whether it matches your workflow. It is maintained by oualib; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Caveats

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the chmcp mcp server does with a few real requests.

Available tools

ToolWhat it does
AdminFull access to all resources
DeveloperService and resource management
Readonly mode** (CLICKHOUSE_READONLY=true): Only SELECT, SHOW, DESCRIBE, EXPLAIN queries

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-password",
        "CLICKHOUSE_SECURE": "true",
        "CLICKHOUSE_READONLY": "true"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
CLICKHOUSE_HOSTEndpoint or connection string the server talks to.Optional
CLICKHOUSE_PORTConfiguration value read at startup.Optional
CLICKHOUSE_USERConfiguration value read at startup.Optional
CLICKHOUSE_PASSWORDConfiguration value read at startup.Optional
CLICKHOUSE_SECUREConfiguration value read at startup.Optional
CLICKHOUSE_READONLYConfiguration value read at startup.Optional
CLICKHOUSE_CLOUD_KEY_IDCredential the server authenticates with.Yes
CLICKHOUSE_CLOUD_KEY_SECRETCredential the server authenticates with.Yes

Example prompts to try

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

Frequently asked questions

It connects Chmcp to MCP-compatible AI assistants such as Claude and Cursor, exposing 3 tools (Admin, Developer, Read) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Chmcp directly.