Google Cloud Run에 애플리케이션과 파일을 배포하고 서비스, 프로젝트, 서비스 로그를 조회합니다.
다른 이름 GoogleCloudPlatform/cloud-run-mcp, @google-cloud/cloud-run-mcp
- 스타
- 639
- Tools
- 7
- 다운로드, 30일
- 38,853
- 최신 버전
- —
- 마지막 커밋
- 2026년 11월 14일
- 라이선스
- Apache-2.0
Cloud Run MCP란?
Cloud Run은(는) MCP server입니다. Google Cloud Run에 애플리케이션과 파일을 배포하고 서비스, 프로젝트, 서비스 로그를 조회합니다. 7개 도구를 제공합니다. 예: deploy-file-contents, list-services, get-service.
프로젝트 README에서 생성된 요약
Cloud Run MCP server 정보
이 서버는 Google Cloud Platform을 사용하는 개발자가 AI agent를 통해 애플리케이션을 배포하고 클라우드 서비스를 관리할 수 있도록 지원합니다. Claude Desktop, Cursor, Windsurf와 같은 MCP 호환 client를 통해 Cloud Run과 상호작용할 수 있습니다. Google Cloud SDK를 사용하여 Google Cloud 계정에 연결하면 자연어를 사용하여 인프라를 관리할 수 있습니다.
이 서버는 deploy-file-contents를 통한 파일 내용 배포나 deploy-local-folder를 통한 로컬 디렉토리 관리 등 다양한 작업을 위한 특정 도구를 제공합니다. 또한 서비스를 조회하고, 특정 서비스의 상세 정보를 가져오며, get-service-log를 통해 로그나 에러 메시지를 가져오는 기능도 포함되어 있습니다. 로컬에서 작업하는 사용자의 경우 사용 가능한 프로젝트를 조회하거나 새 프로젝트를 생성할 수도 있습니다.
Node.js 또는 Docker를 사용하여 로컬 서버로 실행하거나 Cloud Run 자체에 원격으로 호스팅할 수 있습니다. 원격 설정 시 클라우드 리소스에 대한 안전한 액세스를 보장하기 위해 IAM 인증 또는 OAuth 2.0이 필요합니다. 설정은 GOOGLE_CLOUD_PROJECT 및 GOOGLE_CLOUD_REGION과 같은 환경 변수를 통해 기본 배포 대상을 정의하여 관리합니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
Cloud Run MCP 설치 방법
형식 확인: 2026년 11월 10일Cursor에 추가Goose에 추가Claude Code에 Cloud Run MCP 설치
$ claude mcp add cloud-run-mcp -- npx -y @google-cloud/cloud-run-mcpCursor에 Cloud Run MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"cloud-run-mcp": {
"command": "npx",
"args": [
"-y",
"@google-cloud/cloud-run-mcp"
]
}
}
}VS Code에 Cloud Run MCP 설치
.vscode/mcp.json
{
"servers": {
"cloud-run-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@google-cloud/cloud-run-mcp"
]
}
}
}VS Code CLI에 Cloud Run MCP 설치
$ code --add-mcp '{"name":"cloud-run-mcp","type":"stdio","command":"npx","args":["-y","@google-cloud/cloud-run-mcp"]}'Claude Desktop에 Cloud Run MCP 설치
claude_desktop_config.json
{
"mcpServers": {
"cloud-run-mcp": {
"command": "npx",
"args": [
"-y",
"@google-cloud/cloud-run-mcp"
]
}
}
}Codex에 Cloud Run MCP 설치
$ codex mcp add cloud-run-mcp -- npx -y @google-cloud/cloud-run-mcpCodex config.toml에 Cloud Run MCP 설치
~/.codex/config.toml
[mcp_servers.cloud-run-mcp] command = "npx" args = ["-y", "@google-cloud/cloud-run-mcp"]
Gemini CLI에 Cloud Run MCP 설치
$ gemini mcp add -s user cloud-run-mcp npx -- -y @google-cloud/cloud-run-mcpGemini settings.json에 Cloud Run MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"cloud-run-mcp": {
"command": "npx",
"args": [
"-y",
"@google-cloud/cloud-run-mcp"
]
}
}
}Cloud Run MCP 도구 7
README에서 감지됨deploy-file-contentslist-servicesget-serviceget-service-logdeploy-locallistcreate
| deploy-file-contents | — | |
| list-services | — | |
| get-service | — | |
| get-service-log | — | |
| deploy-local | — | |
| list | — | |
| create | — |
구성
DEFAULT_SERVICE_NAMEGOOGLE_APPLICATION_CREDENTIALSGOOGLE_CLOUD_PROJECTGOOGLE_CLOUD_REGION
| 이름 | 설명 | 유형 |
|---|---|---|
| DEFAULT_SERVICE_NAME | — | |
| GOOGLE_APPLICATION_CREDENTIALS | — | |
| GOOGLE_CLOUD_PROJECT | — | |
| GOOGLE_CLOUD_REGION | — |
자동 검사
2026년 11월 12일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 이는 보안 감사가 아닙니다. 코드를 직접 읽고 서버에 필요한 최소한의 권한만 부여하십시오. 검사 방식
- 소스 저장소 연결 및 접근 가능통과
- 오픈 소스 라이선스 (OSI)통과
- 최근 1년 내 커밋 또는 릴리스통과
- 패키지 이름이 인기 패키지와 유사하지 않음통과
- 원격 엔드포인트가 HTTPS 사용검사되지 않음
- 파괴적인 도구에 라벨 표시됨통과
- 모델에 대한 숨겨진 지침 없음통과
- 패키지 및 해당 종속성에 중요한 보안 권고 없음검사되지 않음
README
GitHub에서 보기Cloud Run MCP server and Gemini CLI extension
Enable MCP-compatible AI agents to deploy apps to Cloud Run.
"mcpServers":{
"cloud-run": {
"command": "npx",
"args": ["-y", "@google-cloud/cloud-run-mcp"]
}
}
Deploy from Gemini CLI and other AI-powered CLI agents:
Deploy from AI-powered IDEs:
Deploy from AI assistant apps:
Deploy from agent SDKs, like the Google Gen AI SDK or Agent Development Kit.
[!NOTE]
This is the repository of an MCP server to deploy code to Cloud Run, to learn how to host MCP servers on Cloud Run, visit the Cloud Run documentation.
Tools
-
deploy-file-contents: Deploys files to Cloud Run by providing their contents directly. -
list-services: Lists Cloud Run services in a given project and region. -
get-service: Gets details for a specific Cloud Run service. -
get-service-log: Gets Logs and Error Messages for a specific Cloud Run service. -
deploy-local-folder*: Deploys a local folder to a Google Cloud Run service. -
list-projects*: Lists available GCP projects. -
create-project*: Creates a new GCP project and attach it to the first available billing account. A project ID can be optionally specified.
* only available when running locally
Prompts
Prompts are natural language commands that can be used to perform common tasks. They are shortcuts for executing tool calls with pre-filled arguments.
deploy: Deploys the current working directory to Cloud Run. If a service name is not provided, it will use theDEFAULT_SERVICE_NAMEenvironment variable, or the name of the current working directory.logs: Gets the logs for a Cloud Run service. If a service name is not provided, it will use theDEFAULT_SERVICE_NAMEenvironment variable, or the name of the current working directory.
Environment Variables
The Cloud Run MCP server can be configured using the following environment variables:
| Variable | Description |
|---|---|
GOOGLE_CLOUD_PROJECT |
The default project ID to use for Cloud Run services. |
GOOGLE_CLOUD_REGION |
The default region to use for Cloud Run services. |
DEFAULT_SERVICE_NAME |
The default service name to use for Cloud Run services. |
SKIP_IAM_CHECK |
Controls whether to check for IAM permissions for a Cloud Run service. Set to false to enable checks. This is true by default which is a recommended way to make the service public. |
ENABLE_HOST_VALIDATION |
Prevents DNS Rebinding attacks by validating the Host header. This is disabled by default. |
ALLOWED_HOSTS |
Comma-separated list of allowed Host headers (if host validation is enabled). The default value is localhost,127.0.0.1,::1. |
OAUTH_ENABLED |
Enables OAuth 2.0 Bearer token verification for incoming HTTP/SSE requests when set to true. Disabled by default. |
GOOGLE_OAUTH_AUDIENCE |
Expected OAuth 2.0 token audience (typically your OAuth Client ID). Required when OAUTH_ENABLED=true. |
Use as a Gemini CLI extension
To install this as a Gemini CLI extension, run the following command:
-
Install the extension:
gemini extensions install https://github.com/GoogleCloudPlatform/cloud-run-mcp -
Log in to your Google Cloud account using the command:
gcloud auth login -
Set up application credentials using the command:
gcloud auth application-default login
Use in MCP Clients
Learn how to configure your MCP client
Most MCP clients require a configuration file to be created or modified to add the MCP server.
The configuration file syntax can be different across clients. Please refer to the following links for the latest expected syntax:
Once you have identified how to configure your MCP client, select one of these two options to set up the MCP server. We recommend setting up as a local MCP server using Node.js.
Set up as local MCP server
Run the Cloud Run MCP server on your local machine using local Google Cloud credentials. This is best if you are using an AI-assisted IDE (e.g. Cursor) or a desktop AI application (e.g. Claude).
-
Install the Google Cloud SDK and authenticate with your Google account.
-
Log in to your Google Cloud account using the command:
gcloud auth login -
Set up application credentials using the command:
gcloud auth application-default login
Then configure the MCP server using either Node.js or Docker:
Using Node.js
-
Install Node.js (LTS version recommended).
-
Update the MCP configuration file of your MCP client with the following:
"cloud-run": { "command": "npx", "args": ["-y", "@google-cloud/cloud-run-mcp"] } -
[Optional] Add default configurations
"cloud-run": { "command": "npx", "args": ["-y", "@google-cloud/cloud-run-mcp"], "env": { "GOOGLE_CLOUD_PROJECT": "PROJECT_NAME", "GOOGLE_CLOUD_REGION": "PROJECT_REGION", "DEFAULT_SERVICE_NAME": "SERVICE_NAME" } }
Using Docker
See Docker's MCP catalog, or use these manual instructions:
-
Install Docker
-
Update the MCP configuration file of your MCP client with the following:
"cloud-run": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "GOOGLE_APPLICATION_CREDENTIALS", "-v", "/local-directory:/local-directory", "mcp/cloud-run-mcp:latest" ], "env": { "GOOGLE_APPLICATION_CREDENTIALS": "/Users/slim/.config/gcloud/application_default-credentials.json", "DEFAULT_SERVICE_NAME": "SERVICE_NAME" } }
Set up as remote MCP server
[!WARNING]
Do not use the remote MCP server without authentication. In the following instructions, we will use IAM authentication to secure the connection to the MCP server from your local machine. This is important to prevent unauthorized access to your Google Cloud resources.
Run the Cloud Run MCP server itself on Cloud Run with connection from your local machine authenticated via IAM. With this option, you will only be able to deploy code to the same Google Cloud project as where the MCP server is running.
-
Install the Google Cloud SDK and authenticate with your Google account.
-
Log in to your Google Cloud account using the command:
gcloud auth login -
Set your Google Cloud project ID using the command:
gcloud config set project YOUR_PROJECT_ID -
Deploy the Cloud Run MCP server to Cloud Run:
gcloud run deploy cloud-run-mcp --image us-docker.pkg.dev/cloudrun/container/mcp --no-allow-unauthenticatedWhen prompted, pick a region, for example
europe-west1.Note that the MCP server is not publicly accessible, it requires authentication via IAM.
-
[Optional] Add default configurations
gcloud run services update cloud-run-mcp --region=REGION --update-env-vars GOOGLE_CLOUD_PROJECT=PROJECT_NAME,GOOGLE_CLOUD_REGION=PROJECT_REGION,DEFAULT_SERVICE_NAME=SERVICE_NAME,SKIP_IAM_CHECK=false -
Run a Cloud Run proxy on your local machine to connect securely using your identity to the remote MCP server running on Cloud Run:
gcloud run services proxy cloud-run-mcp --port=3000 --region=REGION --project=PROJECT_IDThis will create a local proxy on port 3000 that forwards requests to the remote MCP server and injects your identity.
-
Update the MCP configuration file of your MCP client with the following:
"cloud-run": { "url": "http://localhost:3000/sse" }If your MCP client does not support the
urlattribute, you can use mcp-remote:"cloud-run": { "command": "npx", "args": ["-y", "mcp-remote", "http://localhost:3000/sse"] }
Using MCP Server with OAuth
Cloud Run MCP server supports OAuth as an authentication mechanism. In order to use OAuth, create the OAuth client, and configure a .env file with the appropriate values pertaining to your OAuth client. A .env.example is provided for reference.
The Cloud Run MCP server works seamlessly with Google Cloud SDK OAuth client. In order to leverage the Google Cloud SDK OAuth client, you can use the .env.gcloud-sdk-oauth file as your .env file as follows:
cp .env.gcloud-sdk-oauth .env
node mcp-server.js
Configure MCP Server on Gemini CLI to use OAuth
When the Cloud Run MCP server is started in the OAuth mode, the MCP client should also be configured to use OAuth. You can setup the MCP server in OAuth mode in the Gemini CLI by using the following JSON in the ~/.gemini/settings.json file:
{
"mcpServers": {
"cloud-run": {
"httpUrl": "http://localhost:3000/mcp",
"oauth": {
"enabled": true,
"clientId": "<OAUTH_CLIENT_ID>",
"clientSecret": "<OAUTH_CLIENT_SECRET>"
}
}
}
}
Post the configuration changes as shown above, start the Gemini CLI. You should authenticate the Cloud Run MCP server using the following prompt in the Gemini CLI:
/mcp auth cloud-run
This will take you to the authentication page on your browser, wherein you need to sign in using the appropriate gmail id, and accept the terms and conditions. Once the authentication is succcessful, you can come back to the Gemini CLI, and the Cloud Run MCP server will be ready to use.
The Google Cloud Platform Terms of Service (available at https://cloud.google.com/terms/) and the Data Processing and Security Terms (available at https://cloud.google.com/terms/data-processing-terms) do not apply to any component of the Cloud Run MCP Server software.
Cloud Run Skills
We introduce Cloud Run skills to enable AI agents to perform actions on Cloud Run. You can use these skills with Gemini CLI and other agentic AI tools. The skills are available at Cloud Run Skills.
The Cloud Run skills are based on top of gcloud cli for Cloud Run empowering agents to perform all the actions on the Cloud Run using gcloud, as can be performed by the GCP user using gcloud cli.
In order to use Cloud Run skills:
- Ensure you have the
gcloudCLI installed and authenticated withgcloud auth loginandgcloud auth application-default login. - Set your project with
gcloud config set project [PROJECT_ID]. - Enable the skills on your agentic AI tool. For example, you can enable the skills for Gemini CLI using the following command on your terminal:
gemini skills install https://github.com/GoogleCloudPlatform/cloud-run-mcp.git --path skills/cloud-run
- Once the skills are enabled, you can use them to perform actions on Cloud Run. Here are some of the prompts for you to get started:
-
List the Cloud Run services in the project test-gcp-project in the region us-west1.
-
Deploy the folder /home/username/workspace/hello-world as Cloud Run service hello-world to the project test-gcp-project in the region us-west1.
-
Describe the Cloud Run job hello-job in the project test-gcp-project in the region europe-west1.
Cloud Run MCP 질문
Cloud Run MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add cloud-run-mcp -- npx -y @google-cloud/cloud-run-mcp를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
Cloud Run MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
Cloud Run MCP는 어떤 도구를 제공하나요?
7개 도구를 제공합니다. 예: deploy-file-contents, list-services, get-service, get-service-log, deploy-local.
Cloud Run MCP server로 무엇을 할 수 있나요?
AI agent가 파일을 Cloud Run에 배포하거나 로컬 폴더를 배포할 수 있으며, 서비스를 조회 및 검사하고, 서비스 로그를 가져오며, 로컬에서 실행 시 GCP 프로젝트를 관리할 수 있습니다.
Node.js로 Cloud Run MCP server를 어떻게 설치하나요?
npx 명령어와 @google-cloud/cloud-run-mcp 패키지를 사용하여 MCP client 설정에 추가합니다.
Cloud Run MCP server는 OAuth를 지원하나요?
네, 수신되는 HTTP/SSE 요청에 대해 OAuth 2.0 Bearer token 검증을 활성화할 수 있습니다.
로컬에서 실행할 때만 사용할 수 있는 도구는 무엇인가요?
deploy-local-folder, list-projects, create-project는 서버를 로컬에서 실행할 때만 사용할 수 있습니다.
서버를 사용하기 전에 어떻게 인증하나요?
gcloud auth login으로 로그인하고 애플리케이션 기본 자격 증명(application default credentials)을 설정합니다.