# API Gateway

API Gateway turns a Swagger/OpenAPI spec into tools an MCP client can use to call an API. Connect it when you want to work with an API from Claude Code or another supported client.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI
- Author: rflpazini
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/rflpazini/mcp-api-gateway
- Updated: 2026-10-29
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/api-gateway

## What it does

The server builds tools from a Swagger/OpenAPI specification. Environment variables set the API name and spec URL; you can also provide a base URL and authorization headers. A single server configuration can cover multiple APIs.

For large APIs, group tools by resource or tag, use compact schemas, and filter paths or parameters. Set these options with `API_N_TOOL_MODE`, `API_N_SCHEMA_MODE`, and related variables. The Docker setup needs a spec URL, since that is what the server uses to create its tools.

The project describes installation through Docker MCP Toolkit, Docker Hub, `npx`, or a local build. Its Docker Hub example uses `claude_desktop_config.json`, so Claude Code users will need to connect the MCP server through their client configuration.

## Requirements
- Needs: Docker

## Install

### Claude Code (native platform)

**Install**
- The MCP registry has no launch command for it: see the repository README

## When to use it
- generate API tools from an OpenAPI spec
- connect several APIs through one MCP server
- send API authorization headers with requests
- group tools for a large API
- filter which API paths and parameters are exposed

## Example prompts
- Call the users API and show active accounts.
- Fetch order details from the connected API.
- Send a request to the products API with its authorization header.

## Similar
- [api-gateway-mcp-server](https://affpapa.org/en/nevibecode/skills/api-gateway-mcp-server.md) — skill · 499 installs
- [api-gateway-backend-security-and-rate-limiting](https://affpapa.org/en/nevibecode/skills/api-gateway-backend-security-and-rate-limiting.md) — skill · 360 installs
- [gateway](https://affpapa.org/en/nevibecode/skills/gateway.md) — skill · 101 installs
- [api-gateway](https://affpapa.org/en/nevibecode/skills/api-gateway.md) — skill · 1400 installs
- [api-testing-observability](https://affpapa.org/en/nevibecode/plugins/api-testing-observability.md) — plugin · ★ 42780 repo stars
- [public-api-design-review](https://affpapa.org/en/nevibecode/skills/public-api-design-review.md) — skill · 10200 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
