cloud-run
将代码部署到 Google Cloud Run 的 MCP 服务器
让兼容 MCP 的 AI 智能体能够将应用部署到 Cloud Run。
"mcpServers":{
"cloud-run": {
"command": "npx",
"args": ["-y", "https://github.com/GoogleCloudPlatform/cloud-run-mcp"]
}
}从 AI 驱动的 IDE 部署:
从 AI 助手应用部署:
从智能体 SDK 部署,例如 Google Gen AI SDK 或 Agent Development Kit。
[!NOTE]
这是一个用于将代码部署到 Cloud Run 的 MCP 服务器的代码仓库,要了解如何在 Cloud Run 上托管 MCP 服务器,请访问 Cloud Run 文档。
工具
deploy-file-contents:通过直接提供文件内容将文件部署到 Cloud Run。list-services:列出指定项目和区域中的 Cloud Run 服务。get-service:获取特定 Cloud Run 服务的详细信息。get-service-log:获取特定 Cloud Run 服务的日志和错误消息。deploy-local-files*:将本地文件系统中的文件部署到 Google Cloud Run 服务。deploy-local-folder*:将本地文件夹部署到 Google Cloud Run 服务。list-projects*:列出可用的 GCP 项目。create-project*:创建新的 GCP 项目并将其关联到第一个可用的结算账号。可以选择指定项目 ID。
* 仅在本地运行时可用
Related MCP server: Cloud Run MCP Server
作为本地 MCP 服务器使用
使用本地 Google Cloud 凭据在本地计算机上运行 Cloud Run MCP 服务器。如果你使用的是 AI 辅助 IDE(例如 Cursor)或桌面 AI 应用程序(例如 Claude),这是最佳选择。
安装 Node.js(建议使用 LTS 版本)。
安装 Google Cloud SDK 并使用你的 Google 账号进行身份验证。
使用以下命令登录你的 Google Cloud 账号:
gcloud auth login使用以下命令设置应用程序凭据:
gcloud auth application-default login使用以下内容更新你的 MCP 客户端的 MCP 配置文件:
"cloud-run": { "command": "npx", "args": ["-y", "https://github.com/GoogleCloudPlatform/cloud-run-mcp"] }
作为远程 MCP 服务器使用
[!WARNING]
请勿在未经身份验证的情况下使用远程 MCP 服务器。在以下说明中,我们将使用 IAM 身份验证来保护从你的本地计算机到 MCP 服务器的连接。这对于防止未经授权访问你的 Google Cloud 资源非常重要。
将 Cloud Run MCP 服务器本身运行在 Cloud Run 上,并通过 IAM 对来自本地计算机的连接进行身份验证。使用此选项时,你只能将代码部署到 MCP 服务器运行所在的同一个 Google Cloud 项目。
安装 Google Cloud SDK 并使用你的 Google 账号进行身份验证。
使用以下命令登录你的 Google Cloud 账号:
gcloud auth login使用以下命令设置你的 Google Cloud 项目 ID:
gcloud config set project YOUR_PROJECT_ID将 Cloud Run MCP 服务器部署到 Cloud Run:
gcloud run deploy cloud-run-mcp --image us-docker.pkg.dev/cloudrun/container/mcp --no-allow-unauthenticated出现提示时,请选择一个区域,例如
europe-west1。请注意,MCP 服务器并非公开可访问,它需要通过 IAM 进行身份验证。
在本地计算机上运行 Cloud Run 代理,以使用你的身份安全地连接到运行在 Cloud Run 上的远程 MCP 服务器:
gcloud run services proxy cloud-run-mcp --port=3000 --region=REGION --project=PROJECT_ID这将在本地端口 3000 上创建一个代理,将请求转发到远程 MCP 服务器并注入你的身份。
使用以下内容更新你的 MCP 客户端的 MCP 配置文件:
"cloud-run": { "url": "http://localhost:3000/sse" }如果你的 MCP 客户端不支持
url属性,可以使用 mcp-remote:"cloud-run": { "command": "npx", "args": ["-y", "mcp-remote", "http://localhost:3000/sse"] }
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI assistants to interact with and manage Google Cloud Platform resources including Compute Engine, Cloud Run, Storage, BigQuery, and other GCP services through a standardized MCP interface.16MIT
- AlicenseAqualityBmaintenanceEnables MCP-compatible AI agents to deploy applications to Google Cloud Run by providing tools for deploying code, listing services, and managing Google Cloud projects.82,123627Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Google Cloud Platform services through gcloud CLI commands via a Cloud Run deployed MCP server. Supports executing gcloud commands and managing GCP resources through natural language.MIT
- AlicenseBqualityNot gradedmaintenanceEnables AI assistants to interact with and manage Google Cloud Platform resources including Artifact Registry, BigQuery, Cloud Build, Compute Engine, Cloud Run, Cloud Storage, and monitoring services through a standardized MCP interface.1
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Hosted Google Calendar MCP server for AI agents. No self-hosting or Google Cloud setup.
One PAT, any MCP agent: Vercel, GitHub, Cloudflare, Supabase, GCP — unified dev infra gateway.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/rajath-raman/cloud-run-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server