mcp-clickhouse-cloud
v0.1.1A comprehensive Model Context Protocol (MCP) server for ClickHouse database operations and ClickHouse Cloud management.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_databases
List available ClickHouse databases. Returns: List of database names
list_tables
List available ClickHouse tables in a database. Returns detailed information about tables including schema, comments, row counts, and column information. Args: database: Name of the database to query like: Optional LIKE pattern to filter table names not_like: Optional NOT LIKE pattern to exclude table names Returns: List of table information dictionaries
| Parameter | Type | Description |
|---|---|---|
database * | string | |
like | ||
not_like |
run_select_query
Run a SELECT query in a ClickHouse database. Args: query: The SELECT query to execute Returns: Dictionary containing query results or error information
| Parameter | Type | Description |
|---|---|---|
query * | string |
cloud_list_organizations
List available ClickHouse Cloud organizations. Returns list of organizations associated with the API key.
cloud_get_organization
Get details of a specific organization. Args: organization_id: UUID of the organization Returns: Organization details
| Parameter | Type | Description |
|---|---|---|
organization_id * | string |
cloud_update_organization
Update organization details. Args: organization_id: UUID of the organization name: New organization name Returns: Updated organization details
| Parameter | Type | Description |
|---|---|---|
organization_id * | string | |
name |
cloud_get_organization_metrics
Get Prometheus metrics for all services in an organization. Args: organization_id: UUID of the organization filtered_metrics: Return filtered list of metrics Returns: Prometheus metrics data
| Parameter | Type | Description |
|---|---|---|
organization_id * | string | |
filtered_metrics |
cloud_list_services
List all services in an organization. Args: organization_id: UUID of the organization Returns: List of services
| Parameter | Type | Description |
|---|---|---|
organization_id * | string |
cloud_get_service
Get details of a specific service. Args: organization_id: UUID of the organization service_id: UUID of the service Returns: Service details
| Parameter | Type | Description |
|---|---|---|
organization_id * | string | |
service_id * | string |
cloud_create_service
Create a new ClickHouse Cloud service. Args: organization_id: UUID of the organization name: Service name (alphanumeric with spaces, up to 50 chars) provider: Cloud provider (aws, gcp, azure) region: Service region (e.g., us-east-1, eu-west-1, etc.) tier: Service tier (development, production) min_replica_memory_gb: Minimum memory per replica in GB (multiple of 4, min 8) max_replica_memory_gb: Maximum memory per replica in GB (multiple of 4, max 356) num_replicas: Number of replicas (1-20) idle_scaling: Enable idle scaling to zero idle_timeout_minutes:…
| Parameter | Type | Description |
|---|---|---|
name * | string | |
organization_id * | string | |
provider * | string | |
region * | string | |
idle_scaling | ||
idle_timeout_minutes | ||
ip_access_list | ||
max_replica_memory_gb | ||
min_replica_memory_gb | ||
num_replicas | ||
tier |
cloud_update_service_state
Start or stop a service. Args: organization_id: UUID of the organization service_id: UUID of the service command: Command to execute (start, stop) Returns: Updated service details
| Parameter | Type | Description |
|---|---|---|
command * | string | |
organization_id * | string | |
service_id * | string |
cloud_delete_service
Delete a service (must be stopped first). Args: organization_id: UUID of the organization service_id: UUID of the service Returns: Deletion confirmation
| Parameter | Type | Description |
|---|---|---|
organization_id * | string | |
service_id * | string |
cloud_list_api_keys
List all API keys in an organization. Args: organization_id: UUID of the organization Returns: List of API keys (secrets are not included, only metadata)
| Parameter | Type | Description |
|---|---|---|
organization_id * | string |
cloud_create_api_key
Create a new API key. Args: organization_id: UUID of the organization name: Key name roles: List of roles (admin, developer, query_endpoints) expire_at: Expiration timestamp in ISO-8601 format (optional) state: Initial state (enabled, disabled) ip_access_list: List of IP access entries [{"source": "IP/CIDR", "description": "desc"}] Returns: Created API key details and credentials (keyId and keySecret)
| Parameter | Type | Description |
|---|---|---|
name * | string | |
organization_id * | string | |
roles * | array | |
expire_at | ||
ip_access_list | ||
state |
cloud_delete_api_key
Delete an API key. Args: organization_id: UUID of the organization key_id: UUID of the API key Returns: Deletion confirmation
| Parameter | Type | Description |
|---|---|---|
key_id * | string | |
organization_id * | string |
cloud_list_members
List all members in an organization. Args: organization_id: UUID of the organization Returns: List of organization members with their roles and details
| Parameter | Type | Description |
|---|---|---|
organization_id * | string |
cloud_update_member_role
Update organization member role. Args: organization_id: UUID of the organization user_id: UUID of the user role: New role (admin, developer) Returns: Updated member details
| Parameter | Type | Description |
|---|---|---|
organization_id * | string | |
role * | string | |
user_id * | string |
cloud_remove_member
Remove a member from the organization. Args: organization_id: UUID of the organization user_id: UUID of the user to remove Returns: Removal confirmation
| Parameter | Type | Description |
|---|---|---|
organization_id * | string | |
user_id * | string |
cloud_list_invitations
List all pending invitations for an organization. Args: organization_id: UUID of the organization Returns: List of pending invitations
| Parameter | Type | Description |
|---|---|---|
organization_id * | string |
cloud_create_invitation
Create an invitation to join the organization. Args: organization_id: UUID of the organization email: Email address of the person to invite role: Role to assign (admin, developer) Returns: Created invitation details
| Parameter | Type | Description |
|---|---|---|
email * | string | |
organization_id * | string | |
role * | string |
cloud_delete_invitation
Delete/cancel an invitation. Args: organization_id: UUID of the organization invitation_id: UUID of the invitation Returns: Deletion confirmation
| Parameter | Type | Description |
|---|---|---|
invitation_id * | string | |
organization_id * | string |
cloud_list_backups
List all backups for a service. Args: organization_id: UUID of the organization service_id: UUID of the service Returns: List of backups (most recent first)
| Parameter | Type | Description |
|---|---|---|
organization_id * | string | |
service_id * | string |
cloud_get_backup
Get details of a specific backup. Args: organization_id: UUID of the organization service_id: UUID of the service backup_id: UUID of the backup Returns: Backup details including status, size, and duration
| Parameter | Type | Description |
|---|---|---|
backup_id * | string | |
organization_id * | string | |
service_id * | string |
cloud_get_backup_configuration
Get backup configuration for a service. Args: organization_id: UUID of the organization service_id: UUID of the service Returns: Backup configuration settings
| Parameter | Type | Description |
|---|---|---|
organization_id * | string | |
service_id * | string |
cloud_update_backup_configuration
Update backup configuration for a service. Args: organization_id: UUID of the organization service_id: UUID of the service backup_period_in_hours: Interval between backups in hours backup_retention_period_in_hours: How long to keep backups in hours backup_start_time: Daily backup time in HH:MM format (UTC) Returns: Updated backup configuration
| Parameter | Type | Description |
|---|---|---|
organization_id * | string | |
service_id * | string | |
backup_period_in_hours | ||
backup_retention_period_in_hours | ||
backup_start_time |
cloud_list_activities
List organization activities (audit log). Args: organization_id: UUID of the organization from_date: Start date for activity search (ISO-8601) to_date: End date for activity search (ISO-8601) Returns: List of organization activities
| Parameter | Type | Description |
|---|---|---|
organization_id * | string | |
from_date | ||
to_date |
cloud_get_activity
Get details of a specific activity. Args: organization_id: UUID of the organization activity_id: ID of the activity Returns: Activity details
| Parameter | Type | Description |
|---|---|---|
activity_id * | string | |
organization_id * | string |
cloud_get_usage_cost
Get organization usage costs for a date range. Args: organization_id: UUID of the organization from_date: Start date (YYYY-MM-DD format) to_date: End date (YYYY-MM-DD format, max 31 days from start) Returns: Usage cost data with grand total and per-entity breakdown
| Parameter | Type | Description |
|---|---|---|
from_date * | string | |
organization_id * | string | |
to_date * | string |
cloud_list_clickpipes
List all ClickPipes for a service. Args: organization_id: UUID of the organization service_id: UUID of the service Returns: List of ClickPipes
| Parameter | Type | Description |
|---|---|---|
organization_id * | string | |
service_id * | string |
cloud_get_clickpipe
Get details of a specific ClickPipe. Args: organization_id: UUID of the organization service_id: UUID of the service clickpipe_id: UUID of the ClickPipe Returns: ClickPipe details including source, destination, and state
| Parameter | Type | Description |
|---|---|---|
clickpipe_id * | string | |
organization_id * | string | |
service_id * | string |
cloud_update_clickpipe_state
Start, stop, or resync a ClickPipe. Args: organization_id: UUID of the organization service_id: UUID of the service clickpipe_id: UUID of the ClickPipe command: Command to execute (start, stop, resync) Returns: Updated ClickPipe details
| Parameter | Type | Description |
|---|---|---|
clickpipe_id * | string | |
command * | string | |
organization_id * | string | |
service_id * | string |
cloud_delete_clickpipe
Delete a ClickPipe. Args: organization_id: UUID of the organization service_id: UUID of the service clickpipe_id: UUID of the ClickPipe Returns: Deletion confirmation
| Parameter | Type | Description |
|---|---|---|
clickpipe_id * | string | |
organization_id * | string | |
service_id * | string |
cloud_get_private_endpoint_config
Get private endpoint configuration for a service. Args: organization_id: UUID of the organization service_id: UUID of the service Returns: Private endpoint configuration details
| Parameter | Type | Description |
|---|---|---|
organization_id * | string | |
service_id * | string |
cloud_get_available_regions
Get information about available cloud regions. Returns: Information about supported regions and providers