Logotipo de Google Cloud MCP

Google Cloud MCP

Organización
googleapis

gcloud MCP server

Editorgoogleapis
Repositoriogcloud-mcp
IdiomaTypeScript
Forks
82
Estrellas
910
Herramientas disponibles
0
Tipo de transportestdio
Categorías
LicenciaApache-2.0
Enlaces
  • Conecta herramientas a flujos de trabajo con IA

    Google Cloud MCP ofrece funciones MCP que pueden usar los clientes y agentes de IA compatibles.

  • 0 herramientas disponibles

    Explora a continuación las acciones que se pueden invocar, con sus nombres y descripciones cuando el servidor los proporcione.

  • Configuración lista para copiar

    Usa los ejemplos de instalación para configurar este servidor en tu cliente MCP preferido.

  • Indicadores de interés en el código abierto

    910 estrellas y 82 forks en el repositorio enlazado.

gcloud-mcp Servers CI License

gcloud MCP Server ☁️

The gcloud Model Context Protocol (MCP) server enables AI assistants to easily interact with the Google Cloud environment using the gcloud CLI. With the gcloud MCP server you can:

  • Interact with Google Cloud using natural language. Describe the outcome you want instead of memorizing complex command syntax, flags, and arguments.
  • Automate and simplify complex workflows. Chain multiple cloud operations into a single, repeatable command to reduce manual effort and the chance of error.
  • Lower the barrier to entry for cloud management. Empower team members who are less familiar with gcloud to perform powerful actions confidently and safely.

📡 Available MCP Servers

This repository also hosts other MCP servers in addition to the gcloud MCP server. An up to date list is below, and links to other Google Cloud MCP servers hosted outside of this repo are here.

MCP Server NameDescriptionPackage NameVersion
gcloudInteract with Google Cloud via the gcloud CLI using natural language prompts.gcloud-mcpVersion
observabilityAccess Google Cloud Observability APIs to query logs, metrics, and traces.observability-mcpVersion
storageInteract with Google Cloud Storage for bucket and object management.storage-mcpVersion
backupdrInteract with Google Cloud Backup and Disaster Recovery.backupdr-mcpVersion

🚀 Getting Started

Prerequisites

✨ Set up your MCP server

Gemini CLI and Gemini Code Assist

To integrate MCP servers with Gemini CLI or Gemini Code Assist, run the setup command below from your home directory for MCP server listed in the table. This will install the MCP server as a Gemini CLI extension. for the current user, making it available for all your projects.

shell
npx @google-cloud/[PACKAGE_NAME] init --agent=gemini-cli

For example, for the gcloud-mcp:

shell
npx @google-cloud/gcloud-mcp init --agent=gemini-cli

After the initialization process, you can verify that the gcloud-mcp server is configured correctly by running the following command:

gemini mcp list

> ✓ gcloud: npx -y @google-cloud/gcloud-mcp (stdio) - Connected

For other AI clients

To use MCP servers in this repo with other clients, add the following snippet to their respective JSON configuration files for each MCP server:

json
"[SERVER_NAME]": {
  "command": "npx",
  "args": ["-y", "@google-cloud/[PACKAGE_NAME]"]
}

For example, for gcloud:

json
"gcloud": {
  "command": "npx",
  "args": ["-y", "@google-cloud/gcloud-mcp"]
}

Instructions for popular tools:

  • Claude Desktop: Open Claude > Settings > Developer > Edit Config and edit claude_desktop_config.json.
  • Cline: Click the MCP Servers icon, then Configure MCP Servers to edit cline_mcp_settings.json.
  • Cursor: Edit .cursor/mcp.json for a single project or ~/.cursor/mcp.json for all projects.
  • Gemini CLI (Manual Setup): If not using extensions, edit .gemini/settings.json for a single project or ~/.gemini/settings.json for all projects.

For Visual Studio Code edit the .vscode/mcp.json file in your workspace for a single project or your global user settings file for all projects:

json
"servers": {
  "[SERVER_NAME]": {
    "command": "npx",
    "args": ["-y", "@google-cloud/[PACKAGE_NAME]"]
  }
}

For example, for gcloud and observability:

json
"servers": {
  "gcloud": {
    "command": "npx",
    "args": ["-y", "@google-cloud/gcloud-mcp"]
  },
  "observability": {
    "command": "npx",
    "args": ["-y", "@google-cloud/observability-mcp"]
  },
}

🛠 Local Development

For more information regarding installing the repository locally, please see development.md

🧰 Available MCP Tools

MCP ServerToolDescription
gcloudrun_gcloud_commandExecutes a gcloud command. Some commands have been restricted from execution by the agent. See MCP Permissions for more information.
observabilitylist_log_entriesLists log entries from a project.
list_log_namesLists log names from a project.
list_bucketsLists log buckets from a project.
list_viewsLists log views from a project.
list_sinksLists log sinks from a project.
list_log_scopesLists log scopes from a project.
list_metric_descriptorsLists metric descriptors for a project.
list_time_seriesLists time series data for a given metric.
list_alert_policiesLists the alert policies in a project.
list_tracesSearches for traces in a project.
get_traceGets a specific trace by id in a project.
list_group_statsLists the error groups for a project.
storagelist_objectsLists objects in a GCS bucket.
read_object_metadataReads comprehensive metadata for a specific object.
read_object_contentReads the content of a specific object.
delete_objectDeletes a specific object from a bucket.
write_objectWrites a new object to a bucket.
update_object_metadataUpdates the custom metadata of an existing object.
copy_objectCopies an object from one bucket to another.
move_objectMoves an object from one bucket to another.
upload_objectUploads a file to a GCS bucket.
download_objectDownloads an object from GCS to a local file.
list_bucketsLists all buckets in a project.
create_bucketCreates a new bucket.
delete_bucketDeletes a bucket.
get_bucket_metadataGets comprehensive metadata for a specific bucket.
update_bucket_labelsUpdates labels for a bucket.
get_bucket_locationGets the location of a bucket.
view_iam_policyViews the IAM policy for a bucket.
check_iam_permissionsTests IAM permissions for a bucket.
get_metadata_table_schemaChecks if GCS insights service is enabled and returns the BigQuery table schema for a given insights dataset configuration.
execute_insights_queryExecutes a BigQuery SQL query against an insights dataset and returns the result.
list_insights_configsLists the names of all Storage Insights dataset configurations for a given project.
backupdrlist_backup_vaultsLists all backup vaults in a given project and location.
get_backup_vaultGets details of a specific backup vault.
list_backup_plansLists all backup plans in a given project and location.
get_backup_planGets details of a specific backup plan.
list_backup_plan_associationsLists all associations between backup plans and resources.
get_backup_plan_associationGets details of a specific backup plan association.
list_datasourcesLists all data sources within a backup vault.
get_datasourceGets details of a specific data source.
list_backupsLists all backups for a given data source.
get_backupGets details of a specific backup.
find_protectable_resourcesDiscovers resources (VMs, Disks, SQL) that can be protected.
get_backupdr_operationRetrieves the status of a long-running BackupDR operation.
get_csql_operationRetrieves the status of a long-running Cloud SQL operation.
create_backup_vaultCreates a new backup vault in a specified location.
create_backup_planCreates a new backup plan with defined rules and retention.
update_backup_planModifies an existing backup plan.
create_backup_plan_associationAssociates a resource with a backup plan to start protection.
restore_backupRestores a backup to a target Compute Engine instance or disk.
csql_restoreRestores a Cloud SQL backup to a target instance.
delete_backup_vaultDeletes a backup vault.
delete_backup_planDeletes a backup plan.
delete_backup_plan_associationRemoves protection from a resource by deleting its association.
delete_backupDeletes a specific backup from a vault.

🔑 MCP Permissions

The permissions of the gcloud MCP are directly tied to the permissions of the active gcloud account. To restrict permissions and operate with the principle of least privilege, you can authorize as a service account using impersonation and assign the service account a role with limited permissions.

By default, the gcloud MCP prevents execution of gcloud commands that don't make sense for AI agents. This is done to restrict commands that can run arbitrary inputs and initiate interactive sessions. See here for the list of denied commands.

💫 Other Google Cloud MCP Servers

Google Cloud offers these other servers:

👥 Contributing

We welcome contributions! Whether you're fixing bugs, sharing feedback, or improving documentation, your contributions are welcome. Please read our Contributing Guide to get started.

📄 Important Notes

This repository is currently in preview and may see breaking changes. This repository provides a solution, not an officially supported Google product. It is not covered under Google Cloud Terms of Service. It may break when the MCP specification, other SDKs, or when other solutions and products change. See also our Security Policy.

Usa el MCP de Google Cloud MCP con varios modelos de IA

TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que, una vez conectado Google Cloud MCP, puedes usarlo con distintos modelos de IA en TypingMind sin tener que configurarlo por separado para cada modelo. Esta integración MCP se ejecuta localmente en tu dispositivo a través del conector MCP de TypingMind.

Guía de configuración para usar el conector local

Usa esta opción si el servidor MCP necesita acceder a archivos locales, aplicaciones o recursos privados de tu ordenador.

1

Abre los ajustes de MCP

En TypingMind, ve a Ajustes, luego a Ajustes avanzados y a Model Context Protocol, y elige Configurar conector.

  1. Abre TypingMind en tu navegador.
  2. Haz clic en el icono de Ajustes.
  3. Ve a Ajustes avanzados.
  4. Abre la sección Model Context Protocol.
  5. Haz clic en Configurar conector y elige Este dispositivo.
Pantalla de configuración del conector MCP de TypingMind con «Este dispositivo» seleccionado
2

Ejecuta el comando del conector

Elige Este dispositivo, copia el comando de TypingMind y ejecútalo en Terminal. Mantén el proceso en ejecución mientras uses MCP.

  1. Copia el comando de configuración que muestra TypingMind.
  2. Abre Terminal en macOS o Windows Terminal en Windows.
  3. Pega y ejecuta el comando.
  4. Acepta la instalación del paquete si Terminal te pide confirmación para continuar.
  5. Mantén el proceso en ejecución en la ventana de Terminal mientras uses las herramientas MCP.
3

Añade Google Cloud MCP como servidor

Cuando el estado del conector sea «Listo», haz clic en «Edita servidores» y pega la configuración del servidor MCP.

  1. Espera hasta que el estado del conector indique «Listo».
  2. Haz clic en Edita servidores.
  3. Pega la configuración del servidor MCP de Google Cloud MCP.
  4. Guarda la lista de servidores.
  5. Actualiza para comprobar que el conector sigue listo.
Ajustes de MCP de TypingMind con un servidor activo y el botón «Edita servidores»
{
  "mcpServers": {
    "gcloud-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Úsala con distintos modelos

Guarda la lista de servidores, abre Plugins, activa las herramientas MCP de Google Cloud MCP y selecciona cualquier modelo de IA compatible en TypingMind para usar las herramientas en el chat o asignárselas a un agente de IA.

  1. Abre la página Plugins en TypingMind.
  2. Activa las herramientas MCP de Google Cloud MCP.
  3. Inicia un chat y elige el modelo de IA que quieras usar.
  4. Usa las herramientas MCP en el chat o asígnalas a un agente de IA.
  5. Cambia a otro modelo de IA cuando lo necesites sin volver a conectar MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar Google Cloud MCP para ayudarme con esta tarea?
Google Cloud MCP
Claro. Lo he leído.
Esto he encontrado usando Google Cloud MCP.

Preguntas frecuentes

¿Para qué sirve el servidor MCP Google Cloud MCP?

Google Cloud MCP es un servidor MCP que permite a los clientes de IA compatibles conectarse a herramientas y contexto externos. En TypingMind, basta con añadir este servidor MCP una vez para que sus herramientas estén disponibles en tu espacio de trabajo de IA.

¿Puedo usar el servidor MCP Google Cloud MCP con varios modelos de IA en TypingMind?

Sí. TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que puedes usar Google Cloud MCP con distintos modelos de IA, como Claude, ChatGPT, Gemini u otros que hayas configurado en TypingMind, sin configurar el servidor MCP por separado para cada modelo.

¿Por qué usar el conector MCP de Google Cloud MCP con TypingMind?

TypingMind es una de las mejores interfaces de chat con LLM porque reúne varios modelos de IA, prompts, plugins, agentes de IA, claves de API y herramientas MCP en un solo espacio de trabajo. Con Google Cloud MCP conectado, puedes usar sus herramientas MCP con tus modelos preferidos y mantener organizado tu flujo de trabajo de chat en TypingMind.

¿Cómo conecto el servidor MCP Google Cloud MCP a TypingMind?

Google Cloud MCP funciona a través del conector MCP local de TypingMind. Es la mejor opción cuando el servidor MCP necesita acceder a archivos locales, aplicaciones de escritorio, herramientas de línea de comandos o recursos privados de tu ordenador.

¿Qué herramientas ofrece el servidor MCP Google Cloud MCP en TypingMind?

Google Cloud MCP ofrece funciones MCP que puedes activar desde la página Plugins de TypingMind y usar en el chat o asignar a agentes de IA.

¿Tengo que compartir mis claves de API con TypingMind para usar el servidor MCP Google Cloud MCP?

No. TypingMind prioriza el funcionamiento local y te permite mantener el control de tus proveedores de modelos, claves de API, prompts y configuración MCP. Si Google Cloud MCP requiere autenticación, añade las cabeceras, los ajustes de OAuth o la configuración local necesarios para ese servidor MCP al crear la conexión.

Servidores MCP relacionados

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇