Skip to main content

Google Cloud Run

Google hosts the Cloud Run MCP server at https://run.googleapis.com/mcp over streamable HTTP. The Official card has that URL filled in. Each person signs in with a Google account, and tool calls run with that account's permissions. Google's remote MCP servers do not support dynamic client registration or a client ID metadata document, so an admin creates an OAuth client and pastes its client ID and secret into Willow. It is the Google Cloud Run card with the Official badge. Sign in with OAuth. This server refuses API keys.

The remote MCP server is available once the Cloud Run Admin API is enabled on the project. Google's before-you-begin step is to enable the Cloud Run API.

Google also publishes a regional endpoint in Preview, https://run.REGION.rep.googleapis.com/mcp. This card uses the global URL.

Before you start​

  • A Google Cloud project. Enable the Cloud Run Admin API if it is off. Enabling an API needs the serviceusage.services.enable permission, which the Owner role and Service Usage Admin (roles/serviceusage.serviceUsageAdmin) include.
  • On the project where the server is used, each person who signs in needs:
    • MCP Tool User (roles/mcp.toolUser) — mcp.tools.call
    • Cloud Run Developer (roles/run.developer) — create Cloud Run services
    • Service Account User (roles/iam.serviceAccountUser) — run operations as the service account
    • Artifact Registry Reader (roles/artifactregistry.reader) — read the container image in Artifact Registry
    • Service Account Token Creator (roles/iam.serviceAccountTokenCreator) — deploy with a service account from another project
  • The Official card added in Willow, so you can copy the redirect URL from the server Setup tab.

Google recommends a separate identity for agents so access can be controlled and monitored.

Set up Google Cloud​

If Google Auth Platform says it is not configured, open Branding and click Get Started. Enter an app name, a user support email, an audience, and a contact email, agree to the user data policy, then create the app.

  • Internal, when everyone who signs in belongs to your Google Workspace organization. Google does not ask you to list scopes for an internal app, and sensitive scopes skip the extra review.
  • External for anyone else. Under Audience → Test users, add each person who will sign in. Under Data Access → Add or Remove Scopes, add the Cloud Run scope you will request. Reaching users beyond the test list needs Google's verification.

Then create the client:

  1. In the Google Cloud console, go to Google Auth Platform → Clients → Create client. Select the project if asked.

  2. Set Application type to Web application and enter a name. A web client is the type that accepts Willow's redirect URL.

  3. Under Authorized redirect URIs, click + Add URI and paste the URL from Willow. On the server Setup tab, select Client ID & secret and copy the URL shown there.

    • SaaS: https://{org}.withwillow.ai/{org}/api/auth/callback
    • On-prem: {CONNECT_URL}/{org}/api/auth/callback

    Google uses the redirect URL your application documents. Paste the copied URL so the scheme, host, path, and any trailing slash match.

  4. Click Create. Copy the Client ID. In Client secrets, copy the client secret and store it. Google shows the secret once.

Cloud Run MCP scopes:

  • https://www.googleapis.com/auth/run — read and modify. The server advertises this scope.
  • https://www.googleapis.com/auth/run.readonly — read data only.

A tool call can also need another scope on a resource it touches. Google lists those with the Cloud Run Admin API.

Set up Willow​

  1. Go to MCP Servers → + Add MCP server, open the Google Cloud Run card with the Official badge, and click + Use.
  2. Keep OAuth sign-in. Select Client ID & secret.
  3. Paste the Client ID and Client Secret.
  4. Open Advanced settings. Under Scopes, add https://www.googleapis.com/auth/run, or https://www.googleapis.com/auth/run.readonly when the agent should only read. With your own OAuth client, Willow requests only the scopes listed there.
  5. Save, then click Check connection and sign in with a Google account that has the roles above. Assign groups and Publish.

Troubleshooting​

Automatic discovery fails​

Cause: This server has no dynamic client registration and no client ID metadata document.

Solution: Select Client ID & secret, paste the client you created, and add a Cloud Run scope under Advanced settings.

Google reports redirect_uri_mismatch​

Cause: The authorized redirect URI and the URL Willow sent differ.

Solution: Copy the URL from the Setup tab again and add that value under Authorized redirect URIs. Scheme, host, path, and trailing slash all have to match.

Sign-in is rejected for the scope​

Cause: Scopes is empty, so Willow sends no scope. On an External app, the scope is missing from Data Access, or the Google account is not a test user.

Solution: Add https://www.googleapis.com/auth/run (or https://www.googleapis.com/auth/run.readonly) under Advanced settings → Scopes. On an External app, add that same scope under Data Access and add the person under Test users.

A tool call returns a permission error​

Cause: The signed-in account is missing mcp.tools.call, a Cloud Run permission such as run.services.list or run.services.create, or artifactregistry.repositories.downloadArtifacts.

Solution: Grant MCP Tool User and the Cloud Run roles in Before you start on the project, then grant any further permission the error names.

Additional Resources​