Google Cloud Run

By GoogleCloudPlatformCreated 16 days ago
starstarstarstarstar

Official MCP server to deploy workloads to Google Cloud Run.

Visit Project
Share this MCP:
X (Formerly Twitter)RedditblueskyThreads by Instagram

Category

Official MCP Server

Tags

Google CloudCloud RunMcpServerlessDevops

What is Google Cloud Run MCP Server?

The Google Cloud Run MCP Server is a tool that allows Model Context Protocol (MCP)-compatible AI agents to deploy applications to Google Cloud Run. It acts as an intermediary server to facilitate seamless deployment of code from AI-powered IDEs, assistants, and SDKs to Cloud Run services.

How to use Google Cloud Run MCP Server?

The server can be used in two ways: locally or remotely.

Using as a Local MCP Server

  1. Install Node.js (LTS version recommended)
  2. Install and authenticate the Google Cloud SDK:
    gcloud auth login
    gcloud auth application-default login
    
  3. Configure your MCP client with the following JSON in the MCP configuration file:
    "cloud-run": {
       "command": "npx",
       "args": ["-y", "https://github.com/GoogleCloudPlatform/cloud-run-mcp"]
    }
    

Using as a Remote MCP Server

  1. Install and authenticate the Google Cloud SDK
  2. Deploy the MCP server to Cloud Run:
    gcloud run deploy cloud-run-mcp --image us-docker.pkg.dev/cloudrun/container/mcp --no-allow-unauthenticated
    
  3. Set up a local proxy to securely connect to the remote server:
    gcloud run services proxy cloud-run-mcp --port=3000 --region=REGION --project=PROJECT_ID
    
  4. Configure your MCP client to use the local proxy URL:
    "cloud-run": {
       "url": "http://localhost:3000/sse"
    }
    

Key Features

  • Seamless Deployment: Deploy code directly to Cloud Run from AI-powered tools.
  • Multiple Deployment Options: Supports deploying from file contents, local files, and local folders.
  • Service Management: List, retrieve details, and access logs for Cloud Run services.
  • Project Management: List and create GCP projects (local only).
  • Secure Authentication: IAM-based authentication ensures secure access to resources.
  • Flexible Usage: Works with AI-assisted IDEs (e.g., Cursor, Claude) and agent SDKs (e.g., Google Gen AI SDK, Agent Development Kit).

Use Cases

  1. Automating deployments from AI-powered development environments.
  2. Simplifying the process of deploying applications to Cloud Run without manual intervention.
  3. Managing Cloud Run services and projects programmatically via AI agents.
  4. Integrating Cloud Run deployments into AI-driven workflows, such as CI/CD pipelines managed by AI.
  5. Providing a secure, authenticated channel for deploying applications to Cloud Run from remote locations.

FAQ

  • What is MCP?

    Model Context Protocol (MCP) is a protocol designed to facilitate communication between AI agents and systems. It enables agents to interact with tools and services seamlessly.

  • Is the MCP server only for Cloud Run?

    This specific MCP server is designed for deploying to Google Cloud Run. Other MCP servers may be available for different platforms.

  • Can I deploy from multiple cloud projects?

    When using the remote MCP server, you can only deploy to the project where the server is running. Local executions allow deploying to any authenticated project.

  • What are the prerequisites for using this tool?

    You need a Google Cloud account, the Google Cloud SDK installed, and proper IAM permissions. Node.js is required for local setup.