Google Vertex AI
Google hosts the Gemini Enterprise Agent Platform MCP server at a separate URL for each toolset, such as https://aiplatform.googleapis.com/mcp/generate, over streamable HTTP. The Official card fills https://aiplatform.googleapis.com/mcp/ from the Toolset you pick. The default is Generate. It is the Google Vertex AI card with the Official badge.
The server is available once the Gemini Enterprise Agent Platform API is enabled on the project. The card uses the global host. Regional hosts are listed in the MCP reference.
Before you start
- A Google Cloud project with the Gemini Enterprise Agent Platform API enabled. Enabling an API needs the Owner role or Service Usage Admin (
roles/serviceusage.serviceUsageAdmin). - On that project, the account that owns the token needs:
- MCP Tool User (
roles/mcp.toolUser) —mcp.tools.call - Agent Platform User (
roles/aiplatform.user)
- MCP Tool User (
- The token needs one of these scopes:
https://www.googleapis.com/auth/aiplatformorhttps://www.googleapis.com/auth/cloud-platform.
Some tasks also use other products, such as Cloud Storage or Artifact Registry. Those products need their own setup.
Set up Willow
-
Go to MCP Servers → + Add MCP server, open the Google Vertex AI card with the Official badge, and click + Use.
-
Pick a Toolset. Each toolset is its own endpoint. Google lists them in the MCP reference.
-
Keep API key. Each person pastes their own Google Cloud access token. Create one with:
gcloud auth print-access-tokenThe token expires after 1 hour. Google lets you extend it to 12 hours with
--lifetime. -
Open Settings → MCP Configuration. Add a Bearer header with Insert API key header, then set the project header. Leave
urlas the card filled it, including the toolset:"headers": {"Authorization": "Bearer {{apiKey}}","x-goog-user-project": "PROJECT_ID"}Replace
PROJECT_IDwith the project ID. People paste only the token. TheBearerprefix stays in this header. -
Click Check connection. Assign groups and Publish.
tools/list does not require a token, so a successful check can still be followed by a failed tool call.
Agent Platform also accepts an express-mode API key or an API key bound to a service account. Send that key as X-Goog-Api-Key. A standard API key with no service account has no IAM principal, and Agent Platform rejects it.
Troubleshooting
Google rejects the credential
Cause: The value is a standard API key, or the Authorization header has no Bearer prefix.
Solution: Paste a token from gcloud auth print-access-token, and set Authorization to Bearer {{apiKey}}. For an express-mode key or a service-account-bound key, send it as X-Goog-Api-Key.
A tool call returns a permission error
Cause: The account is missing MCP Tool User or Agent Platform User, or the token is missing https://www.googleapis.com/auth/aiplatform or https://www.googleapis.com/auth/cloud-platform.
Solution: Grant both roles on the project, then create a new token that includes one of those scopes.
The token stops working
Cause: Access tokens expire. The default lifetime is 1 hour.
Solution: Create a new token and paste it again.