The Production-Grade Wrapper for MCP

A robust FastAPI-based wrapper that exposes any Model Context Protocol (MCP) server over plain HTTP/JSON. This project is engineered for enterprise production use, focusing on security, scalability, and ease of integration.

Get Started
Screenshot of the Enterprise MCP Bridge example deployment with application, jaeger, grafana and keycloak

Why this project?

Most existing MCP examples are designed for local development or simple demos and fall short for real-world applications. They are typically:

  • Single-user CLI processes: Driven by a local client.
  • Ephemeral: State is lost as soon as the process ends.
  • Lacking multi-tenancy: No built-in orchestration for concurrent users or sessions.
  • Hard to control: Lack of integration into enterprise monitoring tools.
  • No simple integration: For MCP components into REST-based microservice architectures.
  • Missing a consistent security model: For handling delegated permissions (e.g., OAuth) for downstream resources.

This project directly addresses these gaps. It's designed for enterprise production use, with a focus on security, scalability, and ease of integration. For small private deployments, it's probably not the right fit.

Robust Session & User Management

  • Multi-User & Multi-Session: Securely manage multiple isolated user contexts and concurrent sessions.
  • Stateful & Stateless Modes: Supports both stateless "fire-and-forget" calls and stateful sessions.
  • Lifecycle & Resource Hygiene: Explicit endpoints for session management and automatic cleanup of idle sessions.
  • Pluggable for Scalability: Session manager is swappable for distributed backends like Redis.

Integrated Security & Authentication

  • Centralized hosting of the MCP server: The server can be hosted in a centralized manner, allowing multiple clients to connect and interact with it concurrently, while your IT manages the underlying infrastructure, permissions and monitors it.
  • Built-in OAuth2: Natively handles OAuth2 token exchange with brokers like Keycloak.
  • Automatic Token Injection: Securely injects tokens into tool calls, simplifying client logic.
  • Automated Token Refresh: Manages token refresh transparently for long-lived, secure sessions.

Developer Experience & API Design

  • REST-first Interface: All tool discovery and invocation happen over standard HTTP/JSON.
  • Automatic Tool Endpoints: Each MCP tool is automatically mapped to a canonical REST endpoint.
  • Structured Error Handling: Maps MCP errors to standard HTTP status codes.
  • Auto-Generated API Docs: Built on FastAPI, providing interactive OpenAPI (Swagger) and ReDoc documentation.
  • Containerized Deployment: Designed for Docker and Kubernetes with structured logging and monitoring.