mcp-clickhouse-cloud

v0.1.1
mcp-clickhouse-cloud Checked 1 day ago Published 1 year ago

A 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

ParameterTypeDescription
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

ParameterTypeDescription
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

ParameterTypeDescription
organization_id *string

cloud_update_organization

Update organization details. Args: organization_id: UUID of the organization name: New organization name Returns: Updated organization details

ParameterTypeDescription
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

ParameterTypeDescription
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

ParameterTypeDescription
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

ParameterTypeDescription
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:…

ParameterTypeDescription
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

ParameterTypeDescription
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

ParameterTypeDescription
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)

ParameterTypeDescription
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)

ParameterTypeDescription
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

ParameterTypeDescription
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

ParameterTypeDescription
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

ParameterTypeDescription
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

ParameterTypeDescription
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

ParameterTypeDescription
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

ParameterTypeDescription
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

ParameterTypeDescription
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)

ParameterTypeDescription
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

ParameterTypeDescription
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

ParameterTypeDescription
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

ParameterTypeDescription
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

ParameterTypeDescription
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

ParameterTypeDescription
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

ParameterTypeDescription
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

ParameterTypeDescription
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

ParameterTypeDescription
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

ParameterTypeDescription
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

ParameterTypeDescription
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

ParameterTypeDescription
organization_id *string
service_id *string

cloud_get_available_regions

Get information about available cloud regions. Returns: Information about supported regions and providers