---
title: "Turn your REST APIs into MCP tools with Google Cloud API Gateway"
description: "Most enterprise REST APIs are invisible to AI agents, forcing teams to run separate MCP servers that duplicate their existing gateway logic. Google Cloud API Gateway in Public Preview solves this by acting as a remote MCP server — annotate the OpenAPI 3.0.x/3.1.x spec with x-google-api-management.mcp and deploy it with no extra infrastructure. The gateway accepts MCP JSON-RPC requests on a single /mcp endpoint, transcodes tools/call into the corresponding REST call, runs it through existing policies, and returns the response as an MCP result. Authentication via JWT or API key works unchanged for REST operations; tools/list is unauthenticated by default and requires JWT in production for security. With no separate server to operate, teams in Public Preview can expose up to 1,000 tools per gateway that support existing authentication and quota, and the MCP server is automatically discoverable via API hub and Agent Registry."
---

# Turn your REST APIs into MCP tools with Google Cloud API Gateway

[Google](https://yomu.fyi/company/google) · Sanjay Pujare, Paul Howell · Sep 24, 2026

**Type:** Announcement

## Summary

Most enterprise REST APIs are invisible to AI agents, forcing teams to run separate MCP servers that duplicate their existing gateway logic. Google Cloud API Gateway in Public Preview solves this by acting as a remote MCP server — annotate the OpenAPI 3.0.x/3.1.x spec with x-google-api-management.mcp and deploy it with no extra infrastructure. The gateway accepts MCP JSON-RPC requests on a single /mcp endpoint, transcodes tools/call into the corresponding REST call, runs it through existing policies, and returns the response as an MCP result. Authentication via JWT or API key works unchanged for REST operations; tools/list is unauthenticated by default and requires JWT in production for security. With no separate server to operate, teams in Public Preview can expose up to 1,000 tools per gateway that support existing authentication and quota, and the MCP server is automatically discoverable via API hub and Agent Registry.

## Context

Most enterprise APIs are REST-based and not natively discoverable by AI agents; teams must build separate MCP servers that duplicate routing, authentication, and quota logic.

## Approach / What changed

Annotate an existing OpenAPI 3.0.x or 3.1.x spec with x-google-api-management.mcp set to true, optionally customize per-operation with x-google-mcp-tool, then deploy the API config to Google Cloud API Gateway. The gateway serves MCP endpoints at /mcp, transcoding JSON-RPC requests into REST calls with existing policies.

## Takeaways

- Google Cloud API Gateway can act as a remote MCP server, eliminating the need to build and host separate infrastructure. Simply annotate the OpenAPI spec with x-google-api-management.mcp and deploy.
- MCP and REST traffic share the same authentication, quota, and logging policies. tools/call enforces the underlying REST auth; tools/list is unauthenticated by default and requires JWT in production.
- Public Preview limitations: OpenAPI 2.0 not supported; empty body responses (HTTP 204) excluded; max 1,000 tools per gateway; deeply nested schemas may not render fully; MCP and model routing cannot coexist in one config.

## FAQ

### How to expose an existing REST API as MCP tools?

Annotate your OpenAPI 3.0.x or 3.1.x spec with x-google-api-management.mcp set to true, and optionally set per-operation x-google-mcp-tool with name and description. Deploy the config to API Gateway; the gateway automatically serves MCP on the /mcp path.

### How does authentication work for MCP methods?

tools/call inherits the underlying REST operation's authentication (JWT or API key) unchanged. tools/list is unauthenticated by default; for production, configure tools-list security with a JWT. API keys cannot secure tools/list.

### Are there any limitations in the Public Preview?

Yes. OpenAPI 2.0 is not supported. Operations with empty bodies (HTTP 204) are not exposed. A gateway serves up to 1,000 tools. Deeply nested object schemas may not fully render in tools/list. MCP and model routing cannot be enabled in the same API config.

**Tags:** [API](https://yomu.fyi/topic/api), [API Gateway](https://yomu.fyi/topic/api-gateway), [Google Cloud](https://yomu.fyi/topic/gcp), [MCP](https://yomu.fyi/topic/mcp), [OpenAPI](https://yomu.fyi/topic/openapi)

- Source: [Google](https://developers.googleblog.com/turn-your-rest-apis-into-mcp-tools-with-google-cloud-api-gateway)
- Source URL: https://developers.googleblog.com/turn-your-rest-apis-into-mcp-tools-with-google-cloud-api-gateway
- Ingested by Yomu: 2026-09-24T18:00:13.892Z

[Read original post](https://developers.googleblog.com/turn-your-rest-apis-into-mcp-tools-with-google-cloud-api-gateway)
