---
description: One control plane for MCP traffic. Register servers, scope tool access with virtual keys, authenticate with OAuth 2.0, and audit every call from your VPC.
title: Enterprise MCP Gateway for Agents and Tools | Bifrost
image: https://bifrost-website.getmaxim.workers.dev/marketing/TEMoNkNbpcTVKd8275wElrbTx8.png
---

Try Bifrost Enterprise free for 14 days.

[Request access](https://www.getmaxim.ai/#enterprise-trial)

> ## Markdown version for AI agents
>
> A token-efficient Markdown version of this page is available at: https://www.getmaxim.ai/mcp-gateway.md
>
> AI agents and LLMs should fetch the Markdown version instead of parsing this HTML — it contains the same content with far fewer tokens.
>
> An agent-readable HTML version is also available at: https://www.getmaxim.ai/mcp-gateway?mode=agent

\[ MCP GATEWAY ]

# One MCP Gateway<br>for Enterprise AI

A single control plane to govern, observe, and secure all your MCP traffic.

\[ ENTERPRISE READY: VPC | ON-PREM | AIR-GAPPED ]

[Get started free](https://github.com/maximhq/bifrost) [View documentation](https://docs.getbifrost.ai/mcp/overview)

AI APPLICATIONS

MCP SERVERS

Claude Desktop

Cursor

Claude Code

OpenAI SDK

Your agent

Chat app

Notion

GitHub

Figma

Slack

Linear

Postgres

Filesystem

Web search

Jira

Google Drive

BifrostMCP GATEWAYLIVE

01AUTHENTICATE✓

02FILTER TOOLS✓

03EXECUTE✓

04AUDIT LOG✓

ONE ENDPOINT · 10 SERVERS · 124 TOOLS

Run the gateway locally Copy

```
npx -y @maximhq/bifrost
```

\[ OVER 1,000+ TEAMS USE BIFROST ]

\[ ARCHITECTURE ]

## Client and server, in one gateway

Bifrost sits between your agents and your tools, speaking MCP in both directions so policy, credentials, and telemetry live in exactly one place.

MCP clients

Agents

IDE assistants

Chat clients

Bifrost MCP Gateway

Access control

Roles, virtual keys, tool scoping

Authentication

OAuth 2.0 with token refresh

Audit + telemetry

Every tool call recorded

MCP servers

Database MCP

Internal APIs

SaaS MCP servers

One URL for every client. One place to scope tools, authenticate servers, and record what ran.

### MCP client

Bifrost connects out to your MCP servers over STDIO, HTTP, or SSE, and keeps their tool catalogs in sync.

### MCP server

Point Claude Desktop, an IDE assistant, or your own agent at one Bifrost URL and it discovers every tool it is permitted to use.

### Policy plane

Roles, virtual keys, and access profiles decide which tools each caller can see and execute, resolved in memory per request.

\[ MCP GATEWAY CAPABILITIES ]

## Govern and observe MCP tool calls at scale

Control tool access, authenticate MCP servers, reduce token overhead, and audit every call from one gateway

### Govern MCP tool access

- Enforce role-based tool access synced directly from Okta, Entra, or Keycloak via SSO
- Scope tool access via virtual keys per user, team, or business unit to observe and control spend
- Define reusable access profiles that map roles to permitted servers, tools, and actions

[View docs →](https://docs.getbifrost.ai/mcp/auth/per-user-oauth)

ACCESS PROFILE

SYNCED · OKTA

ROLEplatform-eng↳ via SSO · Entra

github-mcp

repo.read

ALLOW

github-mcp

pulls.merge

ALLOW

postgres-mcp

query.read

ALLOW

stripe-mcp

charge.create

DENY

filesystem-mcp

fs.delete

DENY

\[ ROLE → PERMITTED SERVERS · TOOLS · ACTIONS ]

### MCP Authentication and OAuth 2.0 for Every Server

- Authenticate to upstream MCP servers with OAuth 2.0(server or per-user) with automatic token refresh
- Execute tools only on explicit approval
- Enable Agent Mode to auto-approve only the tools you whitelist

[View docs →](https://docs.getbifrost.ai/enterprise/user-provisioning)

github-mcp

OAuth 2.0 · serverAUTH

stripe-mcp

OAuth 2.0 · per-userAUTH

postgres-mcp

OAuth 2.0 · serverAUTH

BIFROST  
GATEWAY

AUTO-REFRESH

\[ OAUTH 2.0 · EXPLICIT APPROVAL · AGENT-MODE WHITELIST ]

### Cut MCP token costs with Code Mode

- Replace 100+ tool definitions with four meta-tools and let the model handle orchestration
- Save 50%+ on tokens and run 40% faster across large MCP server setups
- Reduce round trips with on-demand schema loading and sandboxed execution

[View docs →](https://docs.getbifrost.ai/mcp/code-mode)

Spend Meter

Live

OPENAI · GPT-4O$620

ANTHROPIC · CLAUDE$410

TEAM · GROWTH$780

78%

of daily cap

NEAR LIMIT

\[ Threshold $1,000 / day · alert at 80% ]

### MCP Observability: Audit Every Tool Call

- Log every tool call with tool name, server, virtual key, latency, and the parent LLM request
- Maintain immutable, timestamped audit trail for SOC 2 Type II, HIPAA, and GDPR evidence
- Stream logs, traces, and metrics to your stack via OpenTelemetry export

[View docs →](https://docs.getbifrost.ai/enterprise/audit-logs)

AUDIT TRAIL

STREAMING · OTel

TIMECALL · SERVERVIRTUAL KEYLAT

07.412**github-mcp** · repo.readvk\_eng\_7f3a82ms

07.588**stripe-mcp** · charge.createvk\_fin\_2b1cdeny

08.041**postgres-mcp** · query.readvk\_data\_9c45ms

08.517**slack-mcp** · msg.postvk\_ops\_4d120ms

09.002**filesystem-mcp** · fs.readvk\_eng\_7f3a12ms

09.660**jira-mcp** · issue.createvk\_pm\_1a5e210ms

10.128**github-mcp** · pulls.mergevk\_eng\_c30f96ms

10.744**bigquery-mcp** · dataset.listvk\_data\_9c58ms

07.412**github-mcp** · repo.readvk\_eng\_7f3a82ms

07.588**stripe-mcp** · charge.createvk\_fin\_2b1cdeny

08.041**postgres-mcp** · query.readvk\_data\_9c45ms

08.517**slack-mcp** · msg.postvk\_ops\_4d120ms

09.002**filesystem-mcp** · fs.readvk\_eng\_7f3a12ms

09.660**jira-mcp** · issue.createvk\_pm\_1a5e210ms

10.128**github-mcp** · pulls.mergevk\_eng\_c30f96ms

10.744**bigquery-mcp** · dataset.listvk\_data\_9c58ms

IMMUTABLE · HASH-CHAINED

SOC 2HIPAAGDPR

### Track cost and latency per tool call

- View per-tool cost alongside LLM token spend in a single dashboard
- Attribute spend by tool, server, virtual key, team, or customer
- Stream traces and metrics to Grafana, Datadog, or BigQuery

[View docs →](https://docs.getbifrost.ai/features/governance/virtual-keys)

PER-TOOL METRICS

LIVE · 24h

TOTAL SPEND

$1,284

tool + LLM tokens

P95 LATENCY

142ms

per tool call

TOOL CALLS

38.4K

across 12 servers

LATENCY ms

now

SPEND ATTRIBUTED BY TEAM · CUSTOMERtool · server · vk

team-platform 42%team-growth 31%acme-corp 18%other 9%

STREAM TRACES + METRICS

GrafanaDatadogBigQuery

### Create Virtual MCP Servers

- Bundle tools from any connected server into a curated virtual MCP server
- Attach tool groups to virtual keys to expose only permitted tools at request time
- Point any MCP client to one URL and discover all available tools automatically

[View docs →](https://docs.getbifrost.ai/mcp/filtering)

github-mcp

24 tools

stripe-mcp

12 tools

postgres-mcp

18 tools

slack-mcp

9 tools

VIRTUAL SERVERCURATED

support-suite

• repo.read← github-mcp

• refund.read← stripe-mcp

• query.read← postgres-mcp

• msg.post← slack-mcp

vk\_support\_9fexposes 4 / 63

gw.bifrost.ai/v/support-suite

\[ ONE URL · AUTO-DISCOVER ALL TOOLS ]

\[ HOW IT WORKS ]

## One MCP Gateway Between Your Agents and Every MCP Server

Scale your MCP servers with full cost and governance control.

\[ REQUEST LIFECYCLE ]one tool call, traced end-to-end

01 / 14

PAUSE

User

Prompt origin

Client

MCP client

Bifrost

MCP Gateway

LLM

Model

Upstream

MCP server

STEP 01

User

Client

Prompt with a task that needs a tool

"Get my three most recent support tickets"

01

02

03

04

05

06

07

08

09

10

11

12

13

14

One tool call, one audit trail, all through Bifrost MCP Gateway.

\[ ROLLOUT ]

## From one server to an organization-wide toolkit

01

### Register servers once

Add each MCP server with its transport and credentials. Bifrost handles connection health and tool discovery from there.

02

### Curate virtual servers

Bundle tools from any number of backend servers into MCP Tool Groups and expose them as a single virtual MCP server.

03

### Scope with virtual keys

Attach tool groups to virtual keys per user, team, or customer, so a customer-facing agent can never reach internal admin tooling.

04

### Watch every call

Per-tool cost and latency land beside LLM token spend, and stream out over OpenTelemetry to the backend you already run.

\[ MCP GOVERNANCE ON YOUR INFRA ]

## MCP Governance That Stays Under Your Control

Deploy in your own environment with full control over keys, data, and policy

### Keep keys and data in your environment

- Store every provider credential inside the gateway, never in client code
- Keep all request data within your own infrastructure
- Rotate provider keys without touching a single application

[Provider configuration →](https://docs.getbifrost.ai/quickstart/gateway/provider-configuration)

### Deploy anywhere, including air-gapped

- Run fully in your VPC or air-gapped private network
- Deploy with no external dependencies or outbound calls
- Self-host under Apache 2.0, or run fully managed

[Deployment guides →](https://docs.getbifrost.ai/deployment-guides/enterprise/overview)

### Meet enterprise compliance standards

- Comply with SOC 2 Type II, HIPAA, GDPR, and ISO 27001
- Maintain audit-ready records across every request
- Enforce one consistent policy across teams and providers

[Audit logs docs →](https://docs.getbifrost.ai/enterprise/audit-logs)

\[ FAQ ]

## Frequently Asked Questions

What is an MCP gateway?

An MCP gateway is a control layer between AI clients and MCP servers. Every tool call passes through it, so authentication, access rules, and audit logging apply in one place rather than being configured separately for each client and each server.

Without one, every agent holds its own credentials for every server, and no one can answer which tools ran, for whom, or at what cost.

What is the difference between a proxy and an MCP gateway?

A proxy forwards MCP traffic without understanding it. A gateway parses the protocol, so it can scope which tools a caller sees, attach the right credentials per upstream server, enforce approval on execution, and log each call with its tool name, latency, and cost.

What is the difference between an MCP gateway and an MCP server?

An MCP server exposes a set of tools. An MCP gateway sits in front of many MCP servers and presents them to clients through one endpoint. Bifrost is both: a client to your upstream servers, and a server to your agents.

Is Bifrost's MCP gateway open source?

Yes. Bifrost is open source under the Apache 2.0 license. You can self-host it and read the full source on [GitHub](https://github.com/maximhq/bifrost).

How does MCP authentication work with OAuth 2.0?

Bifrost authenticates to each upstream MCP server with OAuth 2.0, server-level or per-user, and refreshes tokens automatically. Credentials stay in the gateway, never in client config, so rotating a token does not require touching a single agent.

How do I connect Claude Desktop, Claude Code, or Cursor to Bifrost?

Point the client at one Bifrost URL. It discovers every tool it's permitted to use.

What MCP transport protocols does Bifrost support?

Bifrost supports all three MCP transport types: STDIO for local process execution, HTTP for remote MCP servers, and SSE (Server-Sent Events) for real-time streaming connections. OAuth 2.0 authentication with automatic token refresh is built in.

How do I manage rate limits and resource usage across MCP servers?

An MCP gateway solves the problem of runaway tool-calling that can overload internal systems or hit provider API limits. The main objective is to regulate resource consumption while maintaining a smooth developer experience.

- Token and request budgeting: set hard limits on tool calls per team to prevent backend overloads and control costs.
- Automated failover: reroute traffic to secondary servers or models if an MCP connection times out or fails.
- Scale-ready architecture: built to handle thousands of tool calls concurrently without degrading performance.

What is Code Mode and how does it reduce costs?

Code Mode replaces traditional tool calling with AI-generated code that orchestrates multiple tools in a single round-trip. Instead of sending 100+ tool schemas in every request, Code Mode uses four meta-tools for on-demand schema loading. This cuts token usage by 50%+ and reduces LLM calls by 3-4x.

Does Bifrost automatically execute tool calls from AI models?

No. By default, Bifrost treats tool calls from LLMs as suggestions only. Your application must explicitly approve and trigger execution via a separate API call. This security-first design prevents unintended actions. Agent Mode with auto-execution is available but requires explicit opt-in configuration.

## Put every MCP tool call behind one gateway

[Control tool access](https://www.getmaxim.ai/ai-governance), authenticate MCP servers, reduce token overhead, and [audit every call](https://www.getmaxim.ai/ai-observability) from one gateway.

[Get started free](https://github.com/maximhq/bifrost) [Talk to us](https://www.getmaxim.ai/contact)

\[ BIFROST FEATURES ]

## Open Source & Enterprise

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

OSS FeaturesEnterprise 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

Select company size 1-10 11-50 51-100 101-500 501-1000 1000+

Select company HQ North America Asia-Pacific Europe, Middle East and Africa Latin America

Are you using an LLM Gateway today? Yes No

Request License

\[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.

openAI.py Anthropic.pyLiteLLM.pyGenai.py

Copy

1import os

2from anthropic import Anthropic

3

4anthropic = Anthropic(

5api\_key=os.environ.get("ANTHROPIC\_API\_KEY"),

6base\_url="https://\<bifrost\_url>/anthropic",

7\)

8

9message = anthropic.messages.create(

10model="claude-3-5-sonnet-20241022",

11 max\_tokens=1024,

12 messages=\[

13{"role": "user", "content": "Hello, Claude"}

14 ]

15\)

Drop in once, run everywhere.

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.getmaxim.ai/#organization","name":"Maxim AI","legalName":"H3 Labs Inc.","url":"https://www.getmaxim.ai","email":"contact@getmaxim.ai","sameAs":["https://github.com/maximhq"]},{"@type":"WebSite","@id":"https://www.getmaxim.ai/#website","url":"https://www.getmaxim.ai","name":"Bifrost by Maxim AI","alternateName":["Bifrost","Maxim AI"],"inLanguage":"en","publisher":{"@id":"https://www.getmaxim.ai/#organization"}},{"@type":"SoftwareApplication","@id":"https://www.getmaxim.ai/mcp-gateway#software","name":"Bifrost MCP Gateway","description":"One control plane for MCP traffic. Register servers, scope tool access with virtual keys, authenticate with OAuth 2.0, and audit every call from your VPC.","url":"https://www.getmaxim.ai/mcp-gateway","image":"https://bifrost-website.getmaxim.workers.dev/marketing/TEMoNkNbpcTVKd8275wElrbTx8.png","applicationCategory":"DeveloperApplication","applicationSubCategory":"MCP gateway","operatingSystem":"Linux, macOS, Windows","featureList":["MCP client and MCP server in one gateway","Tool access scoped with virtual keys","OAuth 2.0 authentication for every MCP server","Code Mode to cut MCP token costs","Audit logging for every tool call","Cost and latency tracking per tool call","Virtual MCP servers"],"softwareHelp":{"@type":"CreativeWork","url":"https://docs.getbifrost.ai/mcp/overview"},"isPartOf":{"@id":"https://www.getmaxim.ai/#software"},"publisher":{"@id":"https://www.getmaxim.ai/#organization"}},{"@type":"WebPage","@id":"https://www.getmaxim.ai/mcp-gateway#webpage","url":"https://www.getmaxim.ai/mcp-gateway","name":"Enterprise MCP Gateway for Agents and Tools | Bifrost","description":"One control plane for MCP traffic. Register servers, scope tool access with virtual keys, authenticate with OAuth 2.0, and audit every call from your VPC.","inLanguage":"en","isPartOf":{"@id":"https://www.getmaxim.ai/#website"},"publisher":{"@id":"https://www.getmaxim.ai/#organization"},"primaryImageOfPage":{"@type":"ImageObject","url":"https://bifrost-website.getmaxim.workers.dev/marketing/TEMoNkNbpcTVKd8275wElrbTx8.png"},"about":{"@id":"https://www.getmaxim.ai/mcp-gateway#software"},"breadcrumb":{"@id":"https://www.getmaxim.ai/mcp-gateway#breadcrumb"}},{"@type":"BreadcrumbList","@id":"https://www.getmaxim.ai/mcp-gateway#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://www.getmaxim.ai"},{"@type":"ListItem","position":2,"name":"MCP Gateway","item":"https://www.getmaxim.ai/mcp-gateway"}]},{"@type":"FAQPage","@id":"https://www.getmaxim.ai/mcp-gateway#faq","isPartOf":{"@id":"https://www.getmaxim.ai/mcp-gateway#webpage"},"mainEntity":[{"@type":"Question","name":"What is an MCP gateway?","acceptedAnswer":{"@type":"Answer","text":"An MCP gateway is a control layer between AI clients and MCP servers. Every tool call passes through it, so authentication, access rules, and audit logging apply in one place rather than being configured separately for each client and each server.\n\nWithout one, every agent holds its own credentials for every server, and no one can answer which tools ran, for whom, or at what cost."}},{"@type":"Question","name":"What is the difference between a proxy and an MCP gateway?","acceptedAnswer":{"@type":"Answer","text":"A proxy forwards MCP traffic without understanding it. A gateway parses the protocol, so it can scope which tools a caller sees, attach the right credentials per upstream server, enforce approval on execution, and log each call with its tool name, latency, and cost."}},{"@type":"Question","name":"What is the difference between an MCP gateway and an MCP server?","acceptedAnswer":{"@type":"Answer","text":"An MCP server exposes a set of tools. An MCP gateway sits in front of many MCP servers and presents them to clients through one endpoint. Bifrost is both: a client to your upstream servers, and a server to your agents."}},{"@type":"Question","name":"Is Bifrost's MCP gateway open source?","acceptedAnswer":{"@type":"Answer","text":"Yes. Bifrost is open source under the Apache 2.0 license. You can self-host it and read the full source on GitHub."}},{"@type":"Question","name":"How does MCP authentication work with OAuth 2.0?","acceptedAnswer":{"@type":"Answer","text":"Bifrost authenticates to each upstream MCP server with OAuth 2.0, server-level or per-user, and refreshes tokens automatically. Credentials stay in the gateway, never in client config, so rotating a token does not require touching a single agent."}},{"@type":"Question","name":"How do I connect Claude Desktop, Claude Code, or Cursor to Bifrost?","acceptedAnswer":{"@type":"Answer","text":"Point the client at one Bifrost URL. It discovers every tool it's permitted to use."}},{"@type":"Question","name":"What MCP transport protocols does Bifrost support?","acceptedAnswer":{"@type":"Answer","text":"Bifrost supports all three MCP transport types: STDIO for local process execution, HTTP for remote MCP servers, and SSE (Server-Sent Events) for real-time streaming connections. OAuth 2.0 authentication with automatic token refresh is built in."}},{"@type":"Question","name":"How do I manage rate limits and resource usage across MCP servers?","acceptedAnswer":{"@type":"Answer","text":"An MCP gateway solves the problem of runaway tool-calling that can overload internal systems or hit provider API limits. The main objective is to regulate resource consumption while maintaining a smooth developer experience.\n• Token and request budgeting: set hard limits on tool calls per team to prevent backend overloads and control costs.\n• Automated failover: reroute traffic to secondary servers or models if an MCP connection times out or fails.\n• Scale-ready architecture: built to handle thousands of tool calls concurrently without degrading performance."}},{"@type":"Question","name":"What is Code Mode and how does it reduce costs?","acceptedAnswer":{"@type":"Answer","text":"Code Mode replaces traditional tool calling with AI-generated code that orchestrates multiple tools in a single round-trip. Instead of sending 100+ tool schemas in every request, Code Mode uses four meta-tools for on-demand schema loading. This cuts token usage by 50%+ and reduces LLM calls by 3-4x."}},{"@type":"Question","name":"Does Bifrost automatically execute tool calls from AI models?","acceptedAnswer":{"@type":"Answer","text":"No. By default, Bifrost treats tool calls from LLMs as suggestions only. Your application must explicitly approve and trigger execution via a separate API call. This security-first design prevents unintended actions. Agent Mode with auto-execution is available but requires explicit opt-in configuration."}}]}]}
```
