Logo van Google Cloud MCP

Google Cloud MCP

Organisatie
googleapis

gcloud MCP server

Uitgevergoogleapis
Repositorygcloud-mcp
TaalTypeScript
Forks
82
Sterren
910
Beschikbare tools
0
Transporttypestdio
Categorieën
LicentieApache-2.0
Links
  • Koppel tools aan AI-workflows

    Google Cloud MCP biedt MCP-functionaliteit die compatibele AI-clients en agenten kunnen gebruiken.

  • 0 beschikbare tools

    Bekijk hieronder de aanroepbare acties, inclusief namen en beschrijvingen als de server die beschikbaar stelt.

  • Configuratie om direct te kopiëren

    Gebruik de installatievoorbeelden om deze server in je favoriete MCP-client te configureren.

  • Indicatoren van opensource-interesse

    910 sterren en 82 forks in de gekoppelde repository.

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.

Gebruik Google Cloud MCP MCP met meerdere AI-modellen

TypingMind koppelt MCP-tools aan de werkruimte. Zodra Google Cloud MCP is verbonden, kun je deze dus met verschillende AI-modellen in TypingMind gebruiken, zonder de verbinding voor elk model apart in te stellen. Deze MCP-integratie draait lokaal via de TypingMind MCP-connector op je apparaat.

Installatiehandleiding voor de lokale connector

Gebruik dit als de MCP-server toegang nodig heeft tot lokale bestanden, apps of privébronnen op je computer.

1

Open de MCP-instellingen

Ga in TypingMind naar Instellingen, Geavanceerde instellingen en vervolgens Model Context Protocol. Kies daar Connector instellen.

  1. Open TypingMind in je browser.
  2. Klik op het pictogram Instellingen.
  3. Ga naar Geavanceerde instellingen.
  4. Open het gedeelte Model Context Protocol.
  5. Klik op Connector instellen en kies Dit apparaat.
Instelscherm voor de TypingMind MCP-connector met Dit apparaat geselecteerd
2

Voer de connectoropdracht uit

Kies Dit apparaat, kopieer de opdracht uit TypingMind en voer deze uit in Terminal. Laat het proces draaien zolang je MCP gebruikt.

  1. Kopieer de installatieopdracht die TypingMind toont.
  2. Open Terminal op macOS of Windows Terminal op Windows.
  3. Plak de opdracht en voer deze uit.
  4. Keur de pakketinstallatie goed als Terminal vraagt of je wilt doorgaan.
  5. Laat het proces in het Terminal-venster draaien zolang je MCP-tools gebruikt.
3

Voeg Google Cloud MCP toe als server

Klik op Servers bewerken zodra de connectorstatus Gereed is en plak de MCP-serverconfiguratie.

  1. Wacht tot de connectorstatus Gereed aangeeft.
  2. Klik op Servers bewerken.
  3. Plak de MCP-serverconfiguratie van Google Cloud MCP.
  4. Sla de serverlijst op.
  5. Vernieuw om te controleren of de connector nog steeds klaar is voor gebruik.
MCP-instellingen van TypingMind met een actieve server en de knop Servers bewerken
{
  "mcpServers": {
    "gcloud-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Gebruik de verbinding met verschillende modellen

Sla de serverlijst op, open Plug-ins en schakel de MCP-tools van Google Cloud MCP in. Selecteer vervolgens een ondersteund AI-model in TypingMind en gebruik de tools in de chat of wijs ze toe aan een AI-agent.

  1. Open de pagina Plug-ins in TypingMind.
  2. Schakel de MCP-tools van Google Cloud MCP in.
  3. Start een chat en kies het AI-model dat je wilt gebruiken.
  4. Gebruik de MCP-tools in een chat of wijs ze toe aan een AI-agent.
  5. Schakel wanneer nodig over naar een ander AI-model zonder opnieuw verbinding te maken met MCP.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je Google Cloud MCP gebruiken om me hiermee te helpen?
Google Cloud MCP
Zeker. Ik heb het gelezen.
Dit vond ik met Google Cloud MCP.

Veelgestelde vragen

Waarvoor wordt de MCP-server Google Cloud MCP gebruikt?

Google Cloud MCP is een MCP-server waarmee compatibele AI-clients verbinding kunnen maken met externe tools en context. In TypingMind hoef je deze MCP-server maar één keer toe te voegen om de tools beschikbaar te maken in je AI-werkruimte.

Kan ik Google Cloud MCP MCP met meerdere AI-modellen in TypingMind gebruiken?

Ja. TypingMind verbindt MCP-tools op werkruimteniveau. Daardoor kun je Google Cloud MCP gebruiken met verschillende AI-modellen, zoals Claude, ChatGPT, Gemini of andere modellen die je in TypingMind hebt ingesteld, zonder de MCP-server voor elk model afzonderlijk in te stellen.

Waarom Google Cloud MCP MCP gebruiken met TypingMind?

TypingMind is een van de beste interfaces voor chats met LLM's, omdat het meerdere AI-modellen, prompts, plug-ins, AI-agenten, API-sleutels en MCP-tools samenbrengt in één werkruimte. Als Google Cloud MCP verbonden is, kun je de MCP-tools ervan gebruiken met je favoriete modellen en je chatworkflow overzichtelijk houden in TypingMind.

Hoe verbind ik Google Cloud MCP MCP met TypingMind?

Google Cloud MCP werkt via de lokale MCP-connector van TypingMind. Dit is de beste optie als de MCP-server toegang nodig heeft tot lokale bestanden, desktopapps, opdrachtregeltools of privébronnen op je computer.

Welke tools biedt Google Cloud MCP MCP in TypingMind?

Google Cloud MCP biedt MCP-functies die je kunt inschakelen via de pagina Plug-ins in TypingMind. Je kunt ze gebruiken in chats of toewijzen aan AI-agenten.

Moet ik mijn API-sleutels delen met TypingMind om Google Cloud MCP MCP te gebruiken?

Nee. TypingMind werkt in de eerste plaats lokaal en laat je de controle houden over je modelaanbieders, API-sleutels, prompts en MCP-configuratie. Als Google Cloud MCP authenticatie vereist, voeg je bij het maken van de verbinding de vereiste headers, OAuth-instellingen of lokale configuratie voor die MCP-server toe.

Gerelateerde MCP-servers

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇