{
  "$schema": "https://mcpkg.dev/schemas/install-manifest/v1.json",
  "name": "io.github.ClickHouse/mcp-clickhouse",
  "slug": "io.github.clickhouse.mcp-clickhouse",
  "title": "ClickHouse",
  "summary": "Official ClickHouse MCP server for querying and exploring ClickHouse clusters and chDB.",
  "version": "0.8.0",
  "serverKey": "mcp-clickhouse",
  "pageUrl": "https://mcpkglabs.com/tool/io.github.clickhouse.mcp-clickhouse",
  "installMdUrl": "https://mcpkglabs.com/tool/io.github.clickhouse.mcp-clickhouse/install.md",
  "trust": {
    "score": 97,
    "grade": "A",
    "smokeStatus": "works",
    "status": "active",
    "verifiedAt": "2026-12-01T21:32:36.367138197Z"
  },
  "methods": [
    {
      "id": "pypi",
      "label": "PyPI (uvx)",
      "transport": "stdio",
      "command": "uvx",
      "args": [
        "mcp-clickhouse==0.8.0"
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add mcp-clickhouse -e 'CLICKHOUSE_HOST=<CLICKHOUSE_HOST>' -e 'CLICKHOUSE_USER=<CLICKHOUSE_USER>' -- uvx mcp-clickhouse==0.8.0"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "claude_desktop_config.json",
          "content": "{\n  \"mcpServers\": {\n    \"mcp-clickhouse\": {\n      \"args\": [\n        \"mcp-clickhouse==0.8.0\"\n      ],\n      \"command\": \"uvx\",\n      \"env\": {\n        \"CLICKHOUSE_HOST\": \"<CLICKHOUSE_HOST>\",\n        \"CLICKHOUSE_USER\": \"<CLICKHOUSE_USER>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"mcp-clickhouse\": {\n      \"args\": [\n        \"mcp-clickhouse==0.8.0\"\n      ],\n      \"command\": \"uvx\",\n      \"env\": {\n        \"CLICKHOUSE_HOST\": \"<CLICKHOUSE_HOST>\",\n        \"CLICKHOUSE_USER\": \"<CLICKHOUSE_USER>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"inputs\": [\n    {\n      \"description\": \"CLICKHOUSE_HOST\",\n      \"id\": \"clickhouse-host\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    },\n    {\n      \"description\": \"CLICKHOUSE_USER\",\n      \"id\": \"clickhouse-user\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    }\n  ],\n  \"servers\": {\n    \"mcp-clickhouse\": {\n      \"args\": [\n        \"mcp-clickhouse==0.8.0\"\n      ],\n      \"command\": \"uvx\",\n      \"env\": {\n        \"CLICKHOUSE_HOST\": \"${input:clickhouse-host}\",\n        \"CLICKHOUSE_USER\": \"${input:clickhouse-user}\"\n      },\n      \"type\": \"stdio\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.mcp-clickhouse]\ncommand = \"uvx\"\nargs = [\"mcp-clickhouse==0.8.0\"]\nenv = { \"CLICKHOUSE_HOST\" = \"<CLICKHOUSE_HOST>\", \"CLICKHOUSE_USER\" = \"<CLICKHOUSE_USER>\" }"
        }
      ],
      "requires": [
        "uv (https://docs.astral.sh/uv/)"
      ]
    },
    {
      "id": "oci",
      "label": "Docker",
      "transport": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "CLICKHOUSE_HOST",
        "-e",
        "CLICKHOUSE_USER",
        "ghcr.io/clickhouse/mcp-clickhouse:0.8.0"
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add mcp-clickhouse -e 'CLICKHOUSE_HOST=<CLICKHOUSE_HOST>' -e 'CLICKHOUSE_USER=<CLICKHOUSE_USER>' -- docker run -i --rm -e CLICKHOUSE_HOST -e CLICKHOUSE_USER ghcr.io/clickhouse/mcp-clickhouse:0.8.0"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "claude_desktop_config.json",
          "content": "{\n  \"mcpServers\": {\n    \"mcp-clickhouse\": {\n      \"args\": [\n        \"run\",\n        \"-i\",\n        \"--rm\",\n        \"-e\",\n        \"CLICKHOUSE_HOST\",\n        \"-e\",\n        \"CLICKHOUSE_USER\",\n        \"ghcr.io/clickhouse/mcp-clickhouse:0.8.0\"\n      ],\n      \"command\": \"docker\",\n      \"env\": {\n        \"CLICKHOUSE_HOST\": \"<CLICKHOUSE_HOST>\",\n        \"CLICKHOUSE_USER\": \"<CLICKHOUSE_USER>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"mcp-clickhouse\": {\n      \"args\": [\n        \"run\",\n        \"-i\",\n        \"--rm\",\n        \"-e\",\n        \"CLICKHOUSE_HOST\",\n        \"-e\",\n        \"CLICKHOUSE_USER\",\n        \"ghcr.io/clickhouse/mcp-clickhouse:0.8.0\"\n      ],\n      \"command\": \"docker\",\n      \"env\": {\n        \"CLICKHOUSE_HOST\": \"<CLICKHOUSE_HOST>\",\n        \"CLICKHOUSE_USER\": \"<CLICKHOUSE_USER>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"inputs\": [\n    {\n      \"description\": \"CLICKHOUSE_HOST\",\n      \"id\": \"clickhouse-host\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    },\n    {\n      \"description\": \"CLICKHOUSE_USER\",\n      \"id\": \"clickhouse-user\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    }\n  ],\n  \"servers\": {\n    \"mcp-clickhouse\": {\n      \"args\": [\n        \"run\",\n        \"-i\",\n        \"--rm\",\n        \"-e\",\n        \"CLICKHOUSE_HOST\",\n        \"-e\",\n        \"CLICKHOUSE_USER\",\n        \"ghcr.io/clickhouse/mcp-clickhouse:0.8.0\"\n      ],\n      \"command\": \"docker\",\n      \"env\": {\n        \"CLICKHOUSE_HOST\": \"${input:clickhouse-host}\",\n        \"CLICKHOUSE_USER\": \"${input:clickhouse-user}\"\n      },\n      \"type\": \"stdio\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.mcp-clickhouse]\ncommand = \"docker\"\nargs = [\"run\", \"-i\", \"--rm\", \"-e\", \"CLICKHOUSE_HOST\", \"-e\", \"CLICKHOUSE_USER\", \"ghcr.io/clickhouse/mcp-clickhouse:0.8.0\"]\nenv = { \"CLICKHOUSE_HOST\" = \"<CLICKHOUSE_HOST>\", \"CLICKHOUSE_USER\" = \"<CLICKHOUSE_USER>\" }"
        }
      ],
      "requires": [
        "Docker"
      ]
    }
  ],
  "env": [
    {
      "name": "CLICKHOUSE_HOST",
      "required": true,
      "secret": false,
      "description": "Hostname of the ClickHouse server",
      "help": "Hostname of the ClickHouse server",
      "placeholder": "<CLICKHOUSE_HOST>"
    },
    {
      "name": "CLICKHOUSE_USER",
      "required": true,
      "secret": false,
      "description": "Username for ClickHouse authentication",
      "help": "Username for ClickHouse authentication",
      "placeholder": "<CLICKHOUSE_USER>"
    },
    {
      "name": "CLICKHOUSE_PASSWORD",
      "required": false,
      "secret": true,
      "description": "Password for ClickHouse authentication. Required unless a client certificate uses the default or mutual TLS mode",
      "help": "Password for ClickHouse authentication. Required unless a client certificate uses the default or mutual TLS mode",
      "placeholder": "<CLICKHOUSE_PASSWORD>"
    },
    {
      "name": "CLICKHOUSE_PORT",
      "required": false,
      "secret": false,
      "description": "ClickHouse HTTP(S) port. Defaults to 8443 when CLICKHOUSE_SECURE=true, 8123 otherwise",
      "help": "ClickHouse HTTP(S) port. Defaults to 8443 when CLICKHOUSE_SECURE=true, 8123 otherwise",
      "placeholder": "<CLICKHOUSE_PORT>"
    },
    {
      "name": "CLICKHOUSE_SECURE",
      "required": false,
      "secret": false,
      "description": "Use HTTPS to connect to ClickHouse",
      "help": "Use HTTPS to connect to ClickHouse",
      "default": "true",
      "placeholder": "true"
    },
    {
      "name": "CLICKHOUSE_VERIFY",
      "required": false,
      "secret": false,
      "description": "Verify SSL certificates",
      "help": "Verify SSL certificates",
      "default": "true",
      "placeholder": "true"
    },
    {
      "name": "CLICKHOUSE_CA_CERT",
      "required": false,
      "secret": false,
      "description": "Path to a PEM CA bundle for ClickHouse server certificate verification",
      "help": "Path to a PEM CA bundle for ClickHouse server certificate verification",
      "placeholder": "<CLICKHOUSE_CA_CERT>"
    },
    {
      "name": "CLICKHOUSE_CLIENT_CERT",
      "required": false,
      "secret": false,
      "description": "Path to a PEM client certificate for the ClickHouse HTTPS connection",
      "help": "Path to a PEM client certificate for the ClickHouse HTTPS connection",
      "placeholder": "<CLICKHOUSE_CLIENT_CERT>"
    },
    {
      "name": "CLICKHOUSE_CLIENT_CERT_KEY",
      "required": false,
      "secret": false,
      "description": "Path to the PEM private key for CLICKHOUSE_CLIENT_CERT",
      "help": "Path to the PEM private key for CLICKHOUSE_CLIENT_CERT",
      "placeholder": "<CLICKHOUSE_CLIENT_CERT_KEY>"
    },
    {
      "name": "CLICKHOUSE_TLS_MODE",
      "required": false,
      "secret": false,
      "description": "Client certificate mode: mutual, proxy, or strict",
      "help": "Client certificate mode: mutual, proxy, or strict",
      "placeholder": "<CLICKHOUSE_TLS_MODE>"
    },
    {
      "name": "CLICKHOUSE_DATABASE",
      "required": false,
      "secret": false,
      "description": "Default database to use",
      "help": "Default database to use",
      "placeholder": "<CLICKHOUSE_DATABASE>"
    },
    {
      "name": "CLICKHOUSE_ROLE",
      "required": false,
      "secret": false,
      "description": "ClickHouse role to activate for the session",
      "help": "ClickHouse role to activate for the session",
      "placeholder": "<CLICKHOUSE_ROLE>"
    },
    {
      "name": "CLICKHOUSE_ALLOW_WRITE_ACCESS",
      "required": false,
      "secret": false,
      "description": "Allow write operations (DDL and DML). Queries run read-only by default",
      "help": "Allow write operations (DDL and DML). Queries run read-only by default",
      "default": "false",
      "placeholder": "false"
    },
    {
      "name": "CLICKHOUSE_ALLOW_DROP",
      "required": false,
      "secret": false,
      "description": "Allow destructive operations (DROP, TRUNCATE, DELETE, UPDATE, REPLACE, CLEAR, OPTIMIZE DEDUPLICATE, MODIFY/MATERIALIZE TTL, MODIFY/ALTER COLUMN with TTL, and DETACH PERMANENTLY) when write access is also enabled",
      "help": "Allow destructive operations (DROP, TRUNCATE, DELETE, UPDATE, REPLACE, CLEAR, OPTIMIZE DEDUPLICATE, MODIFY/MATERIALIZE TTL, MODIFY/ALTER COLUMN with TTL, and DETACH PERMANENTLY) when write access is also enabled",
      "default": "false",
      "placeholder": "false"
    },
    {
      "name": "CLICKHOUSE_MCP_QUERY_TIMEOUT",
      "required": false,
      "secret": false,
      "description": "Query tool timeout in seconds",
      "help": "Query tool timeout in seconds",
      "default": "30",
      "placeholder": "30"
    },
    {
      "name": "CLICKHOUSE_MCP_MAX_WORKERS",
      "required": false,
      "secret": false,
      "description": "Maximum query worker thread pool size",
      "help": "Maximum query worker thread pool size",
      "default": "10",
      "placeholder": "10"
    }
  ],
  "expectedTools": [
    "list_databases",
    "list_tables",
    "run_query"
  ],
  "agentSteps": [
    "Ask the user for: CLICKHOUSE_HOST, CLICKHOUSE_USER. Never invent or guess these values; secrets go into the client config, not into chat logs.",
    "Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).",
    "Restart or reload the client so it starts the server.",
    "Verify: the server should expose these tools: list_databases, list_tables, run_query.",
    "If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set."
  ],
  "generatedAt": "2026-12-01T21:32:36.367138197Z"
}
