Skip to main content
Glama

GCP MCP

by henihaddad

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
say_hello

Say hello to a person.

auth_login
Authenticate with Google Cloud Platform using browser-based OAuth flow. Args: project_id: Optional project ID to set as default after login Returns: Status message indicating whether authentication was successful
auth_list
List active Google Cloud credentials. Returns: List of active credentials and the current default account
auth_revoke
Revoke Google Cloud credentials. Returns: Status message indicating whether the credentials were revoked
config_set_project
Set the default Google Cloud project. Args: project_id: The ID of the project to set as default Returns: Status message indicating whether the project was set
config_list
List the current Google Cloud configuration. Returns: Current configuration settings
list_gcp_projects
List all available GCP projects for the authenticated user. Returns: List of project IDs
get_gcp_project_details
Get detailed information about a specific GCP project. Args: project_id: The ID of the GCP project to get details for Returns: Detailed information about the specified GCP project
list_assets
List assets in a GCP project using Cloud Asset Inventory API. Args: project_id: The ID of the GCP project to list assets for asset_types: Optional list of asset types to filter by (e.g., ["compute.googleapis.com/Instance"]) page_size: Number of assets to return per page (default: 50, max: 1000) Returns: List of assets in the specified GCP project
set_quota_project
Set a quota project for Google Cloud API requests. This helps resolve the warning: "Your application has authenticated using end user credentials from Google Cloud SDK without a quota project." Args: project_id: The ID of the GCP project to use for quota attribution Returns: Confirmation message if successful, error message otherwise
check_iam_permissions
Check IAM permissions for the current user in a GCP project. Args: project_id: The ID of the GCP project to check permissions for Returns: List of IAM permissions for the current user in the specified GCP project
list_roles
List IAM roles (predefined or custom). Args: project_id: Optional project ID for listing custom roles. If not provided, lists predefined roles. Returns: List of IAM roles
get_role_permissions
Get detailed information about an IAM role, including its permissions. Args: role_name: The name of the role (e.g., "roles/compute.admin" or "projects/my-project/roles/myCustomRole") project_id: Optional project ID for custom roles. Not needed if role_name is fully qualified. Returns: Detailed information about the IAM role
list_service_accounts
List service accounts in a GCP project. Args: project_id: The ID of the GCP project Returns: List of service accounts in the project
create_service_account
Create a new service account in a GCP project. Args: project_id: The ID of the GCP project account_id: The ID for the service account (must be between 6 and 30 characters) display_name: A user-friendly name for the service account description: Optional description for the service account Returns: Result of the service account creation
add_iam_policy_binding
Add an IAM policy binding to a GCP project. Args: project_id: The ID of the GCP project role: The role to grant (e.g., "roles/compute.admin") member: The member to grant the role to (e.g., "user:email@example.com", "serviceAccount:name@project.iam.gserviceaccount.com") Returns: Result of the policy binding operation
list_compute_instances
List Compute Engine instances in a GCP project. Args: project_id: The ID of the GCP project to list instances for zone: Optional zone to filter instances (e.g., "us-central1-a") Returns: List of Compute Engine instances in the specified GCP project
get_instance_details
Get detailed information about a specific Compute Engine instance. Args: project_id: The ID of the GCP project zone: The zone where the instance is located (e.g., "us-central1-a") instance_name: The name of the instance to get details for Returns: Detailed information about the specified Compute Engine instance
start_instance
Start a Compute Engine instance. Args: project_id: The ID of the GCP project zone: The zone where the instance is located (e.g., "us-central1-a") instance_name: The name of the instance to start Returns: Status message indicating whether the instance was started successfully
stop_instance
Stop a Compute Engine instance. Args: project_id: The ID of the GCP project zone: The zone where the instance is located (e.g., "us-central1-a") instance_name: The name of the instance to stop Returns: Status message indicating whether the instance was stopped successfully
list_machine_types
List available machine types in a specific zone. Args: project_id: The ID of the GCP project zone: The zone to check machine types in (e.g., "us-central1-a") Returns: List of available machine types in the specified zone
list_disks
List Compute Engine persistent disks in a GCP project. Args: project_id: The ID of the GCP project to list disks for zone: Optional zone to filter disks (e.g., "us-central1-a") Returns: List of persistent disks in the specified GCP project
create_instance
Create a new Compute Engine instance. Args: project_id: The ID of the GCP project zone: The zone to create the instance in (e.g., "us-central1-a") instance_name: The name for the new instance machine_type: The machine type (e.g., "e2-medium") source_image: The source image for the boot disk (e.g., "projects/debian-cloud/global/images/family/debian-11") boot_disk_size_gb: The size of the boot disk in GB (default: 10) network: The network to connect to (default: "default") subnet: The subnetwork to connect to (optional) external_ip: Whether to allocate an external IP (default: True) Returns: Status message indicating whether the instance was created successfully
delete_instance
Delete a Compute Engine instance. Args: project_id: The ID of the GCP project zone: The zone where the instance is located (e.g., "us-central1-a") instance_name: The name of the instance to delete Returns: Status message indicating whether the instance was deleted successfully
create_snapshot
Create a snapshot of a Compute Engine disk. Args: project_id: The ID of the GCP project zone: The zone where the disk is located (e.g., "us-central1-a") disk_name: The name of the disk to snapshot snapshot_name: The name for the new snapshot description: Optional description for the snapshot Returns: Status message indicating whether the snapshot was created successfully
list_snapshots
List disk snapshots in a GCP project. Args: project_id: The ID of the GCP project to list snapshots for Returns: List of disk snapshots in the specified GCP project
list_storage_buckets
List Cloud Storage buckets in a GCP project. Args: project_id: The ID of the GCP project to list buckets for Returns: List of Cloud Storage buckets in the specified GCP project
get_bucket_details
Get detailed information about a specific Cloud Storage bucket. Args: project_id: The ID of the GCP project bucket_name: The name of the bucket to get details for Returns: Detailed information about the specified Cloud Storage bucket
list_objects
List objects in a Cloud Storage bucket. Args: project_id: The ID of the GCP project bucket_name: The name of the bucket to list objects from prefix: Optional prefix to filter objects by limit: Maximum number of objects to list (default: 100) Returns: List of objects in the specified Cloud Storage bucket
upload_object
Upload a file to a Cloud Storage bucket. Args: project_id: The ID of the GCP project bucket_name: The name of the bucket to upload to source_file_path: The local file path to upload destination_blob_name: The name to give the file in GCS (default: filename from source) content_type: The content type of the file (default: auto-detect) Returns: Result of the upload operation
download_object
Download a file from a Cloud Storage bucket. Args: project_id: The ID of the GCP project bucket_name: The name of the bucket to download from source_blob_name: The name of the file in the bucket destination_file_path: The local path to save the file to Returns: Result of the download operation
delete_object
Delete an object from a Cloud Storage bucket. Args: project_id: The ID of the GCP project bucket_name: The name of the bucket to delete from blob_name: The name of the file to delete Returns: Result of the delete operation
get_billing_info
Get billing information for a GCP project. Args: project_id: The ID of the GCP project to get billing information for Returns: Billing information for the specified GCP project
list_vpc_networks
List Virtual Private Cloud (VPC) networks in a GCP project. Args: project_id: The ID of the GCP project to list VPC networks for Returns: List of VPC networks in the specified GCP project
get_vpc_details
Get detailed information about a specific VPC network. Args: project_id: The ID of the GCP project network_name: The name of the VPC network Returns: Detailed information about the specified VPC network
list_subnets
List subnets in a GCP project, optionally filtered by region. Args: project_id: The ID of the GCP project region: Optional region to filter subnets by Returns: List of subnets in the specified GCP project
create_firewall_rule
Create a firewall rule in a GCP project. Args: project_id: The ID of the GCP project name: The name of the firewall rule network: The name of the network to create the firewall rule for direction: The direction of traffic to match ('INGRESS' or 'EGRESS') priority: The priority of the rule (lower number = higher priority, 0-65535) source_ranges: Optional list of source IP ranges (for INGRESS) destination_ranges: Optional list of destination IP ranges (for EGRESS) allowed_protocols: Optional list of allowed protocols, e.g. [{"IPProtocol": "tcp", "ports": ["80", "443"]}] denied_protocols: Optional list of denied protocols, e.g. [{"IPProtocol": "tcp", "ports": ["22"]}] target_tags: Optional list of target instance tags source_tags: Optional list of source instance tags (for INGRESS) description: Optional description for the firewall rule Returns: Result of the firewall rule creation
list_firewall_rules
List firewall rules in a GCP project, optionally filtered by network. Args: project_id: The ID of the GCP project network: Optional network name to filter firewall rules by Returns: List of firewall rules in the specified GCP project
list_gcp_services
List enabled services/APIs in a GCP project. Args: project_id: The ID of the GCP project to list services for Returns: List of enabled services in the specified GCP project
list_gke_clusters
List Google Kubernetes Engine (GKE) clusters in a GCP project. Args: project_id: The ID of the GCP project to list GKE clusters for region: Optional region to filter clusters (e.g., "us-central1") Returns: List of GKE clusters in the specified GCP project
get_cluster_details
Get detailed information about a specific GKE cluster. Args: project_id: The ID of the GCP project cluster_name: The name of the GKE cluster location: The location (region or zone) of the cluster Returns: Detailed information about the specified GKE cluster
list_node_pools
List node pools in a GKE cluster. Args: project_id: The ID of the GCP project cluster_name: The name of the GKE cluster location: The location (region or zone) of the cluster Returns: List of node pools in the specified GKE cluster
resize_node_pool
Resize a node pool in a GKE cluster. Args: project_id: The ID of the GCP project cluster_name: The name of the GKE cluster location: The location (region or zone) of the cluster node_pool_name: The name of the node pool to resize node_count: The new node count for the pool Returns: Result of the node pool resize operation
list_monitoring_metrics
List available monitoring metrics for a GCP project. Args: project_id: The ID of the GCP project to list metrics for filter_str: Optional filter string to narrow down the metrics Returns: List of available monitoring metrics in the specified GCP project
get_monitoring_alerts
Get active monitoring alerts for a GCP project. Args: project_id: The ID of the GCP project to get alerts for Returns: Active alerts for the specified GCP project
create_alert_policy
Create a new alert policy in a GCP project. Args: project_id: The ID of the GCP project display_name: The display name for the alert policy metric_type: The metric type to monitor (e.g., "compute.googleapis.com/instance/cpu/utilization") filter_str: The filter for the metric data duration_seconds: The duration in seconds over which to evaluate the condition (default: 60) threshold_value: The threshold value for the condition (default: 0.0) comparison: The comparison type (COMPARISON_GT, COMPARISON_LT, etc.) (default: COMPARISON_GT) notification_channels: Optional list of notification channel IDs Returns: Result of the alert policy creation
list_uptime_checks
List Uptime checks in a GCP project. Args: project_id: The ID of the GCP project to list Uptime checks for Returns: List of Uptime checks in the specified GCP project
list_cloud_sql_instances
List Cloud SQL instances in a GCP project. Args: project_id: The ID of the GCP project to list Cloud SQL instances for Returns: List of Cloud SQL instances in the specified GCP project
get_sql_instance_details
Get detailed information about a specific Cloud SQL instance. Args: project_id: The ID of the GCP project instance_id: The ID of the Cloud SQL instance Returns: Detailed information about the specified Cloud SQL instance
list_databases
List databases in a Cloud SQL instance. Args: project_id: The ID of the GCP project instance_id: The ID of the Cloud SQL instance Returns: List of databases in the specified Cloud SQL instance
create_backup
Create a backup for a Cloud SQL instance. Args: project_id: The ID of the GCP project instance_id: The ID of the Cloud SQL instance description: Optional description for the backup Returns: Result of the backup operation
list_firestore_databases
List Firestore databases in a GCP project. Args: project_id: The ID of the GCP project to list Firestore databases for Returns: List of Firestore databases in the specified GCP project
list_firestore_collections
List collections in a Firestore database. Args: project_id: The ID of the GCP project database_id: The ID of the Firestore database (default is "(default)") Returns: List of collections in the specified Firestore database
list_deployment_manager_deployments
List Deployment Manager deployments in a GCP project. Args: project_id: The ID of the GCP project to list deployments for Returns: List of Deployment Manager deployments in the specified GCP project
get_deployment_details
Get details of a specific Deployment Manager deployment. Args: project_id: The ID of the GCP project deployment_name: The name of the deployment to get details for Returns: Details of the specified deployment
list_cloud_build_triggers
List Cloud Build triggers in a GCP project. Args: project_id: The ID of the GCP project to list build triggers for Returns: List of Cloud Build triggers in the specified GCP project

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/henihaddad/gcp-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server