# Connect ClickHouse Cloud to Your AI Agent (Universal MCP)

> Use your AI to analyze data, query data, and manage databases in ClickHouse Cloud — and much more.

## Quick Connect (CLI / MCP)
- Claude Code: `claude mcp add --transport http clickhouse-cloud https://api.universalmcp.app/mcp/clickhouse-cloud`
- Remote MCP URL (ChatGPT, Claude, Cursor, VS Code): `https://api.universalmcp.app/mcp/clickhouse-cloud` (unified: `https://api.universalmcp.app/mcp`)
- Actions & Discovery: `POST https://universalmcp.app/mcp/directory` (`get_software_actions({ slug: "clickhouse-cloud", query })` & `search_software`); configs: https://universalmcp.app/install.md

## Key Facts
- Software: ClickHouse Cloud | Category: E-Commerce & Retail (ClickHouse Cloud) | Auth: Guided workspace authorization
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Query logs, Table and schema metadata, Schema changes; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://universalmcp.app/mcp/clickhouse-cloud | Guide: https://universalmcp.app/mcp/clickhouse-cloud
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (15 actions: 7 Read, 8 Write)
Perform over 10 actions across cloud services, analytics & warehousing, data ingestion, transactional workloads, and observability & AI engineering. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Cloud Services (4):** Provision ClickHouse Cloud Service (write), Review Service Storage Usage (read), Scale Cloud Service Compute (write), Deploy To Bring Your Own Cloud (write)
- **Analytics & Warehousing (4):** Query Real-Time Sales Analytics (read), Query Data Lake Tables (read), Create Materialized View (write), Build Security Log Dashboard (write)
- **Data Ingestion (3):** Create ClickPipes Ingestion Pipeline (write), Monitor ClickPipes Pipeline Status (read), Pause ClickPipes Pipeline (write)
- **Transactional Workloads (2):** Provision Managed Postgres Database (write), Retrieve Postgres Connection Details (read)
- **Observability & AI Engineering (2):** Search ClickStack Logs (read), Review Agent Evaluation Results (read)

## Example Prompts for ClickHouse Cloud
- **Heavy queries:** "In ClickHouse Cloud, list the top ten queries by bytes read today and the users who ran them."
- **Index review:** "Show ClickHouse Cloud tables with the largest part counts and recommend a partition key for each."
- **Cost trend:** "Compare ClickHouse Cloud compute usage by service over the past week and flag any sudden spikes."
- **Draft tuning:** "Draft an ORDER BY change for web_events_raw in ClickHouse Cloud, then hold it for approval before running."
