iflow-mcp_oualib_chmcp

v0.1.2
iflow-mcp_oualib_chmcp Checked 1 day ago Published 11 months 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_query

Run a query in a ClickHouse database. Args: query: The 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 private_endpoints: Private endpoints configuration with add/remove operations Returns: Updated organization details

ParameterTypeDescription
organization_id *string
name
private_endpoints

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_get_organization_private_endpoint_info

Get private endpoint information for organization. Args: organization_id: UUID of the organization cloud_provider: Cloud provider identifier (aws, gcp, azure) region: Region identifier Returns: Private endpoint information

ParameterTypeDescription
cloud_provider *string
organization_id *string
region *string

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
backup_id
byoc_id
data_warehouse_id
encryption_assumed_role_identifier
encryption_key
endpoints
has_transparent_data_encryption
idle_scaling
idle_timeout_minutes
ip_access_list
is_readonly
max_replica_memory_gb
min_replica_memory_gb
num_replicas
private_endpoint_ids
private_preview_terms_checked
release_channel
tier

cloud_update_service

Update basic service details like service name or IP access list. Args: organization_id: UUID of the organization service_id: UUID of the service name: Service name ip_access_list: IP access list with add/remove operations private_endpoint_ids: Private endpoint IDs with add/remove operations release_channel: Release channel (default, fast) endpoints: List of service endpoints to change transparent_data_encryption_key_id: The id of the key to rotate Returns: Updated service details

ParameterTypeDescription
organization_id *string
service_id *string
endpoints
ip_access_list
name
private_endpoint_ids
release_channel
transparent_data_encryption_key_id

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_update_service_scaling

Update service scaling parameters (deprecated method). Args: organization_id: UUID of the organization service_id: UUID of the service min_total_memory_gb: Minimum total memory in GB (deprecated) max_total_memory_gb: Maximum total memory in GB (deprecated) num_replicas: Number of replicas idle_scaling: Enable idle scaling idle_timeout_minutes: Idle timeout in minutes Returns: Updated service details

ParameterTypeDescription
organization_id *string
service_id *string
idle_scaling
idle_timeout_minutes
max_total_memory_gb
min_total_memory_gb
num_replicas

cloud_update_service_replica_scaling

Update service replica scaling parameters (preferred method). Args: organization_id: UUID of the organization service_id: UUID of the service min_replica_memory_gb: Minimum memory per replica in GB max_replica_memory_gb: Maximum memory per replica in GB num_replicas: Number of replicas idle_scaling: Enable idle scaling idle_timeout_minutes: Idle timeout in minutes Returns: Updated service details

ParameterTypeDescription
organization_id *string
service_id *string
idle_scaling
idle_timeout_minutes
max_replica_memory_gb
min_replica_memory_gb
num_replicas

cloud_update_service_password

Set a new password for the service. Args: organization_id: UUID of the organization service_id: UUID of the service new_password_hash: Optional password hash to avoid password transmission new_double_sha1_hash: Optional double SHA1 password hash for MySQL protocol Returns: New password details

ParameterTypeDescription
organization_id *string
service_id *string
new_double_sha1_hash
new_password_hash

cloud_create_service_private_endpoint

Create a new private endpoint for a service. Args: organization_id: UUID of the organization service_id: UUID of the service id: Private endpoint identifier description: Description of private endpoint Returns: Created private endpoint details

ParameterTypeDescription
description *string
id *string
organization_id *string
service_id *string

cloud_get_service_metrics

Get Prometheus metrics for a service. Args: organization_id: UUID of the organization service_id: UUID of the service filtered_metrics: Return filtered list of metrics Returns: Service metrics data

ParameterTypeDescription
organization_id *string
service_id *string
filtered_metrics

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_get_query_endpoint_config

Get query endpoint configuration for a service (experimental). Args: organization_id: UUID of the organization service_id: UUID of the service Returns: Query endpoint configuration

ParameterTypeDescription
organization_id *string
service_id *string

cloud_create_query_endpoint_config

Create query endpoint configuration for a service (experimental). Args: organization_id: UUID of the organization service_id: UUID of the service roles: List of roles (sql_console_read_only, sql_console_admin) open_api_keys: List of open API keys allowed_origins: Allowed origins as comma separated list of domains Returns: Created query endpoint configuration

ParameterTypeDescription
allowed_origins *string
open_api_keys *array
organization_id *string
roles *array
service_id *string

cloud_delete_query_endpoint_config

Delete query endpoint configuration for a service (experimental). 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) hash_data: Optional hash data for the key 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
hash_data
ip_access_list
state

cloud_get_api_key

Get details of a specific API key. Args: organization_id: UUID of the organization key_id: UUID of the API key Returns: API key details

ParameterTypeDescription
key_id *string
organization_id *string

cloud_update_api_key

Update API key properties. Args: organization_id: UUID of the organization key_id: UUID of the API key name: Key name roles: List of roles (admin, developer, query_endpoints) expire_at: Expiration timestamp in ISO-8601 format state: State of the key (enabled, disabled) ip_access_list: List of IP access entries Returns: Updated API key details

ParameterTypeDescription
key_id *string
organization_id *string
expire_at
ip_access_list
name
roles
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_get_member

Get details of a specific organization member. Args: organization_id: UUID of the organization user_id: UUID of the user Returns: Member details

ParameterTypeDescription
organization_id *string
user_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_get_invitation

Get details of a specific invitation. Args: organization_id: UUID of the organization invitation_id: UUID of the invitation Returns: Invitation details

ParameterTypeDescription
invitation_id *string
organization_id *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_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_list_reverse_private_endpoints

List all reverse private endpoints for a service (beta). Args: organization_id: UUID of the organization service_id: UUID of the service Returns: List of reverse private endpoints

ParameterTypeDescription
organization_id *string
service_id *string

cloud_create_reverse_private_endpoint

Create a new reverse private endpoint (beta). Args: organization_id: UUID of the organization service_id: UUID of the service description: Reverse private endpoint description (max 255 chars) type: Reverse private endpoint type (VPC_ENDPOINT_SERVICE, VPC_RESOURCE, MSK_MULTI_VPC) vpc_endpoint_service_name: VPC endpoint service name vpc_resource_configuration_id: VPC resource configuration ID (required for VPC_RESOURCE) vpc_resource_share_arn: VPC resource share ARN (required for VPC_RESOURCE) msk_cluster_arn: MSK cluster ARN (required for MSK_MULTI_VPC) msk_…

ParameterTypeDescription
description *string
organization_id *string
service_id *string
type *string
msk_authentication
msk_cluster_arn
vpc_endpoint_service_name
vpc_resource_configuration_id
vpc_resource_share_arn

cloud_get_reverse_private_endpoint

Get details of a specific reverse private endpoint (beta). Args: organization_id: UUID of the organization service_id: UUID of the service reverse_private_endpoint_id: UUID of the reverse private endpoint Returns: Reverse private endpoint details

ParameterTypeDescription
organization_id *string
reverse_private_endpoint_id *string
service_id *string

cloud_delete_reverse_private_endpoint

Delete a reverse private endpoint (beta). Args: organization_id: UUID of the organization service_id: UUID of the service reverse_private_endpoint_id: UUID of the reverse private endpoint Returns: Deletion confirmation

ParameterTypeDescription
organization_id *string
reverse_private_endpoint_id *string
service_id *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_create_clickpipe

Create a new ClickPipe (beta). Args: organization_id: UUID of the organization service_id: UUID of the service name: Name of the ClickPipe description: Description of the ClickPipe source: Source configuration (kafka, objectStorage, kinesis, postgres) destination: Destination configuration field_mappings: Field mappings of the ClickPipe Returns: Created ClickPipe details

ParameterTypeDescription
description *string
destination *object
name *string
organization_id *string
service_id *string
source *object
field_mappings

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

Update a ClickPipe (beta). Args: organization_id: UUID of the organization service_id: UUID of the service clickpipe_id: UUID of the ClickPipe name: Name of the ClickPipe description: Description of the ClickPipe source: Source configuration updates destination: Destination configuration updates field_mappings: Field mappings updates Returns: Updated ClickPipe details

ParameterTypeDescription
clickpipe_id *string
organization_id *string
service_id *string
description
destination
field_mappings
name
source

cloud_update_clickpipe_scaling

Update ClickPipe scaling settings (beta). Args: organization_id: UUID of the organization service_id: UUID of the service clickpipe_id: UUID of the ClickPipe replicas: Number of replicas to scale to (1-10, for Kafka pipes) Returns: Updated ClickPipe details

ParameterTypeDescription
clickpipe_id *string
organization_id *string
service_id *string
replicas

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_available_regions

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