Govern every MCP server your teams connect through Bifrost (by Maxim AI) with tool access scoped per virtual key, per-user credentials for upstream servers, and up to 92.8% fewer input tokens on large tool sets.
[ PERFORMANCE AT A GLANCE ]
[ DEFINITION ]
An MCP gateway is a control layer between AI agents or MCP clients and the MCP servers they call, applying authentication, tool access policy, guardrails, and logging to every tool call.
[ OVERVIEW ]
Agents and clients connect to one endpoint, and the gateway discovers tools from each connected server over STDIO, HTTP, or SSE. Most enterprises weigh four approaches.
| Approach | Where tool policy lives | Upstream credentials | Typical fit |
|---|---|---|---|
| Dedicated MCP gateway (Bifrost) | One gateway, scoped per virtual key | Held at the gateway, shared or per user | Enterprise teams that need unified access to many servers on one endpoint, with audit-ready logs |
| Direct client-to-server connections | Each client's configuration file | Stored in every client | One team, a few servers, early pilots |
| General-purpose API gateway | HTTP routes and request-level auth | Gateway API keys | REST traffic; tool-level MCP policy depends on the product |
| In-house aggregation service | Code your team maintains | Your implementation | Teams that accept owning protocol and auth updates |
[ THE PROBLEM ]
Direct connections are a reasonable choice for one agent and a few servers, and they become harder to govern as teams and servers multiply (see the MCP security risks this creates).
Each agent and developer machine holds its own MCP server tokens, so rotation and revocation happen client by client.
Every tool a server exposes is visible to every caller, so a customer-facing agent can reach internal admin tools.
Agents connected to many servers send every MCP tool schema each turn, so input token spend grows.
Without one log of caller, tool, and result, security reviews reconstruct activity from each MCP server separately.
[ BUYING CRITERIA ]
Start with deployment and tool-level access, because the data path and the permission model are the hardest decisions to reverse after rollout. The MCP authentication and MCP OAuth explainers cover the protocol side of the auth rows.
| Decision area | What to check | Why it matters |
|---|---|---|
| Deployment and data path | Self-hosted, in-VPC, on-premise, or SaaS | Tool arguments and results often carry internal data that must stay in your network |
| Tool-level access control | Allow-lists per key, team, or customer, with deny by default | Server-level access exposes every tool on a server to every caller |
| Upstream authentication | Shared OAuth, per-user OAuth, per-user headers, token exchange | A shared admin token gives every caller the same upstream permissions |
| Execution control | Explicit approval by default, opt-in auto-execution per tool | Agents that run every tool automatically can take unreviewed write actions |
| Guardrails on tool calls | Checks on arguments before execution and on results after | Tool results can carry PII, secrets, or injected instructions back to the model |
| Token cost at scale | How tool definitions reach the model as servers are added | Context filled with tool schemas raises cost and latency on every request |
| Audit and observability | Tool-level logs, configuration audit trail, export | Security and finance need to attribute tool activity to a caller and team |
| Model traffic | Whether model and tool calls share one policy and one log | Separate layers mean two policy sets and two audit trails to reconcile |
[ FEATURE COMPARISON ]
The five MCP gateways below are the options enterprise platform teams shortlist most often, compared on the buying criteria above.
| Gateway | Type | Best fit |
|---|---|---|
| Bifrost | Open source (Apache 2.0) plus Enterprise, self-hosted | Enterprises governing model calls, MCP tool calls, and agent traffic under one policy |
| Kong AI Gateway | MCP plugins on AI Gateway Enterprise | Organizations that already run Kong for API management |
| IBM ContextForge | Open source (Apache 2.0), self-hosted | Teams federating MCP, A2A, REST, and gRPC services into one catalog |
| Docker MCP Gateway | Open source (MIT) CLI plugin for Docker Desktop | Developers running containerized MCP servers from the Docker MCP Catalog |
| Amazon Bedrock AgentCore Gateway | Fully managed AWS service | AWS-native teams turning Lambda functions and APIs into agent tools |
| Feature | Bifrost | Kong AI Gateway | IBM ContextForge | Docker MCP Gateway | AgentCore Gateway |
|---|---|---|---|---|---|
| Deployment | Self-hosted, in-VPC, or air-gapped | Kong Gateway deployments with an AI Gateway Enterprise license | PyPI, Docker, or Kubernetes | Docker Desktop with MCP Toolkit, or the standalone CLI | AWS-managed, serverless |
| Model and MCP traffic in one gateway | Yes, 35+ providers and MCP tools under one policy | LLM plugins and MCP plugins run as separate request flows | Agent routing; LLM provider routing not published | MCP only | Model-based routing across providers |
| MCP transports | STDIO, HTTP, SSE | Remote MCP servers over HTTP | HTTP, WebSocket, SSE, Streamable HTTP, server-side STDIO | STDIO, SSE, streaming | MCP endpoint |
| REST APIs as MCP tools | OpenAPI servers (beta) | Converts API schemas into MCP tools | REST and gRPC to MCP | Not published | OpenAPI, Smithy, and Lambda targets |
| Tool-level access control | Allow-list per virtual key, deny by default | Per-tool ACLs by Consumer and Consumer Group | Virtual servers with selected tools | Tool allow-lists per profile | Interceptors or resource-based policies |
| Client authentication | Virtual key headers or OAuth 2.1 | AI MCP OAuth2 plugin, OpenID Connect, Key Auth | JWT bearer tokens | Not published | Inbound OAuth authorization |
| Upstream credentials | Shared, per-user OAuth, per-user headers, token exchange | Token claims forwarded as headers; tokens not passed upstream | User-scoped OAuth tokens, upstream auth header | Docker Desktop secrets, built-in OAuth flows | Credential injection per tool |
| Guardrails on tool calls | Rules on arguments and results (Enterprise) | Not published for MCP traffic | Plugins for PII filtering, deny lists, LlamaGuard | Container isolation with restricted privileges | Custom logic in request interceptors |
| Large tool catalogs | Code Mode, up to 92.8% fewer input tokens | Not published | TOON compression | Not published | Semantic tool selection |
| Execution approval | Explicit by default; Agent Mode auto-runs listed tools | Not published | Not published | Not published | Not published |
| Observability and audit | MCP logs, OpenTelemetry, signed audit logs | AI metrics, AI audit logs, logging plugins | OpenTelemetry tracing, Admin UI logs | Built-in logging and call tracing | Built-in observability and auditing |
| MCP servers on employee machines | AI Gateway + Bifrost Edge (early access) | Not published | Not published | Runs per machine; AI Governance is invite-only | Not published |
| Prebuilt integrations | MCP server directory, any STDIO or HTTP server | Dev Portal MCP servers from published APIs | 40+ plugins | Docker MCP Catalog | 1-click Salesforce, Slack, Jira, Asana, Zendesk |
Based on each vendor's public documentation as of November 2026. "Not published" means the documentation does not describe the capability; it may still exist or be on a roadmap.
[ THE QUESTIONS ]
These are the questions platform and security teams ask when comparing the best MCP gateways for their stack, with the Bifrost capability that answers each.
| Question your team is asking | How Bifrost answers it | Capability |
|---|---|---|
| Can we limit which tools each team or agent can call? | Each virtual key carries a tool allow-list; a key with no MCP configuration gets no tools | MCP Tool Filtering |
| Can one team get a curated tool set from several servers? | A Virtual MCP bundles selected tools behind one /mcp/<slug> endpoint attached to virtual keys | Virtual MCPs |
| Can each user reach SaaS MCP servers under their own account? | Per-user OAuth and per-user headers authenticate each end-user against the upstream server | Per-User OAuth |
| Can internal MCP servers trust our identity provider? | Each caller's identity token is exchanged for a short-lived token scoped to that server (Enterprise) | Token Exchange |
| How do Claude Code and Cursor connect without shared keys? | The /mcp endpoint accepts virtual key headers or OAuth 2.1 with a browser consent flow | Gateway Authentication |
| Will an agent run a destructive tool without approval? | Tool calls are suggestions by default; Agent Mode runs only tools listed for auto-execution | Tool Execution |
| Can we inspect tool arguments and results for PII or secrets? | Guardrail rules run before a tool executes and after it returns, and can redact either | MCP guardrails |
| How do we control token cost with hundreds of tools? | Code Mode exposes four generic tools, and the model writes a script that runs in a sandbox | Code Mode |
| What about MCP servers configured on employee laptops? | AI Gateway + Bifrost Edge (early access) inventories them per app and enforces allow or deny on device | MCP governance with Bifrost Edge |
| Does the gateway review code inside third-party MCP servers? | Server review belongs to your vendor and supply-chain process; the gateway limits which tools are reachable | Outside gateway scope |
Discover
A client connects to one gateway URL and receives only the tools its virtual key is allowed to see.
Authorize
Bifrost resolves the caller’s role, team, and access profile, then checks the requested tool against them.
Authenticate
The gateway attaches upstream credentials for the target MCP server, refreshing OAuth tokens as needed.
Execute
The tool runs only on explicit approval, or automatically if it is on your Agent Mode whitelist.
Record
Tool name, server, virtual key, latency, cost, and the parent LLM request are written to the audit trail.
Tool calls returned by an LLM are treated as suggestions. Nothing executes until the gateway authorizes it and your application, or an Agent Mode whitelist, approves it.
[ HOW IT WORKS ]
Agents and MCP clients send tool requests to Bifrost; Bifrost authenticates the caller, applies tool policy and guardrails, and forwards approved calls to connected MCP servers. In MCP gateway mode, Bifrost is itself the MCP server that clients reach at one MCP endpoint.
MCP clients
Bifrost MCP Gateway
Roles, virtual keys, tool scoping
OAuth 2.0 with token refresh
Every tool call recorded
MCP servers
One URL for every client. One place to scope tools, authenticate servers, and record what ran.
Developers connect once and keep the clients they already use.
/mcp URL in place of a config entry per serverPlatform teams set tool policy once and apply it to every caller.
/mcp/<slug> URL[ CORE CAPABILITIES ]
Each capability below maps to a question in the evaluation table and is configured once in the gateway, under the same AI governance model as model traffic.
Virtual MCPs bundle selected tools from several MCP servers behind one endpoint that only attached virtual keys reach.
One URL per teamTool Filtering applies allow-lists at the client, request, and virtual key levels, and a tool must pass every level.
Deny by defaultMCP Authentication supports none, headers, OAuth 2.0, per-user OAuth, per-user headers, and token exchange for each server.
Six auth typesAgent Mode runs only the tools listed in tools_to_auto_execute and returns every other tool call for approval.
Code Mode has the model write a Python script that runs in a Starlark sandbox, returning only results to context.
Up to 92.8% fewer tokensGuardrail rules inspect or redact MCP tool arguments before execution and tool results before they return to the model.
Arguments and results[ Estimated cost by tool count ]
[ COMPARISON ]
| Capability | MCP servers alone | MCP servers + Bifrost |
|---|---|---|
| Client configuration | One entry per server in each client | One /mcp endpoint, or a Virtual MCP per team |
| Upstream credentials | Stored in each client's configuration | Held at the gateway, shared or per user |
| Tool access | Every tool a server exposes | Allow-list per virtual key, deny by default |
| Execution | Decided by each client | Explicit approval by default, opt-in Agent Mode |
| Tool definitions in context | Full catalog sent each turn | Code Mode loads only the definitions a task reads |
| Content checks | Implemented per server where they exist | Guardrails on tool arguments and results |
| Records | Logs kept on each MCP server | MCP logs, OpenTelemetry traces, and signed audit events |
| Model and agent traffic | Separate integrations per provider and agent | Same gateway for models, MCP tools, and A2A agents |
A practical evaluation is to connect two or three of your MCP servers to Bifrost, scope one team’s tools through a Virtual MCP, and compare tool logs and input tokens against the direct path.
[ SETUP ]
No changes to your MCP servers and no custom client code.
Run the gateway locally or on a VM in your VPC with one command, as in the gateway quickstart.
npx -y @maximhq/bifrost # or: docker run -p 8080:8080 maximhq/bifrostRegister each server over STDIO, HTTP, or SSE, and choose which of its tools may execute.
{
"mcp": {
"client_configs": [
{
"name": "filesystem",
"connection_type": "stdio",
"stdio_config": {
"command": "npx",
"args": ["-y", "@anthropic/mcp-filesystem"],
"envs": ["HOME", "PATH"]
},
"tools_to_execute": ["*"]
},
{
"name": "web_search",
"connection_type": "http",
"connection_string": "env.WEB_SEARCH_MCP_URL",
"tools_to_execute": ["search", "fetch_url"]
}
]
}
}Give each client a virtual key, and the tools it sees are filtered to that key's allow-list.
{
"mcpServers": {
"bifrost-production": {
"url": "http://localhost:8080/mcp",
"headers": {
"Authorization": "Bearer vk_your_production_key"
}
}
}
}[ USE CASES ]
Platform teams publish one Virtual MCP per team, so each group reaches only the servers and tools it needs.
Healthcare and financial services teams run guardrails on tool results and keep tool traffic inside their VPC.
Engineering orgs connect Claude Code and other CLI coding agents to one MCP endpoint with per-developer credentials.
Product teams scope customer-facing agents to read-only tools, while internal agents keep access to admin tooling.
Teams connecting dozens of MCP servers turn on Code Mode to reduce input tokens and cost on multi-tool tasks.
IT teams add Bifrost Edge (early access) to the AI Gateway to control shadow AI MCP servers on laptops.
[ GOVERNANCE & COMPLIANCE ]
Multiple Fortune 500 companies across financial services, healthcare, technology, pharmaceuticals, and defense run Bifrost in production. Bifrost Enterprise applies one policy to model, MCP tool, and agent traffic, so the MCP gateway shares identity, audit, and deployment controls with the rest of your AI traffic.




Fine-grained roles decide who can add MCP servers, edit Virtual MCPs, or change tool policy.
Signed audit events record each MCP server connection that is added, changed, or removed, with export support.
Access profiles synced from Okta, Microsoft Entra, or any OIDC provider grant Virtual MCPs to whole roles.
Bifrost runs inside your VPC or air-gapped, so tool arguments and results stay in your environment.
[ GO DEEPER ]
[ FAQ ]
Bifrost is built for enterprises that need an MCP gateway to scope tools per caller, hold upstream credentials centrally, log every tool call, and run inside their own network. It covers each of these with virtual keys and Virtual MCPs, per-user OAuth and token exchange, MCP logs, and in-VPC deployment, and it governs model traffic through the same gateway, so tool and model policy stay in one place.
Bifrost is most useful once more than one team, agent, or credential owner shares MCP servers, because that is when per-client configuration stops scaling. With one agent and two or three servers, direct connections are workable. A gateway becomes the simpler option when you need per-team tool scoping, central credential rotation, or one record of every tool call for security review.
An MCP gateway understands the Model Context Protocol, so Bifrost can filter individual tools, manage per-user credentials for upstream servers, and inspect tool arguments and results. A general-purpose API gateway routes and authenticates HTTP requests, and tool-level MCP policy depends on the product (see MCP vs API for the protocol difference). Bifrost also routes model requests, so one gateway covers both the model call and the tool calls it triggers.
Bifrost adds less than 200µs of overhead per request at 5,000 RPS in published benchmarks, which is small next to tool and model response times. Virtual MCP resolution runs against an in-process index, so curated tool sets add no extra lookups. With Code Mode, large deployments ran around 40% faster because fewer tool definitions travel with each request.
Bifrost runs with one command through npx or Docker, and most teams connect their first MCP servers and clients on the same day. Each server is registered once with its transport, auth type, and executable tools, then clients point at the /mcp endpoint with a virtual key. No changes are needed in the MCP servers themselves.
Bifrost OSS includes the MCP gateway, tool filtering, Virtual MCPs, Agent Mode, and Code Mode under the Apache 2.0 license. Bifrost Enterprise adds token exchange with your identity provider, access profiles, fine-grained RBAC, signed audit logs, guardrails on tool calls, clustering, and in-VPC deployments. Enterprise is available as a free 14-day trial; see pricing.
Bifrost treats tool calls from a model as suggestions by default, so execution requires a separate call from your application. Agent Mode auto-runs only the tools you list, virtual keys with no MCP configuration receive no tools, and guardrail rules can block or redact tool arguments before a tool executes and results before they reach the model.
[ SHIP RELIABLE AI ]
A typical evaluation deploys Bifrost in a test environment, connects the MCP servers one team already uses, and reviews the resulting tool logs with security before a wider rollout.
[ BIFROST FEATURES ]
Everything you need to run AI in production, from free open source to enterprise-grade features.
SAML support for SSO and Role-based access control and policy enforcement for team collaboration.
Automatically optimizes traffic distribution across provider keys and models based on real-time performance metrics.
High availability deployment with automatic failover and load balancing. Peer-to-peer clustering where every instance is equal.
Real-time notifications for budget limits, failures, and performance issues on Email, Slack, PagerDuty, Teams, Webhook and more.
Export and analyze request logs, traces, and telemetry data from Bifrost with enterprise-grade data export capabilities for compliance, monitoring, and analytics.
Comprehensive logging and audit trails for compliance and debugging.
Secure API key management with HashiCorp Vault, AWS Secrets Manager, Google Secret Manager, and Azure Key Vault integration.
Deploy Bifrost within your private cloud infrastructure with VPC isolation, custom networking, and enhanced security controls.
Automatically detect and block unsafe model outputs with real-time policy enforcement and content moderation across all agents.
[ SHIP RELIABLE AI ]
Change just one line of code. Works with OpenAI, Anthropic, Vercel AI SDK, LangChain, and more.