Try Bifrost Enterprise free for 14 days.
Request access
[ MCP GATEWAY BUYER'S GUIDE ]

How to Choose the Best MCP Gateway for Enterprise AI

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 ]

Enterprise MCP Gateway Performance at a Glance

<200µsOverhead
Per request at 5,000 RPS with a 100% success rate
92.8%Fewer input tokens
Up to, with Code Mode across large tool sets
$377 → $29Benchmark cost
On a 508-tool, 16-server benchmark with a 100% task pass rate
10,000+Models
Across 35+ providers on the same gateway

[ 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 ]

Choosing the Best MCP Gateway Approach

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.

ApproachWhere tool policy livesUpstream credentialsTypical fit
Dedicated MCP gateway (Bifrost)One gateway, scoped per virtual keyHeld at the gateway, shared or per userEnterprise teams that need unified access to many servers on one endpoint, with audit-ready logs
Direct client-to-server connectionsEach client's configuration fileStored in every clientOne team, a few servers, early pilots
General-purpose API gatewayHTTP routes and request-level authGateway API keysREST traffic; tool-level MCP policy depends on the product
In-house aggregation serviceCode your team maintainsYour implementationTeams that accept owning protocol and auth updates

[ THE PROBLEM ]

What Happens When Agents Reach MCP Servers without a Gateway

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).

Credentials are stored in every client

Each agent and developer machine holds its own MCP server tokens, so rotation and revocation happen client by client.

Tool access is not scoped per team

Every tool a server exposes is visible to every caller, so a customer-facing agent can reach internal admin tools.

Tool definitions fill the context window

Agents connected to many servers send every MCP tool schema each turn, so input token spend grows.

Tool calls leave no central record

Without one log of caller, tool, and result, security reviews reconstruct activity from each MCP server separately.

[ BUYING CRITERIA ]

MCP Gateway Buying Criteria for Enterprise Teams

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 areaWhat to checkWhy it matters
Deployment and data pathSelf-hosted, in-VPC, on-premise, or SaaSTool arguments and results often carry internal data that must stay in your network
Tool-level access controlAllow-lists per key, team, or customer, with deny by defaultServer-level access exposes every tool on a server to every caller
Upstream authenticationShared OAuth, per-user OAuth, per-user headers, token exchangeA shared admin token gives every caller the same upstream permissions
Execution controlExplicit approval by default, opt-in auto-execution per toolAgents that run every tool automatically can take unreviewed write actions
Guardrails on tool callsChecks on arguments before execution and on results afterTool results can carry PII, secrets, or injected instructions back to the model
Token cost at scaleHow tool definitions reach the model as servers are addedContext filled with tool schemas raises cost and latency on every request
Audit and observabilityTool-level logs, configuration audit trail, exportSecurity and finance need to attribute tool activity to a caller and team
Model trafficWhether model and tool calls share one policy and one logSeparate layers mean two policy sets and two audit trails to reconcile

[ FEATURE COMPARISON ]

Best MCP Gateways Compared Feature by Feature

The five MCP gateways below are the options enterprise platform teams shortlist most often, compared on the buying criteria above.

GatewayTypeBest fit
BifrostOpen source (Apache 2.0) plus Enterprise, self-hostedEnterprises governing model calls, MCP tool calls, and agent traffic under one policy
Kong AI GatewayMCP plugins on AI Gateway EnterpriseOrganizations that already run Kong for API management
IBM ContextForgeOpen source (Apache 2.0), self-hostedTeams federating MCP, A2A, REST, and gRPC services into one catalog
Docker MCP GatewayOpen source (MIT) CLI plugin for Docker DesktopDevelopers running containerized MCP servers from the Docker MCP Catalog
Amazon Bedrock AgentCore GatewayFully managed AWS serviceAWS-native teams turning Lambda functions and APIs into agent tools
FeatureBifrostKong AI GatewayIBM ContextForgeDocker MCP GatewayAgentCore Gateway
DeploymentSelf-hosted, in-VPC, or air-gappedKong Gateway deployments with an AI Gateway Enterprise licensePyPI, Docker, or KubernetesDocker Desktop with MCP Toolkit, or the standalone CLIAWS-managed, serverless
Model and MCP traffic in one gatewayYes, 35+ providers and MCP tools under one policyLLM plugins and MCP plugins run as separate request flowsAgent routing; LLM provider routing not publishedMCP onlyModel-based routing across providers
MCP transportsSTDIO, HTTP, SSERemote MCP servers over HTTPHTTP, WebSocket, SSE, Streamable HTTP, server-side STDIOSTDIO, SSE, streamingMCP endpoint
REST APIs as MCP toolsOpenAPI servers (beta)Converts API schemas into MCP toolsREST and gRPC to MCPNot publishedOpenAPI, Smithy, and Lambda targets
Tool-level access controlAllow-list per virtual key, deny by defaultPer-tool ACLs by Consumer and Consumer GroupVirtual servers with selected toolsTool allow-lists per profileInterceptors or resource-based policies
Client authenticationVirtual key headers or OAuth 2.1AI MCP OAuth2 plugin, OpenID Connect, Key AuthJWT bearer tokensNot publishedInbound OAuth authorization
Upstream credentialsShared, per-user OAuth, per-user headers, token exchangeToken claims forwarded as headers; tokens not passed upstreamUser-scoped OAuth tokens, upstream auth headerDocker Desktop secrets, built-in OAuth flowsCredential injection per tool
Guardrails on tool callsRules on arguments and results (Enterprise)Not published for MCP trafficPlugins for PII filtering, deny lists, LlamaGuardContainer isolation with restricted privilegesCustom logic in request interceptors
Large tool catalogsCode Mode, up to 92.8% fewer input tokensNot publishedTOON compressionNot publishedSemantic tool selection
Execution approvalExplicit by default; Agent Mode auto-runs listed toolsNot publishedNot publishedNot publishedNot published
Observability and auditMCP logs, OpenTelemetry, signed audit logsAI metrics, AI audit logs, logging pluginsOpenTelemetry tracing, Admin UI logsBuilt-in logging and call tracingBuilt-in observability and auditing
MCP servers on employee machinesAI Gateway + Bifrost Edge (early access)Not publishedNot publishedRuns per machine; AI Governance is invite-onlyNot published
Prebuilt integrationsMCP server directory, any STDIO or HTTP serverDev Portal MCP servers from published APIs40+ pluginsDocker MCP Catalog1-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 ]

What to Check in an Enterprise MCP Gateway

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 askingHow Bifrost answers itCapability
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 toolsMCP 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 keysVirtual 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 serverPer-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 flowGateway Authentication
Will an agent run a destructive tool without approval?Tool calls are suggestions by default; Agent Mode runs only tools listed for auto-executionTool 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 eitherMCP 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 sandboxCode 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 deviceMCP 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 reachableOutside gateway scope
Figure 1: Every tool call passes the same identity, access, and guardrail checks before an MCP server sees it.

[ HOW IT WORKS ]

How Bifrost Works as an MCP Gateway

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.

Figure 2: One endpoint for every client, with policy applied before any MCP server is reached.

For developers

Developers connect once and keep the clients they already use.

  • Same MCP clients, including Claude Code, Cursor, and Claude Desktop
  • One /mcp URL in place of a config entry per server
  • OAuth 2.1 sign-in for interactive clients when enabled
  • Model calls on the same LLM gateway, through one OpenAI-compatible API

For platform teams

Platform teams set tool policy once and apply it to every caller.

  • Tool allow-lists per virtual key, team, or customer
  • A Virtual MCP per team at a stable /mcp/<slug> URL
  • Upstream credentials held at the gateway, per user where needed
  • MCP logs for every tool execution, with caller metadata

[ CORE CAPABILITIES ]

MCP Governance and Access Controls for Every Tool Call

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

Virtual MCPs bundle selected tools from several MCP servers behind one endpoint that only attached virtual keys reach.

One URL per team

Tool filtering

Tool Filtering applies allow-lists at the client, request, and virtual key levels, and a tool must pass every level.

Deny by default

Upstream authentication

MCP Authentication supports none, headers, OAuth 2.0, per-user OAuth, per-user headers, and token exchange for each server.

Six auth types

Agent Mode

Agent Mode runs only the tools listed in tools_to_auto_execute and returns every other tool call for approval.

Opt-in auto-execution

Code Mode

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 tokens

Guardrails on tool calls

Guardrail rules inspect or redact MCP tool arguments before execution and tool results before they return to the model.

Arguments and results
Figure 3: Code Mode keeps the tool catalog out of the prompt, which is where large MCP deployments spend most input tokens.

[ COMPARISON ]

MCP Servers alone vs. MCP Servers + Bifrost

CapabilityMCP servers aloneMCP servers + Bifrost
Client configurationOne entry per server in each clientOne /mcp endpoint, or a Virtual MCP per team
Upstream credentialsStored in each client's configurationHeld at the gateway, shared or per user
Tool accessEvery tool a server exposesAllow-list per virtual key, deny by default
ExecutionDecided by each clientExplicit approval by default, opt-in Agent Mode
Tool definitions in contextFull catalog sent each turnCode Mode loads only the definitions a task reads
Content checksImplemented per server where they existGuardrails on tool arguments and results
RecordsLogs kept on each MCP serverMCP logs, OpenTelemetry traces, and signed audit events
Model and agent trafficSeparate integrations per provider and agentSame 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 ]

Three Steps to Governed MCP Access

No changes to your MCP servers and no custom client code.

  1. STEP 01

    Deploy Bifrost

    Run the gateway locally or on a VM in your VPC with one command, as in the gateway quickstart.

    bash
    npx -y @maximhq/bifrost   # or: docker run -p 8080:8080 maximhq/bifrost
  2. STEP 02

    Connect your MCP servers

    Register each server over STDIO, HTTP, or SSE, and choose which of its tools may execute.

    config.json
    {
      "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"]
          }
        ]
      }
    }
  3. STEP 03

    Point MCP clients at Bifrost

    Give each client a virtual key, and the tools it sees are filtered to that key's allow-list.

    MCP client config
    {
      "mcpServers": {
        "bifrost-production": {
          "url": "http://localhost:8080/mcp",
          "headers": {
            "Authorization": "Bearer vk_your_production_key"
          }
        }
      }
    }

[ USE CASES ]

Enterprise MCP Use Cases

Platform teams standardizing tool access

Platform teams publish one Virtual MCP per team, so each group reaches only the servers and tools it needs.

Security teams in regulated industries

Healthcare and financial services teams run guardrails on tool results and keep tool traffic inside their VPC.

Engineering orgs on coding agents

Engineering orgs connect Claude Code and other CLI coding agents to one MCP endpoint with per-developer credentials.

Product teams shipping customer-facing agents

Product teams scope customer-facing agents to read-only tools, while internal agents keep access to admin tooling.

Teams with large tool catalogs

Teams connecting dozens of MCP servers turn on Code Mode to reduce input tokens and cost on multi-tool tasks.

IT teams governing employee machines

IT teams add Bifrost Edge (early access) to the AI Gateway to control shadow AI MCP servers on laptops.

[ GOVERNANCE & COMPLIANCE ]

Built for Enterprises with Strict Security Requirements

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.

AICPA SOC
GDPR
ISO 27001
HIPAA

Role-based access control

Fine-grained roles decide who can add MCP servers, edit Virtual MCPs, or change tool policy.

Audit logs

Signed audit events record each MCP server connection that is added, changed, or removed, with export support.

Identity-based access

Access profiles synced from Okta, Microsoft Entra, or any OIDC provider grant Virtual MCPs to whole roles.

In-VPC deployment

Bifrost runs inside your VPC or air-gapped, so tool arguments and results stay in your environment.

[ GO DEEPER ]

Related Bifrost Resources

  • Bifrost MCP Gateway: Product overview of Bifrost as the gateway for agents, tools, and MCP clients.
  • MCP Gateway topic hub: Explainers on MCP architecture, servers, tools, endpoints, authentication, and security.
  • MCP Gateway resource: Connection types, setup steps, and Code Mode details for the open-source MCP gateway.
  • AI Security: PII redaction, secrets detection, and prompt injection guardrails for model and tool traffic.
  • Governance: Virtual keys, budgets, rate limits, and RBAC with SSO for every team.
  • MCP security best practices: An enterprise checklist for authentication, tool scoping, and logging across MCP servers.
  • MCP server directory: Browse MCP servers you can connect to Bifrost and govern from one endpoint.

[ FAQ ]

Frequently Asked Questions

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 ]

Ready to Bring Governance to Every MCP Server?

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 ]

Open Source & Enterprise

Everything you need to run AI in production, from free open source to enterprise-grade features.

01 Governance

SAML support for SSO and Role-based access control and policy enforcement for team collaboration.

02 Adaptive Load Balancing

Automatically optimizes traffic distribution across provider keys and models based on real-time performance metrics.

03 Cluster Mode

High availability deployment with automatic failover and load balancing. Peer-to-peer clustering where every instance is equal.

04 Alerts

Real-time notifications for budget limits, failures, and performance issues on Email, Slack, PagerDuty, Teams, Webhook and more.

05 Log Exports

Export and analyze request logs, traces, and telemetry data from Bifrost with enterprise-grade data export capabilities for compliance, monitoring, and analytics.

06 Audit Logs

Comprehensive logging and audit trails for compliance and debugging.

07 Vault Support

Secure API key management with HashiCorp Vault, AWS Secrets Manager, Google Secret Manager, and Azure Key Vault integration.

08 VPC Deployment

Deploy Bifrost within your private cloud infrastructure with VPC isolation, custom networking, and enhanced security controls.

09 Guardrails

Automatically detect and block unsafe model outputs with real-time policy enforcement and content moderation across all agents.

[ SHIP RELIABLE AI ]

Try Bifrost Enterprise with a 14-day Free Trial

[quick setup]

Drop-in replacement for any AI SDK

Change just one line of code. Works with OpenAI, Anthropic, Vercel AI SDK, LangChain, and more.

1import os
2from anthropic import Anthropic
3
4anthropic = Anthropic(
5 api_key=os.environ.get("ANTHROPIC_API_KEY"),
6 base_url="https://<bifrost_url>/anthropic",
7)
8
9message = anthropic.messages.create(
10 model="claude-3-5-sonnet-20241022",
11 max_tokens=1024,
12 messages=[
13 {"role": "user", "content": "Hello, Claude"}
14 ]
15)
Drop in once, run everywhere.