Companies that want an AI agent to check an order status or pull account data usually have that information locked behind a REST API the agent cannot call directly. Making it callable has typically meant building and running a separate MCP server that duplicates routing, authentication, and quota rules the company’s existing API gateway already enforces. Google Cloud’s developer blog describes a change to API Gateway meant to remove that duplicate work.
The Model Context Protocol, or MCP, is a shared format that lets AI agents discover and call external tools without custom integration code for each one. Google Cloud explains that frameworks such as the Agent Development Kit and Gemini Enterprise already communicate using MCP, which is why exposing REST APIs through it has become a common request from teams building agents.
What Changed in API Gateway
Google Cloud’s API Gateway can now act as a remote MCP server while still running the same REST backend it always has, according to the company’s announcement. The feature is in Public Preview, meaning it is available for testing but not necessarily finalized for production use, and Google Cloud advises checking current documentation for the exact scope of support.
Instead of standing up new infrastructure, developers add annotations to the OpenAPI specification they already deploy. Google Cloud’s post shows an example where a single top-level flag, called x-google-api-management.mcp, opts an entire spec into MCP support, while a per-operation annotation named x-google-mcp-tool controls the tool’s name, description, and parameters as seen by an agent. Each exposed operation needs a backend defined and a written description, since Google Cloud notes that the description is the main signal a language model uses to decide when to call a given tool.
How Requests Actually Flow
Google Cloud describes API Gateway accepting standard MCP JSON-RPC requests at a single endpoint, then transcoding each tool call into the equivalent REST request before applying the same policies already configured for that API. Because the resulting request looks identical to a normal REST call, existing JWT or API-key authentication, quota limits, and logging continue working without separate configuration. Google Cloud states that REST and MCP traffic share one policy path and draw from the same quota allocation regardless of which protocol triggered the call.
Deployment follows the same process teams already use: the API config is deployed as usual, and Google Cloud says the gateway automatically generates an MCP-aware configuration and begins serving requests on an /mcp path with no additional infrastructure to provision.
OpenAPI Version Matters
MCP support requires OpenAPI 3.0.x or 3.1.x specifications; Google Cloud’s documentation states that OpenAPI 2.0 is not supported, so any gateway still running a 2.0 spec needs to migrate before adopting MCP.
Connecting an Agent
Once deployed, any MCP-compatible client can connect to the gateway’s /mcp endpoint. Google Cloud’s example shows the Agent Development Kit pointing an McpToolset at that URL with the same API key or credential the gateway already expects, after which the gateway maps the tool’s arguments onto the REST request’s path, query parameters, body, and headers before returning the backend’s response as an MCP result.
Controlling Who Can See the Tools
By default, the tools/list method that lets clients discover available tools is unauthenticated, which Google Cloud flags as convenient for development but risky in production since it publishes tool names and input schemas to any caller. The company recommends requiring a JWT for discovery in production, and notes explicitly that API keys cannot be used to secure this particular method. Separately, the tools/call method that actually invokes a tool always enforces whatever authentication the underlying REST operation already requires, independent of how discovery is secured.
Checking Fit Before Adopting This
- Confirm the OpenAPI spec is already on version 3.0.x or 3.1.x, since 2.0 specs require migration first.
- Decide whether tools/list discovery needs a JWT requirement before any production rollout, since the unauthenticated default exposes tool schemas.
- Check whether any REST operations return empty bodies, such as HTTP 204 responses, since Google Cloud says these are not exposed as MCP tools.
- Review schema complexity, since Google Cloud notes deeply nested object schemas may not render fully in tools/list.
- Count planned tools against the documented ceiling of 1,000 tools per gateway.
- Note that MCP and model routing, a separate feature for outbound LLM traffic, cannot be enabled in the same API config.
Where This Fits Among Google Cloud’s Options
Google Cloud positions API Gateway as the lightweight entry point in its gateway lineup, suited to services such as those running on Cloud Run that need to be secured and exposed to agents quickly. For teams needing fuller API lifecycle management, advanced traffic policies, or monetization, the company points to Apigee as its enterprise-grade platform, which it says also supports MCP. For governing what an agent calls on outbound requests, including MCP servers like this one, Google Cloud points to a separate product called Agent Gateway.
Google Cloud also states that connecting a gateway to its API hub publishes the MCP server there with MCP-specific metadata and surfaces it in an Agent Registry, making exposed tools discoverable to other developers and agents inside an organization.
Because this capability remains in Public Preview, Google Cloud has not specified when or whether streaming responses, MCP resources and prompts, and Model Armor payload inspection—all listed as roadmap items—will reach general availability.