Cloud Run MCP Server

v1.10.0Cloud Servicesstable

A secure MCP server example that demonstrates how to deploy to Google Cloud Run with authentication and identity token protection. Serves as a tutorial template for building production-ready MCP servers in the cloud.

google-cloudgoogle-cloud-runmcpmcp-servercloud-run
Share:
610
Stars
0
Downloads
0
Weekly
0/5

What is Cloud Run MCP Server?

Cloud Run MCP Server is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to secure mcp server example that demonstrates how to deploy to google cloud run with authentication and identity token protection. serves as a tutorial template for building production-ready mcp servers...

A secure MCP server example that demonstrates how to deploy to Google Cloud Run with authentication and identity token protection. Serves as a tutorial template for building production-ready MCP servers in the cloud.

This server falls under the Cloud Services category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A secure MCP server example that demonstrates how to deploy

Use Cases

Production-ready Google Cloud deployment
Authentication and identity token protection
Cloud-hosted MCP tutorial
LicenseApache-2.0
Languagejavascript
Versionv1.10.0
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y @google-cloud/cloud-run-mcp

Manual Installation

npx -y @google-cloud/cloud-run-mcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Cloud Run MCP Server

The Cloud Run MCP Server is an official Google Cloud example and reference implementation that lets AI assistants deploy code directly to Google Cloud Run, list running services, retrieve logs, and manage GCP projects through natural language commands. It ships as the @google-cloud/cloud-run-mcp npm package and can run locally via npx, inside Docker, or as a deployed Cloud Run service with identity token authentication. DevOps engineers and cloud developers use it to deploy web services, check service health, and iterate on Cloud Run workloads without leaving their AI assistant.

Prerequisites

  • Node.js LTS (18 or later) installed, or Docker for the container-based setup
  • Google Cloud SDK (gcloud) installed and authenticated via 'gcloud auth login'
  • Application Default Credentials configured with 'gcloud auth application-default login'
  • A GCP project with the Cloud Run API enabled and appropriate IAM roles (Cloud Run Admin or equivalent)
  • An MCP client such as Claude Desktop or the Gemini CLI
1

Authenticate with Google Cloud

Log in with the gcloud CLI and set up application default credentials so the MCP server can call Cloud Run APIs on your behalf.

gcloud auth login
gcloud auth application-default login
gcloud config set project YOUR_PROJECT_ID
2

Run the server locally with npx

Start the MCP server using npx without a global install. It reads your application default credentials automatically.

npx -y @google-cloud/cloud-run-mcp
3

Configure Claude Desktop

Add the server to your Claude Desktop configuration file so it starts automatically. Use the GOOGLE_CLOUD_PROJECT and GOOGLE_CLOUD_REGION environment variables to set defaults.

4

Enable IAM check control (optional)

By default SKIP_IAM_CHECK is true. Set it to false in production deployments to enforce IAM permission validation before running Cloud Run operations.

5

Deploy the server to Cloud Run itself (optional)

For team or production use, deploy the MCP server as a Cloud Run service with identity token authentication so no local credentials are needed by end users.

gcloud run deploy cloud-run-mcp \
  --image us-docker.pkg.dev/cloudrun/container/mcp \
  --no-allow-unauthenticated \
  --region us-central1

Cloud Run MCP Server Examples

Client configuration

Claude Desktop configuration for the Cloud Run MCP Server using npx with default project and region set via environment variables.

{
  "mcpServers": {
    "cloud-run-mcp": {
      "command": "npx",
      "args": ["-y", "@google-cloud/cloud-run-mcp"],
      "env": {
        "GOOGLE_CLOUD_PROJECT": "your-gcp-project-id",
        "GOOGLE_CLOUD_REGION": "us-central1",
        "SKIP_IAM_CHECK": "true"
      }
    }
  }
}

Prompts to try

Natural-language commands for deploying and managing Cloud Run services.

- "Deploy the current working directory to Cloud Run as service my-api in us-central1"
- "List all Cloud Run services in project my-project and show their URLs and status"
- "Get the last 50 log lines from the service named backend-service"
- "Deploy the folder /home/user/app as a new Cloud Run service called hello-world"
- "What is the current revision of the service api-gateway and when was it last deployed?"

Troubleshooting Cloud Run MCP Server

API returns 'Permission denied' when listing or deploying services

Verify your authenticated account has the Cloud Run Admin or Cloud Run Developer IAM role on the project. Run 'gcloud projects get-iam-policy YOUR_PROJECT' to check. Also confirm the Cloud Run API is enabled with 'gcloud services enable run.googleapis.com'.

Application default credentials not found

Run 'gcloud auth application-default login' to create the credentials file. The MCP server reads these automatically. If running in Docker, mount the credentials file and set GOOGLE_APPLICATION_CREDENTIALS to point to it.

npx hangs or fails with EACCES errors

Ensure Node.js LTS is installed and the npx binary is on your PATH. On macOS, install Node via Homebrew ('brew install node') to avoid permission issues with system Python or npm global installs.

Frequently Asked Questions about Cloud Run MCP Server

What is Cloud Run MCP Server?

Cloud Run MCP Server is a Model Context Protocol (MCP) server that secure mcp server example that demonstrates how to deploy to google cloud run with authentication and identity token protection. serves as a tutorial template for building production-ready mcp servers in the cloud. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Cloud Run MCP Server?

Install via npm with the command: npx -y @google-cloud/cloud-run-mcp. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Cloud Run MCP Server?

Cloud Run MCP Server works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Cloud Run MCP Server free to use?

Yes, Cloud Run MCP Server is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.

Browse More Cloud Services MCP Servers

Explore all cloud services servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "cloud-run-mcp-server": { "command": "npx", "args": ["-y", "@google-cloud/cloud-run-mcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Cloud Run MCP Server?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides