# ClickHouse MCP server

> Ask in plain English to query your ClickHouse data, check services and backups, and review cloud costs.

## Server URL

`https://mcp.clickhouse.cloud/mcp` (Streamable HTTP)

- Sign-in: Sign in with ClickHouse
- Connect in RevampKey: https://revampkey.com/marketplace/clickhouse

## Agent skills (3)

- [ClickHouse Cloud Connector Essentials with AI: Scope, Query and Stay Read-Only](https://revampkey.com/marketplace/clickhouse/skills/essentials.md): Teaches an AI assistant to use the ClickHouse Cloud remote MCP connector safely: confirm the organization and service first, pick the right read-only tool, and run bounded SELECT queries. It never changes data.
- [ClickHouse Backup and ClickPipe Health Audit with AI](https://revampkey.com/marketplace/clickhouse/skills/backup-and-clickpipe-health-audit.md): Checks every ClickHouse service in an organization for recent, verified backups and reviews ClickPipe ingestion status, then returns a ranked health report. It only reads and never changes backups or pipes.
- [ClickHouse Query Performance and Cost Review with AI](https://revampkey.com/marketplace/clickhouse/skills/query-performance-and-cost-review.md): Finds why a ClickHouse service or query is slow or expensive by combining cost, service state and read-only schema and SELECT checks. It ranks the causes with evidence and suggests fixes you apply yourself, and it never changes your service.

All skills: https://revampkey.com/marketplace/clickhouse/skills.md

ClickHouse is an open-source database built for analytics. It stores data by column, so it can scan and add up very large datasets quickly. ClickHouse also sells a managed version called ClickHouse Cloud. Developers and data teams use it for real-time analytics and dashboards, observability with logs, metrics and traces, data warehousing, and machine learning work. Companies such as Lyft, GitLab and Cisco are listed as ClickHouse Cloud customers.

Once you connect ClickHouse, you can ask about your ClickHouse Cloud organizations, services, databases and tables. The agent can inspect table columns and run read-only SELECT queries. It can check a service's backups, its backup schedule and retention settings, and the ClickPipes set up on a service. It can also pull organization cost. All 13 tools are read-only, so the agent reads and reports. It does not change your data or service settings.

## What you can do

### Checking a service before a report

Your finance lead wants daily order counts before a Monday meeting. You ask the agent to find the right service, list its databases, and run a SELECT that counts orders per day from the orders table. The agent returns the results and summarizes the trend in a few lines. It only reads data, so nothing in your service changes.

### Reviewing ClickHouse Cloud spend

Your manager asks what ClickHouse Cloud costs this month. You ask the agent to list your organizations, then pull the cost for the one you need. It returns the cost figures and lists the services in that organization, so you can answer with real numbers instead of checking the billing pages by hand.

### Confirming backups before a release

Before a schema change ships, you want to confirm the analytics service has recent backups. You ask the agent for that service's backups, which are listed most recent first. Then you ask for the details of the newest one and the backup schedule. The agent reports what it finds, and you decide whether to go ahead.

## Things to ask

- Run a SELECT that counts orders per day for the last 30 days in the shop database.
- Which services are in my production organization, and what are the details of the analytics one?
- What has my ClickHouse Cloud organization cost so far this month?
- When did my analytics service last back up, and what is its backup schedule?
- Which ClickPipes are set up on my events service, and what are their details?

## What the agent can do

### Query and schema exploration

Run read-only SELECT queries against a service. List the databases in a service and the tables in a database, including their column definitions. Filter table names with patterns to find the tables you need.

`run_select_query`, `list_databases`, `list_tables`

### Organizations and services

See the ClickHouse Cloud organizations your account can reach. List the services in an organization and read the details of a specific service.

`get_organizations`, `get_organization_details`, `get_services_list`, `get_service_details`

### Costs and billing

Pull cost data for a ClickHouse Cloud organization. Use it to answer questions about spend without opening the billing pages.

`get_organization_cost`

### Backups

List a service's backups, most recent first. Open the details of one backup, or read the service's backup schedule and retention settings.

`list_service_backups`, `get_service_backup_details`, `get_service_backup_configuration`

### ClickPipes

See the ClickPipes configured for a service. Open the details of a specific ClickPipe to check how it is set up.

`list_clickpipes`, `get_clickpipe`

## FAQ

### What do I need to connect ClickHouse to RevampKey?

You need a ClickHouse Cloud account with access to the organization and services you want. Click Connect in RevampKey, then approve access on ClickHouse's own sign-in page. Each service must also have the remote MCP server turned on. Someone with the control-plane:service:manage-mcp permission can turn it on in the ClickHouse Cloud console under Connect, then MCP.

### What can the agent do in ClickHouse, and what can it not do?

The agent can list organizations, services, databases, tables, backups and ClickPipes. It can read table columns, run read-only SELECT queries, and pull organization cost. All 13 tools are read-only. The agent cannot change data, alter service configuration, or run destructive operations.

### How do data access and approvals work?

The agent only sees the organizations and services your ClickHouse user can access. You approve access once on ClickHouse's sign-in page. The agent asks before it changes anything, and none of its tools make changes. Check the agent's answers against your data before you act on them.

### Does this work with self-hosted ClickHouse?

This connector covers ClickHouse Cloud services. Self-hosted ClickHouse uses a separate open-source server, mcp-clickhouse, which has three tools: run_select_query, list_databases and list_tables. It runs locally and needs its own setup. It does not include service, backup, ClickPipe or cost tools.

### What is the ClickHouse MCP server URL?

The ClickHouse MCP server URL is https://mcp.clickhouse.cloud/mcp. It uses the Streamable HTTP transport, so any client that supports remote MCP servers can connect to it.

### How does the ClickHouse MCP server authenticate?

With ClickHouse's own sign-in (OAuth). You approve access in your browser; no password is shared with the client.

### What can an AI agent do with the ClickHouse MCP server?

It exposes 13 tools: 13 that read and 0 that create or change things. In RevampKey the agent asks before it runs any tool that changes data.

### Are there agent skills for ClickHouse?

Yes. 3 SKILL.md playbooks teach an agent how to do real ClickHouse work step by step. RevampKey installs them when you connect ClickHouse; for Claude Code, Cursor or Codex you can copy them into your project.

## Tools (13)

- `get_clickpipe`
- `get_organization_cost`
- `get_organization_details`
- `get_organizations`
- `get_service_backup_configuration`
- `get_service_backup_details`
- `get_service_details`
- `get_services_list`
- `list_clickpipes`
- `list_databases`
- `list_service_backups`
- `list_tables`
- `run_select_query`

## Details

- Maker: ClickHouse
- Setup: Sign in with your account
- Category: Data & analytics
- Documentation: https://clickhouse.com/docs/cloud/features/ai-ml/remote-mcp

Page: https://revampkey.com/marketplace/clickhouse
