Cloud Run MCP Server

by @GoogleCloudPlatform

Cloud Run MCP Server

Cloud Run MCP Server connects agents to application deployment and service inspection on Google Cloud Run. It offers a local credential-based setup, Gemini CLI integration, and authenticated remote operation with specific limits.

Cloud & DevOps633nodeApache-2.0

Server facts

Cloud Run MCP Server

GitHub stars

633

Last commit

Oct 8, 2026

Runtime

node

License

Apache-2.0

Tech

Runtime
node
Transports
stdio
Remote access
No

Activity

GitHub stars
633
Last commit
Data as of

Tags

  • App Deployment
  • Cloud Run
  • Gemini Cli
  • Google Cloud
  • Service Logs

Overview

Where this server runs affects what an agent can do with it. A local instance can deploy a source folder and discover Google Cloud projects, or create a project connected to the first available billing account. Those operations are marked local-only. File-content deployment and service inspection form the other tool group: agents can submit application files directly, list services for a selected region and project, inspect one service, or retrieve its logs and errors. The repository also supplies deploy and logs prompts, with service naming drawn from a configured default or the working directory. Gemini CLI has an extension installation path alongside ordinary MCP client configuration.

The README recommends a local Node setup using the Cloud SDK and application-default credentials. Docker is documented as another local option. Alternatively, the MCP process can itself be deployed to Cloud Run with IAM authentication and a proxy running on the user's machine. Remote operation must not be left unauthenticated, and deployment targets are restricted to the project hosting that server. OAuth is described as an additional authentication mechanism. Configuration can set defaults for service, region, and project. It also exposes security-related switches: Host-header validation is off initially, and the separate service IAM-check setting defaults to skipping checks. These defaults are not a substitute for securing access to the remote MCP process. The repository distinguishes its deployment tools from separate documentation on hosting arbitrary MCP servers.

Install & configure

Requirements

  • Node.js, preferably an LTS release
  • Installed Google Cloud SDK
  • Google account authentication and application-default credentials
  • MCP client configured to start the local package
Documented launch / install command
npx -y @google-cloud/cloud-run-mcp

The command matches the README's recommended local Node configuration, not the bare script from config_hint. Prepare credentials with gcloud auth login followed by gcloud auth application-default login. All three environment entries are optional defaults. A remotely hosted server follows a different authenticated setup and does not expose the local-only tools.

Config file · macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

Use Settings → Developer → Edit Config when available. Do not assume a Linux configuration path; check the client documentation for your platform. Remote servers use the app’s connector flow when supported, not the local stdio file shown here. Merge this example with existing settings; do not overwrite unrelated servers.

Claude Desktop configuration
{
  "mcpServers": {
    "cloud-run-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@google-cloud/cloud-run-mcp"
      ],
      "env": {
        "GOOGLE_CLOUD_PROJECT": "<optional project ID used when a request omits it>",
        "GOOGLE_CLOUD_REGION": "<optional deployment region used by default>",
        "DEFAULT_SERVICE_NAME": "<optional fallback name for the Cloud Run service>"
      }
    }
  }
}

Read the Claude Desktop setup guide

Config file · Project: .cursor/mcp.json

User: ~/.cursor/mcp.json

The project path is relative to the workspace root. The tilde denotes your user home directory. Use Cursor’s MCP settings to confirm which configuration and scope your installed version is reading. Merge this example with existing settings; do not overwrite unrelated servers.

Cursor configuration
{
  "mcpServers": {
    "cloud-run-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@google-cloud/cloud-run-mcp"
      ],
      "env": {
        "GOOGLE_CLOUD_PROJECT": "<optional project ID used when a request omits it>",
        "GOOGLE_CLOUD_REGION": "<optional deployment region used by default>",
        "DEFAULT_SERVICE_NAME": "<optional fallback name for the Cloud Run service>"
      }
    }
  }
}

Read the Cursor setup guide

Config file · Workspace: .vscode/mcp.json

For user scope, use the “MCP: Open User Configuration” command if available. Do not guess a user configuration path across operating systems, profiles, containers, or remote workspaces; check the client documentation. Merge this example with existing settings; do not overwrite unrelated servers.

VS Code configuration
{
  "servers": {
    "cloud-run-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@google-cloud/cloud-run-mcp"
      ],
      "env": {
        "GOOGLE_CLOUD_PROJECT": "<optional project ID used when a request omits it>",
        "GOOGLE_CLOUD_REGION": "<optional deployment region used by default>",
        "DEFAULT_SERVICE_NAME": "<optional fallback name for the Cloud Run service>"
      }
    }
  }
}

Read the VS Code setup guide

Config file · macOS/Linux: ~/.codeium/windsurf/mcp_config.json

Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json

Open the MCP configuration through Windsurf’s settings when possible to confirm the active file. Paths can differ in managed or future releases; check the client documentation if this location is not present. Merge this example with existing settings; do not overwrite unrelated servers.

Windsurf configuration
{
  "mcpServers": {
    "cloud-run-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@google-cloud/cloud-run-mcp"
      ],
      "env": {
        "GOOGLE_CLOUD_PROJECT": "<optional project ID used when a request omits it>",
        "GOOGLE_CLOUD_REGION": "<optional deployment region used by default>",
        "DEFAULT_SERVICE_NAME": "<optional fallback name for the Cloud Run service>"
      }
    }
  }
}

Read the Windsurf setup guide

Config file · Project scope: .mcp.json at the repository root

The project file uses mcpServers. For user scope, use claude mcp add --scope user rather than assuming .mcp.json in your home directory is the user configuration. Check the client documentation for managed settings and storage details. Merge this example with existing settings; do not overwrite unrelated servers.

Claude Code configuration
{
  "mcpServers": {
    "cloud-run-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@google-cloud/cloud-run-mcp"
      ],
      "env": {
        "GOOGLE_CLOUD_PROJECT": "<optional project ID used when a request omits it>",
        "GOOGLE_CLOUD_REGION": "<optional deployment region used by default>",
        "DEFAULT_SERVICE_NAME": "<optional fallback name for the Cloud Run service>"
      }
    }
  }
}

Read the Claude Code setup guide

Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.

Tools

Source: repository README. Tool descriptions are a documented snapshot, not a live capability check.

ToolWhat it does
get-service-logRead a selected service's logs, including error messages.
get-serviceInspect details about one deployed Cloud Run service.
list-servicesDiscover services within the chosen region and project.
deploy-file-contentsPublish an application by supplying its files' contents directly.
deploy-local-folderUse a source directory for deployment; exposed only by a locally running instance.
list-projectsDiscover available Google Cloud projects in local mode.
create-projectIn local mode, create a project linked to the first available billing account, optionally choosing its ID.

Use cases

  • Move application source from an agent workflow into a Cloud Run deployment.
  • Inspect service configuration and error evidence after deployment.
  • Use saved deployment defaults with the supplied deploy and logs prompts.
  • Discover or create Google Cloud projects when operating the server locally.

Strengths

  • Keeps deployment, service lookup, and log retrieval in one agent-facing interface.
  • Documents Node, Docker, Gemini CLI, and authenticated remote connection paths.
  • Distinguishes local-only project and folder operations from other tools.

Limitations

  • Remote instances cannot deploy outside their own hosting project.
  • Folder deployment and project discovery or creation are unavailable in remote mode.
  • Remote access needs authentication; host validation is not enabled by default.

Cloud Run MCP Server setup notes

  • Check DEFAULT_SERVICE_NAME, GOOGLE_CLOUD_PROJECT, GOOGLE_CLOUD_REGION in the Cloud Run MCP Server configuration if startup or authentication fails.
  • Cloud Run MCP Server's stdio example needs a client that launches local processes.

Frequently asked questions

The local-only set consists of create-project, deploy-local-folder, and list-projects. A remote instance is also confined to deployments within its hosting project.

Related MCP servers