Back to Home
googleapis icon

gcloud-mcp

Verified Safe

by googleapis

Overview

Enables AI assistants to interact with the Google Cloud environment using the gcloud CLI for natural language cloud management and workflow automation.

Installation

Run Command
npx -y @google-cloud/gcloud-mcp

Environment Variables

  • LOG_LEVEL
  • GOOGLE_CLOUD_PROJECT
  • GCP_PROJECT_ID

Security Notes

The server's core functionality is to execute `gcloud` CLI commands, which is inherently a high-privilege operation. The project mitigates this risk by enforcing a default denylist of 'unsafe' commands (e.g., interactive sessions, arbitrary inputs) and providing configurable allow/deny lists for users to implement the principle of least privilege. Command execution uses `child_process.spawn` with an array of arguments, which is safer than direct shell injection. No hardcoded secrets were found. The primary remaining risk is sophisticated prompt injection bypassing denylists to execute unintended `gcloud` commands, or misconfiguration by the user.

Similar Servers

Stats

Interest Score98
Security Score7
Cost ClassMedium
Avg Tokens750
Stars616
Forks55
Last Update2026-01-13

Tags

Google CloudAI AssistantsCLI AutomationNatural LanguageCloud Management