Skip to main content
Glama

Cloud RunにコードをデプロイするためのMCPサーバー

MCP互換のAIエージェントがCloud Runにアプリをデプロイできるようにします。

"mcpServers":{
  "cloud-run": {
    "command": "npx",
    "args": ["-y", "https://github.com/GoogleCloudPlatform/cloud-run-mcp"]
  }
}

AI搭載IDEからデプロイ:

AIアシスタントアプリからデプロイ:

Google Gen AI SDKAgent Development KitなどのエージェントSDKからデプロイします。

[!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)を使用している場合に最適です。

  1. Node.jsをインストールします(LTS版推奨)。

  2. Google Cloud SDKをインストールし、Googleアカウントで認証します。

  3. 次のコマンドでGoogle Cloudアカウントにログインします:

    gcloud auth login
  4. 次のコマンドでアプリケーションの認証情報を設定します:

    gcloud auth application-default login
  5. お使いの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プロジェクトと同じプロジェクトにのみコードをデプロイできます。

  1. Google Cloud SDKをインストールし、Googleアカウントで認証します。

  2. 次のコマンドでGoogle Cloudアカウントにログインします:

    gcloud auth login
  3. 次のコマンドでGoogle CloudプロジェクトIDを設定します:

    gcloud config set project YOUR_PROJECT_ID
  4. 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による認証が必要なことに注意してください。

  5. ローカルマシンでCloud Runプロキシを実行し、Cloud Runで実行されているリモートMCPサーバーに自分のIDを使用して安全に接続します:

    gcloud run services proxy cloud-run-mcp --port=3000 --region=REGION --project=PROJECT_ID

    これにより、ポート3000にローカルプロキシが作成され、リモートMCPサーバーへのリクエストを転送してあなたのIDが注入されます。

  6. お使いの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"]
       }
Install Server
A
license - permissive license
A
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    B
    quality
    D
    maintenance
    Enables 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.
    1
    6
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables 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
  • A
    license
    B
    quality
    Not graded
    maintenance
    Enables 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

View all related MCP servers

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.

View all MCP Connectors

Latest Blog Posts

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