What Can It Do?
- Run SQL against any ClickHouse Cloud service and return structured results
- Manage services by listing them, starting, or stopping on demand
- Inspect backups and backup schedules for each service
- Manage ClickPipes to monitor streaming ingestion jobs
- Track organization costs with daily billing and usage data
- Operate ClickStack observability with dashboards, alerts, and data sources
Where to Use It
In Agents (Recommended)
Add ClickHouse as a tool to any agent. The agent can then interact with your data and observability plane conversationally, choosing the right actions based on context. To add an MCP tool to your agent:- Open your agent’s configuration
- Click Add tools → Connect an app with MCP
- Search for the integration and select it
- Authenticate with your ClickHouse Cloud API key
In Workflows (Via Agent Node)
For automated pipelines, use an Agent Node with ClickHouse tools. This gives you the flexibility of an agent within a deterministic workflow.As a Custom MCP Node
You can also create a standalone MCP node for a specific action. This generates a reusable node that performs one task, useful when you need the same operation repeatedly in workflows.- Go to your node library and search for the integration
- Click Create a node with AI
- Describe the specific action you want (e.g., “Query the events table for the last 24 hours”)
- Test the node and save it for reuse
Custom MCP nodes are single-purpose by design. For tasks that require multiple steps or dynamic decision-making, use an agent instead.
Authentication
ClickHouse uses a Key ID / Key Secret API key pair plus a database user and password for SQL access.- In the ClickHouse Cloud console, go to Organization Settings → API Keys → New API Key
- Assign a role that matches what you want the MCP to do (Developer for read-only, Admin for writes and lifecycle operations)
- Copy the Key ID and Key Secret (the secret is shown once)
- Get your Database User (defaults to
default) and Database Password from Service Settings in the Cloud console
Available Tools
Example Prompts
Use these with your agent or in the Agent Node: Run a query:Troubleshooting
Need Help?
- Agents documentation for setup and best practices
- Agent Node guide for workflow integration
- Need help? Reach out to us
- Contact support@gumloop.com for assistance
