gcloud-mcp
Google Cloud MCP server — manage GCP resources via gcloud CLI through MCP tools. Compute, GKE, Cloud Run, Cloud SQL, DNS, IAM, and more.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- gcloud-mcp
- author
- Google Cloud
- license
- Apache-2.0
- version
- 0.5.3
- platforms
- [ "linux", "macos" ]
- description
- Google Cloud MCP server — manage GCP resources via gcloud CLI through MCP tools. Compute, GKE, Cloud Run, Cloud SQL, DNS, IAM, and more.
- mcp_servers
- { "gcloud": { "args": [ "-y", "@google-cloud/gcloud-mcp" ], "command": "npx" } }
02 资源文件 1
- 参考文档references/importing-from-gemini.md3.1 KB
03 SKILL.md 正文
gcloud MCP
Google Cloud MCP server wrapping gcloud CLI. Enables AI agents to create, manage, troubleshoot, and optimize Google Cloud resources through structured MCP tool calls instead of raw shell commands.
What It Provides
The MCP server exposes gcloud operations as typed tools with structured input/output:
- Compute Engine: VM instances, disks, firewalls, images
- Cloud SQL: Instances, databases, users
- GKE: Clusters, node pools
- Cloud Run: Services, jobs
- Cloud DNS: Managed zones, record sets
- IAM: Service accounts, policies, keys
- Deployment Manager: Deployments
- App Engine: Applications, versions
- Storage: Buckets, objects
- Artifact Registry: Repositories, images
- Secret Manager: Secrets, versions
Guiding Principles
- Prefer specific, native tools — if a GKE-specific or Cloud Run-specific MCP server is available, prefer it over the generic gcloud tool for the same operation. Specialized servers return better-structured data.
- Never guess required parameters — project ID, cluster name, region, zone must come from the user or be explicitly resolved. No assumptions.
- Use defaults from environment — if
project_idis not specified, use the gcloud default (gcloud config get-value project). - Reference docs: https://cloud.google.com/sdk/gcloud/reference or append
--helpto any command.
Prerequisites
- gcloud CLI installed and authenticated (
gcloud auth logindone) - Node.js 18+ (for npx)
- Project selected (
gcloud config set project PROJECT_IDor pass per-command)
Usage
The MCP server is started automatically by Hermes when tools from this skill are invoked. No manual setup needed.
Common Operations
# Verify gcloud auth (run directly, not via MCP)
gcloud auth list
gcloud config get-value project
# List compute instances (via MCP tool)
# Tool: gcloud_compute_instances_list
# Create a Cloud Run service (via MCP tool)
# Tool: gcloud_run_deploy
# Get GKE cluster info (via MCP tool)
# Tool: gcloud_container_clusters_describe
Environment Variables
| Variable | Purpose |
|---|---|
GOOGLE_CLOUD_PROJECT |
Default project ID |
GOOGLE_CLOUD_REGION |
Default region |
CLOUDSDK_CORE_PROJECT |
gcloud SDK project override |
Troubleshooting
| Problem | Fix |
|---|---|
npx fails or hangs |
Clear npx cache: npx clear-npx-cache, retry |
gcloud: command not found |
Install gcloud CLI: https://cloud.google.com/sdk/docs/install |
No project set |
Run gcloud config set project PROJECT_ID |
Insufficient permission |
Run gcloud auth login or check IAM roles |
| MCP server won't start | Check Node.js version: node --version (need 18+) |
04 同仓库更多 Skills
blocked-page-recovery
Use when a fetch fails: 403/429, paywall, WAF, bot wall.
gemini-vision-fallback
Vision fallback: Gemini REST API if vision_analyze blocked.
twitter-cli
Use twitter-cli for ALL Twitter/X operations — reading tweets, posting, replying, quoting, liking, retweeting, following, searching, user lookups. Invoke whenever user requests any Twitter interaction.
prism-scan
Structural analysis through dynamically generated cognitive lenses. Generates the optimal analytical lens for the specific code/artifact, then executes it. Finds conservation laws, structural invariants, and concrete bugs that vanilla analysis misses. Use on any code file, system design, or text artifact.
prism-reflect
Constraint transparency: analyzes an artifact structurally, then analyzes what its own analysis concealed. Produces a conservation law AND a constraint report showing what was maximized, what was sacrificed, and what to investigate next. The only AI skill that knows what it can't see.
prism-full
Full Prism: multi-pass structural analysis with mandatory adversarial self-correction. Designs custom analytical passes, executes them with chaining, then attacks its own findings before synthesizing. Use for maximum depth on important code or artifacts.