Skip to content

mcp-clickhouse - ERROR - Failed to connect to ClickHouse: HTTP driver received HTTP status 400, server response: Port 9000 is for clickhouse-client program #102

Description

@khanakia

I am following this tutorial https://clickhouse.com/docs/use-cases/AI/MCP/claude-desktop to connect the MCP with Claude desktop and getting the error.

Also attaching the MCP log file

{
  "mcpServers": {
    "mcp-clickhouse": {
      "command": "/Library/Frameworks/Python.framework/Versions/3.13/bin/uv",
      "args": [
        "run",
        "--with",
        "mcp-clickhouse",
        "--python",
        "3.10",
        "mcp-clickhouse"
      ],
      "env": {
        "CLICKHOUSE_HOST": "xxx.us-east-1.aws.clickhouse.cloud",
        "CLICKHOUSE_PORT": "8443",
        "CLICKHOUSE_USER": "default",
        "CLICKHOUSE_PASSWORD": "password",
        "CLICKHOUSE_SECURE": "true",
        "CLICKHOUSE_VERIFY": "true",
        "CLICKHOUSE_CONNECT_TIMEOUT": "30",
        "CLICKHOUSE_SEND_RECEIVE_TIMEOUT": "30"
      }
    }
  }
}

mcp-server-mcp-clickhouse.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions