by microsoft
MCP Gateway is a reverse proxy and management layer for MCP servers, enabling scalable, session-aware stateful routing and lifecycle management of MCP servers in Kubernetes environments.
# Add to your Claude Code skills
git clone https://github.com/microsoft/mcp-gatewayGuides for using mcp servers skills like mcp-gateway.
mcp-gateway is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by microsoft. MCP Gateway is a reverse proxy and management layer for MCP servers, enabling scalable, session-aware stateful routing and lifecycle management of MCP servers in Kubernetes environments. It has 928 GitHub stars.
mcp-gateway's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/microsoft/mcp-gateway" and add it to your Claude Code skills directory (see the Installation section above).
mcp-gateway is primarily written in C#. It is open-source under microsoft on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh mcp-gateway against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
MCP Gateway is a reverse proxy and management layer for Model Context Protocol (MCP) servers, enabling scalable, stateless request routing, authorization and lifecycle management of MCP servers in Kubernetes environments.
Breaking change: this version requires MCP
2026-07-28clients and adapters. It does not provide legacy initialization, transport sessions, or protocol downgrade. See the migration guide for client requirements, request examples, deployment settings, and rollback considerations.
This project provides:
/adapters scope. Designed to coexist with other resource types (e.g., /agents) in a unified AI development platform.session_id query alias do not determine routing.FoundrySettings:Endpoint is configured.flowchart LR
subgraph Clients[" "]
direction TB
DataClient["π Agent/MCP<br>Data Client"]
MgmtClient["βοΈ Management<br>Client"]
end
subgraph Gateway["MCP Gateway"]
direction TB
subgraph Auth1["Authentication & Authorization"]
Auth["π Data Plane Auth<br>Bearer Token / RBAC"]
Auth2["π Control Plane Auth<br>Bearer Token / RBAC"]
end
subgraph DataPlane["Data Plane"]
Routing["π Adapter Routing<br>/adapters/{name}/mcp"]
ToolRouting["π Tool Router Gateway<br>/mcp"]
end
subgraph ControlPlane["Control Plane"]
direction LR
AdapterMgmt["π¦ Adapter Management<br>/adapters CRUD"]
ToolMgmt["π§ Tool Management<br>/tools CRUD"]
end
subgraph Management["Backend Services"]
DeploymentMgmt["βΈοΈ Deployment Manager"]
MetadataMgmt["π Metadata Manager"]
end
end
subgraph Cluster["Kubernetes Cluster"]
direction TB
subgraph ServerRow[" "]
direction LR
subgraph MCPServers["MCP Servers"]
direction TB
PodA["mcp-a-0"]
PodA1["mcp-a-1"]
PodB["mcp-b-0"]
end
subgraph ToolRouters["Tool Gateway Routers"]
direction TB
Router1["toolgateway-0"]
Router2["toolgateway-1"]
end
end
subgraph ToolServers["Registered Tool Servers"]
direction LR
Tool1["tool-1-0"]
Tool2["tool-2-0"]
end
end
Metadata[("πΎ Metadata Store<br>Server & Tool Info")]
DataClient -->|"MCP Requests"| Auth
MgmtClient -->|"API Calls"| Auth2
Auth --> Routing
Auth --> ToolRouting
Auth2 --> AdapterMgmt
Auth2 --> ToolMgmt
AdapterMgmt & ToolMgmt --> DeploymentMgmt
AdapterMgmt & ToolMgmt --> MetadataMgmt
Routing -.->|"Per-Request Routing"| MCPServers
ToolRouting -.->|"Per-Request Routing"| ToolRouters
ToolRouters ==>|"Dynamic Routing"| ToolServers
DeploymentMgmt -->|"Deploy & Monitor"| Cluster
MetadataMgmt <-->|"Read/Write"| Metadata
style Gateway fill:#e1f5ff
style Cluster fill:#fff4e1
style Metadata fill:#f0f0f0
POST /adapters β Deploy and register a new MCP server.GET /adapters β List all MCP servers the user can access.GET /adapters/{name} β Retrieve metadata for a specific adapter.GET /adapters/{name}/status β Check the deployment status.GET /adapters/{name}/logs β Access the server's running logs.PUT /adapters/{name} β Update the deployment.DELETE /adapters/{name} β Remove the server.POST /tools β Register and deploy a tool with MCP tool definition metadata.GET /tools β List all registered tools the user can access.GET /tools/{name} β Retrieve metadata and tool definition for a specific tool.GET /tools/{name}/status β Check the tool deployment status.GET /tools/{name}/logs β Access the tool server's running logs.PUT /tools/{name} β Update a tool deployment and definition.DELETE /tools/{name} β Remove a registered tool.Available only when FoundrySettings:Endpoint is configured. See Agents and Sessions below for details.
POST /agents, GET /agents, GET|PUT|DELETE /agents/{name} β CRUD for agent definitions.POST /sessions, GET /sessions, GET|DELETE /sessions/{id} β CRUD for sessions.POST /sessions/run β Start a session and stream events (SSE).POST /sessions/{id}/messages β Continue an existing session with a new user message; streams events (SSE).POST /adapters/{name}/mcp β Send an independent MCP request; receive JSON or request-scoped SSE.POST /mcp β Route requests to the tool gateway router, which dynamically routes to registered tools based on tool definitions. The router itself is an MCP server with multiple instances hosted behind the gateway for scalability.The gateway provides entra id authentication and basic application role authorization for mcp servers and tools:
requiredRoles values (for example mcp.engineer), and anyone holding the mandatory administrator role mcp.admin. When requiredRoles is empty or omitted, only the creator and mcp.admin principals can read the resource.mcp.admin role.For step-by-step guidance on configuring Azure Entra ID (creating mcp.admin and other role values, assigning them to users or service principals, and supplying those values in adapter/tool payloads), see docs/entra-app-roles.md.
/portal/ β list / create / edit / delete adapters and
tools, inspect status and pod logs, and exercise each MCP server with an
in-browser JSON-RPC test console. Authentication mirrors the API: anonymous
in dev mode (with an optional dev-identity switcher) and MSAL / Entra ID in
cloud mode, so every list call already filters down to the resources the
signed-in user is allowed to see.The MCP Gateway now supports tool registration with dynamic routing capabilities, enabling a scalable architecture for managing and executing MCP tools.
Tool Registration: Developers register tools via the /tools API endpoint, providing:
Tool Gateway Router: A specialized MCP server that acts as an intelligent router:
POST /mcp endpoint (without adapter name)Dynamic Routing: When clients send MCP requests to /mcp:
**Preview / single-repl