[Home](/index.md) › [MCP servers](/mcp.md) › ClickHouse Cloud remote MCP server

# ClickHouse Cloud remote MCP server

MCP server

- 17 callable tools
- Read only
- 6 capabilities

[Installation guide](https://clickhouse.com/docs/products/cloud/features/ai-ml/mcp/remote-mcp.md)

## Overview

ClickHouse publishes a remote MCP server, fully managed on ClickHouse Cloud, that lets AI agents query and explore ClickHouse Cloud services. It also exposes organization, service, backup, ClickPipes, billing and Managed Postgres information.

### Capabilities

- Run read-only SELECT queries against ClickHouse Cloud services
- List databases and tables and inspect their schemas
- Look up organizations, services and service details
- Review service backups and backup configuration
- Monitor ClickPipes and Managed Postgres services
- Retrieve organization billing and cost data

## Works with

The products your agent can work with through this server.

- [ClickHouse Cloud](/tools/clickhouse-cloud.md): Managed analytical database

## Tools

The callable functions your agent uses to work with this server.

### `run_select_query`

Execute a read-only SELECT query against a ClickHouse service.

### `list_databases`

List all databases available in a ClickHouse service.

### `list_tables`

List all tables in a database, including column definitions.

### `run_postgres_select_query`

Execute a read-only SQL query against a Postgres service.

### `list_postgres_slow_query_patterns`

List slow query patterns with aggregate latency, call count, rows, CPU, I/O, WAL, and error metrics.

### `get_postgres_slow_query_pattern_details`

Return up to 10 recent executions of a query pattern from the last 24 hours, plus aggregate metrics when available.

### `get_postgres_metrics`

Return time-series metrics for CPU, memory, disk, network, connections, cache hit ratio, transactions, and waits.

### `get_organizations`

Retrieve all ClickHouse Cloud organizations accessible to the authenticated user.

### `get_organization_details`

Return details of a single organization.

### `get_services_list`

List ClickHouse and Managed Postgres services in an organization, with a serviceType field identifying each kind.

### `get_service_details`

Return details of a ClickHouse or Managed Postgres service, detecting its type automatically.

### `list_service_backups`

List all backups for a service, most recent first.

### `get_service_backup_details`

Return details of a single backup.

### `get_service_backup_configuration`

Return the backup configuration for a service (schedule and retention settings).

### `list_clickpipes`

List all ClickPipes configured for a service.

### `get_clickpipe`

Return details of a specific ClickPipe.

### `get_organization_cost`

Retrieve billing and usage cost data for an organization.

## Installation

Follow the installation guide for supported clients, authentication and required permissions.

### Add ClickHouse Cloud remote MCP server to Claude Code

Run this in your terminal:

```sh
claude mcp add --transport http clickhouse-cloud https://mcp.clickhouse.cloud/mcp
```

If the server asks you to sign in, run `/mcp` in Claude Code and follow the browser prompt.

### Add ClickHouse Cloud remote MCP server to Cursor

Add it with the Add to Cursor button below, or add it to `.cursor/mcp.json` in your project (`~/.cursor/mcp.json` for every project):

[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=clickhouse-cloud&config=eyJ1cmwiOiJodHRwczovL21jcC5jbGlja2hvdXNlLmNsb3VkL21jcCJ9)

```json
{
  "mcpServers": {
    "clickhouse-cloud": {
      "url": "https://mcp.clickhouse.cloud/mcp"
    }
  }
}
```

### Add ClickHouse Cloud remote MCP server to VS Code

Add it to `.vscode/mcp.json` in your workspace. VS Code uses `servers` rather than `mcpServers`. Or run MCP: Add Server from the Command Palette and choose HTTP.

```json
{
  "servers": {
    "clickhouse-cloud": {
      "type": "http",
      "url": "https://mcp.clickhouse.cloud/mcp"
    }
  }
}
```

### Add ClickHouse Cloud remote MCP server to Codex

Run this in your terminal:

```sh
codex mcp add clickhouse-cloud --url https://mcp.clickhouse.cloud/mcp
```

Or add it to `~/.codex/config.toml`:

```toml
[mcp_servers.clickhouse-cloud]
url = "https://mcp.clickhouse.cloud/mcp"
```

If the server uses OAuth, sign in with `codex mcp login clickhouse-cloud`.

### Add ClickHouse Cloud remote MCP server to Claude

Add it as a custom connector with this URL:

```
https://mcp.clickhouse.cloud/mcp
```

1. Open Customize, then Connectors.
2. Click + Add, then Add custom connector.
3. Name it, paste the URL and click Continue.
4. Choose how to sign in, then click Add.

On Team and Enterprise plans, an Owner adds it in Organization settings first, then members connect it.

### Add ClickHouse Cloud remote MCP server to other clients

For any other client that connects to remote MCP servers over HTTP, use this URL:

```
https://mcp.clickhouse.cloud/mcp
```

[Read the installation guide](https://clickhouse.com/docs/products/cloud/features/ai-ml/mcp/remote-mcp.md)

## Related MCP servers

Other servers for the same products, or from the same vendor.

- [ClickHouse Cloud docs MCP](/mcp/clickhouse-cloud-docs.md)

## Sources

Documentation and source code reviewed on 19 November 2026.

- [clickhouse.com/docs/products/cloud/features/ai-ml/remote-mcp.md](https://clickhouse.com/docs/products/cloud/features/ai-ml/remote-mcp.md)
- [clickhouse.com/docs/products/cloud/features/ai-ml/mcp/remote-mcp.md](https://clickhouse.com/docs/products/cloud/features/ai-ml/mcp/remote-mcp.md)
