
Google Cloud API GatewayでREST APIをMCPツールに変換Turn your REST APIs into MCP tools with Google Cloud API Gateway
匿名の公開いいねです。記事の保存・お気に入りではなく、Featured、Top 3、重要度、掲載順位には影響しません。仕組みとプライバシーAnonymous public likes are reactions, not saved articles or bookmarks. They do not affect Featured, Top 3, importance, or listing order.How it works and privacy
- Google Cloud API GatewayがネイティブのリモートMCPサーバーに対応し、OpenAPI 3.xへの専用アノテーション追加だけでREST操作をツール化します。
- 既存の認証、クォータ、ログを保ったまま、開発者はAIエージェント連携を簡素化できます。
Google Cloud API Gateway now provides native remote MCP serving, mapping annotated OpenAPI 3.x REST operations to tools so developers can reuse authentication, quotas, and logging.
本ページの本文と要約は AI による自動生成です。日本語版と英語版は言語ごとに独立して生成されるため、表現や詳しさが異なる場合があります。正確性は元記事 (developers.googleblog.com) をご確認ください。The body and summaries are AI-generated independently for each language, so wording and detail may differ. Verify accuracy at the original source (developers.googleblog.com).
要約と収集メタデータに基づく AI 解説。元記事全文の転載・翻訳ではありません。AI explainer based on the summaries and collected metadata, not a copy or translation of the full source article.
ネイティブMCP
Google Cloud API Gatewayが、ネイティブのリモートModel Context Protocol(MCP)サーバーとして動作するようになった。既存のREST APIをAIエージェントから利用可能なツールへ変換でき、専用のミドルウェアを新たに構築、保守する必要をなくせる点が重要となる。
OpenAPI 3.x
変換には、既存のOpenAPI 3.x仕様へ「x-google-api-management.mcp」などの専用アノテーションを追加する。これにより、標準的なREST操作を、AIエージェントが発見して利用できるツールとして公開できる。REST API自体を別の形式で作り直すのではなく、既存のAPI定義に情報を加えることでMCP向けのツールとして扱えるようにする仕組みだ。
JSON-RPC変換
API Gatewayは、受信したMCPのJSON-RPCリクエストをREST呼び出しへ自動的に変換する。AIエージェント側からはMCPツールとしてアクセスしつつ、背後では対応する既存のREST操作が呼び出される。この変換をゲートウェイが担うため、MCPとRESTの間を接続する独自の中間処理を用意せずに連携できる。
認証とクォータ
エージェントからのトラフィックにも、既存の認証、クォータ、ログに関するポリシーがそのまま適用される。MCP対応のために別の認証経路やログ基盤を設けるのではなく、REST APIで利用している管理設定を再利用できる。新しいインフラを必要とせず、API Gateway上でREST操作のツール化とアクセス管理をまとめて扱える構成となる。
Native remote MCP server
Google Cloud API Gateway can now act as a native remote Model Context Protocol server, allowing existing REST APIs to be exposed to AI agents as MCP tools. This matters because developers no longer need to build and maintain custom middleware solely to connect those APIs with agents.
The gateway handles the protocol conversion itself. Incoming MCP requests use JSON-RPC, and API Gateway automatically transcodes those requests into calls to the corresponding REST operations. This provides a direct way to make REST functionality available through MCP without adding separate infrastructure for the translation layer.
Annotated OpenAPI 3.x operations
Developers enable the conversion by adding specific annotations to existing OpenAPI 3.x specifications. One such annotation is x-google-api-management.mcp.
With these annotations in place, standard REST operations can be mapped to discoverable, agent-ready tools. The existing API specification therefore supplies the REST operations that are exposed, while the added MCP annotations identify how those operations should be made available to agents.
According to the announcement, this process can convert annotated REST operations into MCP tools immediately. The approach centers on modifying the API specification rather than creating and operating custom middleware for each integration.
Authentication, quotas, and logging
Agent traffic continues to use the policies already applied through Google Cloud API Gateway. Existing authentication, quota, and logging policies carry over when MCP requests are transcoded into REST calls.
As a result, developers can expose REST operations to AI agents while retaining the controls and records already associated with those APIs. Authentication remains in effect, quotas continue to govern usage, and logging continues to capture traffic through the gateway.
The native MCP server capability combines tool discovery, MCP-to-REST transcoding, and reuse of existing gateway policies. It simplifies AI agent integration without requiring new infrastructure or a separately maintained middleware layer.
ポコとTECHガイドPoko & TECH Guide
ポコと当サイトのTECHガイドが、記事の要約と収集した情報から読みどころを語るAI生成の対話です。Poko and TECH Dashboard's own TECH Guide discuss the article's highlights in an AI-generated conversation based on its summary and collected source details.
- ポコPoko専用アノテーションを足すだけで、REST APIがAI向けツールになるんだ! これって大きい変化?Just adding a special annotation turns a REST API into an AI-ready tool? That sounds like a big change—is it?
- TECHガイドTECH Guideこの記事では、専用の中継プログラムを作って保守する手間が不要になる位置づけじゃ。既存の仕組みを生かせるのが大きいのう。The article frames it as removing the need to build and maintain custom middleware. The big benefit is reusing what developers already have.
- ポコPokoMCPのJSON-RPCをREST呼び出しに変換するって、つまりどういうこと?It converts MCP JSON-RPC into REST calls—what does that actually mean?
- TECHガイドTECH GuideMCPはAIとツールがやり取りする共通ルールのようなものじゃ。ここではGatewayが、その依頼をREST API向けに自動で言い換えるんじゃよ。MCP is like a shared set of rules for AI systems and tools. Here, the gateway automatically translates those requests into calls the REST API understands.
- ポコPokoじゃあ自分のREST APIも、AIエージェントから使える道具にしてみたい! 認証やログもそのままなら助かりそう。Then I’d try making my own REST API available to an AI agent! Keeping the existing authentication and logs would be really handy.
- TECHガイドTECH Guide必要なのはOpenAPI 3.xの仕様に専用アノテーションを加えることじゃ。紹介された範囲では、認証・クォータ・ログを保ったまま連携できるぞ。The stated requirement is adding the dedicated annotation to an OpenAPI 3.x specification. As described, authentication, quotas, and logging continue to apply to agent traffic.



