Logo di Google Cloud MCP

Google Cloud MCP

Organizzazione
googleapis

gcloud MCP server

Autoregoogleapis
Repositorygcloud-mcp
LinguaTypeScript
Fork
82
Stelle
910
Strumenti disponibili
0
Tipo di trasportostdio
Categorie
LicenzaApache-2.0
Link
  • Collega gli strumenti ai flussi di lavoro IA

    Google Cloud MCP mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • 0 strumenti disponibili

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni quando forniti dal server.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse open source

    910 stelle e 82 fork nel repository collegato.

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 MCP Google Cloud MCP con più modelli IA

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso Google Cloud MCP, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura MCP.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura MCP e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con Questo dispositivo selezionato
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi Google Cloud MCP come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di Google Cloud MCP.
  4. Salva l'elenco dei server.
  5. Aggiorna per verificare che il connettore sia ancora pronto.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "gcloud-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di Google Cloud MCP, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di Google Cloud MCP.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare Google Cloud MCP per aiutarmi con questa attività?
Google Cloud MCP
Certo. Ho letto.
Ecco cosa ho trovato con Google Cloud MCP.

Domande frequenti

A cosa serve il server MCP Google Cloud MCP?

Google Cloud MCP è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare Google Cloud MCP MCP con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare Google Cloud MCP con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP Google Cloud MCP con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando Google Cloud MCP, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego Google Cloud MCP MCP a TypingMind?

Google Cloud MCP funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre Google Cloud MCP MCP in TypingMind?

Google Cloud MCP mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare Google Cloud MCP MCP?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se Google Cloud MCP richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇