MCP Gateway
Reverse proxy and management layer for Model Context Protocol servers that provides stateless routing, authorization and lifecycle management in Kubernetes.
At a Glance
About MCP Gateway
MCP Gateway is an open-source project from Microsoft that acts as a reverse proxy and management layer for Model Context Protocol (MCP) servers running in Kubernetes. It combines a data gateway that routes each MCP request independently with a control plane for deploying, updating and deleting MCP servers. The current version requires MCP 2026-07-28 clients and adapters and does not provide legacy initialization, transport sessions or protocol downgrade.
What It Is
MCP Gateway sits between agents or MCP clients and the MCP servers they call. MCP servers are represented as adapters, managed through a RESTful control plane, and reached through per-adapter endpoints. Registered tools can also be reached through a single tool gateway router endpoint. Resource metadata is stored in Redis for local Kubernetes or Cosmos DB in the cloud.
How Routing and Management Work
Developers deploy an MCP server with a POST to the adapters API, then check its status and logs, update it or remove it. Clients send independent MCP requests to the adapter's MCP endpoint, and each request carries its own protocol metadata and is authorized separately.
Tools are registered with a container image, an MCP tool definition (name, description, input schema), an execution endpoint and deployment settings. The tool gateway router is itself an MCP server that runs as multiple instances. It reads the tool call in each request and forwards it to the matching registered tool server.
Access Control and Management Portal
The gateway supports Entra ID authentication and application-role authorization. Read access goes to the resource creator, principals holding configured required roles, and holders of the mcp.admin role. Write access is limited to the creator and mcp.admin. A React management portal served by the gateway lets users list, create, edit and delete adapters and tools, inspect status and pod logs, and test servers in a JSON-RPC console.
Agents and Sessions (Preview)
An opt-in preview subsystem runs LLM-driven agents that call registered MCP tools and other agents. It is enabled by configuring a Foundry endpoint, and sessions stream events over Server-Sent Events. The documentation says it is intended for evaluation and single-pod deployments. Built-in bash and file tools are disabled.
Setup Path
A local deployment uses the .NET 8 SDK, Docker Desktop with Kubernetes and a local registry. A cloud path deploys Azure infrastructure including AKS, Cosmos DB, Container Registry, Application Gateway and Application Insights, using an Entra ID app registration.
Community Discussions
Be the first to start a conversation about MCP Gateway
Share your experience with MCP Gateway, ask questions, or help others learn from your insights.
Pricing
Open Source (MIT)
Self-hosted MCP Gateway core released under the MIT License; Azure/Kubernetes infrastructure costs are external.
- MIT License
- Reverse proxy and management layer for MCP servers in Kubernetes
- Data gateway and control plane with adapters and tool routing
- Telemetry, access control and observability integration points
Capabilities
Key Features
- Reverse proxy for MCP servers with stateless per-request routing
- Control plane REST API for deploying, updating, deleting and monitoring MCP server adapters
- Tool registration with MCP tool definitions and dynamic routing via a tool gateway router
- Entra ID authentication with role-based read/write authorization
- React management portal with in-browser JSON-RPC test console
- Proxying of local and remote MCP servers
- Kubernetes-native deployment using StatefulSets and headless services
- One-click and scripted Azure deployment
- Preview agents and sessions streaming events over SSE
- OpenAPI definition for the management API
