
gcloud MCP Server
MCP让 agent 通过 gcloud CLI 用自然语言管理 Google Cloud 资源,默认拦截交互式等不适合 agent 的命令,可配置允许/拒绝列表。Google 发布的预览版,非正式支持产品;需先安装并登录 gcloud。
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.
🚀 Getting Started
Prerequisites
- Node.js: version 20 or higher
- gcloud CLI
✨ 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.
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
Allowlist / Denylist Commands
The gcloud MCP server also allows for allowlisting/denylisting commands. For more information, see the denylist documentation.
For other AI clients
To use the gcloud-mcp server with other clients, add the following snippet to their respective JSON configuration files for each MCP server:
"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.jsonfor a single project or~/.cursor/mcp.jsonfor all projects. - Gemini CLI (Manual Setup): If not using extensions,
edit
.gemini/settings.jsonfor a single project or~/.gemini/settings.jsonfor 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:
"servers": {
"gcloud": {
"command": "npx",
"args": ["-y", "@google-cloud/gcloud-mcp"]
}
}
🛠 Local Development
For more information regarding installing the repository locally, please see development.md
🧰 Available MCP Tools
| Tool | Description |
|---|---|
run_gcloud_command | Executes a gcloud command. Some commands have been restricted from execution by the agent. See MCP Permissions for more information. |
🔑 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:
- Firebase MCP
- Google Analytics MCP
- Google Cloud Genmedia MCP
- Google Cloud Run MCP
- Google Kubernetes Engine (GKE) MCP
- Google Security Operations and Threat Intelligence MCP
- MCP Toolbox for Databases
👥 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.
相关资源

Cloud Run MCP Server
MCP让 agent 把本地目录或文件内容直接部署到 Google Cloud Run,并查看服务列表、服务详情与日志,还能列出和创建 GCP 项目。Google 官方维护,需先用 gcloud 登录并配置应用默认凭据。
GoogleCloudPlatform/cloud-run-mcp641
Google Skills
PluginGoogle 官方技能库兼插件市场:近 150 个以 Google Cloud 为主的技能(GKE、BigQuery、Cloud Run、IAM 等),另提供 Cloud SQL、Spanner、AlloyDB、BigQuery、GCS 等 17 个「技能加 MCP」产品插件。
google/skills25.3k
Amazon EKS MCP Server
MCPAWS 官方:创建与管理 EKS 集群,部署应用并增删改查 Kubernetes 资源,读取 Pod 日志与事件辅助排障。默认只读,写操作需加 --allow-write,读日志需加 --allow-sensitive-data-access。
awslabs/mcp10k
Cloudflare MCP Server
MCPCloudflare 官方的一组远程 MCP 服务器:管理 Workers 及 KV、R2、D1 等绑定资源,查询日志与可观测性、构建记录、DNS 分析和 Radar 数据。通过 Cloudflare OAuth 授权,部分功能需付费套餐。
cloudflare/mcp-server-cloudflare4.5k
Alibaba Cloud Ops MCP Server
MCP阿里云官方运维 MCP:用自然语言管理 ECS、RDS、OSS、VPC 等资源,查看云监控指标,并能分析项目后部署到 ECS。需要阿里云 AccessKey 与 uv。
aliyun/alibaba-cloud-ops-mcp-server139
Pulumi
CLI用 TypeScript、Python、Go 等通用编程语言定义云基础设施,pulumi up 即可预览并部署到 AWS、Azure、GCP、Kubernetes 等 300 多个提供方。Pulumi 官方维护,开源。
pulumi/pulumi26k