api-gateway-mcp-server
Skill by google
Configures Google Cloud API Gateway as a remote MCP server (Public Preview) that exposes REST APIs as agent tools over HTTP. Aimed at developers who annotate OpenAPI 3.x specs, secure tools/list, and connect Google ADK.
Install api-gateway-mcp-server
Built from the published package, never by AI.
git clone --depth 1 https://github.com/google/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/cloud/api-gateway-mcp-server ~/.claude/skills/api-gateway-mcp-serverRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/google/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/cloud/api-gateway-mcp-server ~/.gemini/antigravity-cli/skills/api-gateway-mcp-serverAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install api-gateway-mcp-server in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill configures Google Cloud API Gateway to act as a remote Model Context Protocol (MCP) server, currently in Public Preview. It exposes existing REST APIs as agent tools over HTTP at POST /mcp. By annotating an OpenAPI 3.x spec with x-google-api-management.mcp and x-google-mcp-tool, API Gateway translates MCP JSON-RPC 2.0 requests into REST calls to the backend, while existing authentication and quota policies still apply.
The skill covers migrating OpenAPI 2.0 specs to 3.x, securing tools/list with JWTs or API keys, and connecting Google ADK (McpToolset) with API hub and Agent Registry. It also helps troubleshoot MCP JSON-RPC errors. It is aimed at developers who want to expose Google Cloud API Gateway APIs to AI agents. It does not cover Apigee X proxy bundles, outbound LLM model routing, or GKE Gateway API.
Written from the project's SKILL.md and checked against it.
What it can do
- Convert OpenAPI specsMigrates OpenAPI 2.0 specs to OpenAPI 3.x for use as MCP tools.
- Annotate toolsUses x-google-mcp-tool to set tool names and descriptions for LLM tool selection.
- Secure tools/listAdds exactly one JWT or API key scheme to protect the tools/list method.
- Hide internal routesOpts admin operations out of MCP with x-google-mcp-tool: false.
- Connect Google ADKConnects McpToolset (StreamableHTTPConnectionParams) to the MCP server.
- Discover in API hubShows the MCP server in API hub and Agent Registry after the project is attached.
- Troubleshoot MCP errorsHelps resolve JSON-RPC errors such as -32601, -32602 and -32000.
What you need
- Google Cloud CLI installed
- Google Cloud project with an active billing account
- Python 3.10 or later with PyYAML for the validator script
- gcloud authentication (gcloud auth login)
Try asking
- Convert my OpenAPI 2.0 spec to 3.x and expose it as MCP tools
- Secure the tools/list method on my API Gateway MCP server with a JWT
- Connect my API Gateway MCP server to Google ADK using McpToolset
Good to know
- Remote MCP server support is in Public Preview.
- MCP is not supported for OpenAPI 2.0 specs.
- Only GET, POST, PUT, PATCH and DELETE operations can be tools, up to 1,000 per gateway.
- Tools cannot return HTTP 204, and MCP and model routing cannot share one API config.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/cloud/api-gateway-mcp-server/SKILL.md, skills/cloud/api-gateway-mcp-server/scripts/validate_mcp_openapi.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md20 KB -
references/adk-and-api-hub-discovery.md7 KB -
references/attribution.md2 KB -
references/mcp-limitations-and-troubleshooting.md11 KB -
references/openapi-agent-tool-optimizer.md6 KB
Show all 7 files
-
references/openapi-v2-to-v3-mcp-migration.md17 KB -
scripts/validate_mcp_openapi.py22 KB
Alternatives to api-gateway-mcp-server
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
api-gateway-mcp-server: common questions
What endpoint does the MCP server use?
The MCP endpoint is POST https://{default_hostname}/mcp, at the host root even when the spec sets a servers base path.
Does it work with OpenAPI 2.0 specs?
No. MCP is not supported for OpenAPI 2.0, so the spec must be converted to OpenAPI 3.0.x or 3.1.x first.
Is tools/list secured by default?
No. tools/list is unauthenticated by default and can be protected with exactly one JWT or API key scheme.
How do I install api-gateway-mcp-server?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is api-gateway-mcp-server free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is api-gateway-mcp-server safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to api-gateway-mcp-server?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
