Bifrost MCP Gateway

开源、自托管的AI网关,内置MCP客户端和服务器支持,用于将MCP工具连接到AI应用。

文档

Try Bifrost Enterprise free for 14 days.Try Bifrost Enterprise free for 14 days.

Request access

[ We’re Open Source ]

The Enterprise AI Gateway
for All Your AI Traffic

Route, govern, and secure every model,MCP tool, and agent from one control plane.

Book a demo

Get started free

/* Start in 30 sec …

$npx -y @maximhq/bifrost

[ Performance at a glance ]

Added overhead
<200µs
Sustained at 5,000 RPS
Throughput
5,000 req/s
100% success rate
Models
10,000+

openai/gpt-4o

anthropic/claude-sonnet-4-5

gemini/gemini-2.5-pro

bedrock/llama-3.3-70b

mistral/mistral-large

xai/grok-4

groq/qwen3-32b

cohere/command-a

Across 35+ providers

Apps & services

agentAI agents

>_Coding agents

Employee devices

OpenAIgpt-4o

Anthropicclaude-sonnet-4-5

Google Vertexgemini-2.5-pro

AWS Bedrockllama-3.3-70b

vLLM · SGLangqwen3-32b

MCP serverstools/call

[OVER 1,000+ TEAMS USE BIFROST]

[BENCHMARK]

Bifrost vs LiteLLM Benchmark with 54x Lower P99 Latency

P99 latency, Bifrost vs LiteLLM at 500 RPS on identical hardware (beyond this, LiteLLM breaks with latency going up to 4 minutes).

P99 latency

Lower is better

Bifrost

1.68 s

LiteLLM

90.72 s

022.745.46890.7 s

54x faster

Throughput

Higher is better

Bifrost

424 req/s

LiteLLM

44.84 req/s

0106212318424 req/s

9.5x higher

Memory usage

Lower is better

Bifrost

120 MB

LiteLLM

372 MB

093186279372 MB

68% less

Success rate

Higher is better

Bifrost

100 %

LiteLLM

88.78 %

0255075100 %

11.22% higher

AWS EC2 us-east-1 · 500 concurrent users · 60-second runs

Full benchmark results

[ CAPABILITIES ]

Govern Every Model, MCP Tool, and Agent

One gateway for LLM, MCP, and agent traffic, with identity, governance, security, observability, and cost controls on every call.

Fallback chain

Bifrost

OpenAI

Anthropic

Mistral429 · rate limited200 · 812 ms

LLM gateway with failover

01

Automatic failover and load balancing across 35+ providers and 10,000+ models.

vk-support

GitHub

Search

Files

SQLDenied · sql.execute

MCP gateway for tool access

02

OAuth 2.0, tool-level access control, and an audit log for every tool call.

Agent registrycost $0.0000cost $0.0021cost $0.0048

Triage

Billing

message/sendtask · completed

Agent gateway for A2A

03

Register agents, control who can call them, and trace what each conversation costs.

Signed-in users

alice

ravi

SSO

user alice · team supportuser ravi · team billing

Identity and SSO

04

SSO via Okta, Entra, or Google, SCIM provisioning, and every call tied to a user.

vk-checkoutvk-supportvk-research

Cap $500 / moBlocked · over budget

AI governance and budgets

05

Budgets and rate limits per team or virtual key, with RBAC and audit logs.

Prompt inTo model

GuardrailsPII redactedBlocked · injection

AI guardrails and security

06

Native or third-party guardrails block prompt injections, leaked secrets, unsafe content, and PII.

Request logsgpt-4o 812 ms $0.0021claude-4.5 640 ms $0.0034gemini-2.5 503 ms $0.0012mistral-l 377 ms $0.0008

OpenTelemetry

Prometheus

Datadog

LLM observability

07

Logs with tokens, cost, and latency, exported to OpenTelemetry, Prometheus, or Datadog.

supportbillingeng

gpt-4o

claude

mistral$0.0021 · support$0.0034 · eng$0.0008 · billing$0.0029 · support$0.0018 · eng$0.0006 · billing

Cost optimization

08

Manage AI cost across every model, provider, and team, with spend tracked on every call.

Bifrost EdgeClaude DesktopClaude DesktopCursorCursorChatGPTChatGPT

BifrostClaude Desktop · governedCursor · governedChatGPT · governed

Bifrost Edge for shadow AI

09

Route desktop apps, browser AI, and coding tools on every laptop through Bifrost.

[quick setup]

Drop-in replacement with an OpenAI-compatible API

Bifrost exposes 100% compatible endpoints for the SDKs you already use. Point the base URL at the gateway and every feature turns on.

Step 01

Run the gateway

Start Bifrost as a single binary with npx or Docker. No additional dependencies needed.

terminal

1 $ npx -y @maximhq/bifrost2 3 # or run with Docker4 $ docker run -p 8080:8080 maximhq/bifrost

Step 02

Point your SDK at it

Change the base URL to the gateway and keep your existing code. Provider keys are held by Bifrost, not your app.

app.py

1-client = openai.OpenAI(api_key="your-openai-key")2+client = openai.OpenAI(3+    base_url="http://localhost:8080/openai",4+    api_key="dummy-key",  # keys are held by the gateway5+)

Works with

The SDKs you already use.

OpenAIAnthropicBedrockGenAILiteLLMLangChainPydanticAI

Coding agents

Claude CodeCursorCodexGemini CLI

The same base URL works for Claude Code, Cursor, Codex, and Gemini CLI, so coding-agent traffic is routed, logged, and governed like every other AI request.

[ USE CASES ]

How Enterprises Use Bifrost

Route, govern, secure, and observe every LLM call across apps, agents, and employee devices.

Enterprise-wide AI governance, across apps and endpoints

Cost and budget visibility and controls

Unified model and provider access

Smart routing across models and providers

Full observability of AI traffic

Guardrails and security policies

[ DEPLOYMENT ]

Self-Hosted AI Gateway on Infrastructure You Own

Deploy Bifrost in your VPC, on-prem, or air-gapped, so keys, logs, and request data stay in your environment.

  • In your VPC
  • On-prem
  • Air-gapped

Your infrastructure

Allowed providers

GitHub

Docs

SQLMCP tools

Apps

>_Edge devices

Agents

BifrostKeys · logsGuardrails

Agents (A2A)

Your keys, your data

  • 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

Deploy anywhere

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

Compliance built in

  • 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

OSS featuresEnterprise features

Model catalog

35+ providers and 10,000+ models behind one interface, plus your own deployed models.

Budgeting

Set spending limits and track costs across teams, projects, and models.

Provider fallback

Automatic failover to another provider when a request fails.

MCP gateway

MCP tool connections, auth, and policy managed in one place.

Virtual keys

A key per use case, each with its own budget and access control.

Unified interface

One consistent API for all providers. Switch models without changing code.

Drop-in replacement

A one-line change for OpenAI, Anthropic, LiteLLM, Google GenAI, LangChain and more.

Built-in observability

OpenTelemetry support out of the box, plus a built-in dashboard.

Community support

An active Discord community with responsive support and regular updates.

Governance

SAML SSO, role-based access control, and policy enforcement across teams.

Adaptive routing

Shifts traffic across provider keys and models on real-time performance.

Cluster mode

High availability with peer-to-peer clustering, where every instance is equal.

Alerts

Budget, failure, and performance alerts on Email, Slack, PagerDuty, Teams, and webhooks.

Log exports

Export request logs, traces, and telemetry for compliance and analytics.

Audit logs

Signed audit events for administrative activity, with filtering and export.

Vault support

Provider keys in HashiCorp Vault, AWS Secrets Manager, GCP Secret Manager, or Azure Key Vault.

VPC deployment

Your private cloud on AWS, GCP, Azure, Cloudflare, or Vercel, with VPC isolation.

Guardrails

Detect and block unsafe inputs and outputs with real-time policy enforcement.

Self-host under Apache 2.0

Get started free

Try Bifrost Enterprise free for 14 days.

Request access

[ 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

Have you tried Bifrost OSS? Yes, actively using Yes, tried locally / briefly No Are you using an LLM Gateway today? Yes No

request license

FAQ

Frequently Asked Questions

Everything you need to know about Bifrost.

Need more support ? We’re here for you.

Contact us

What is an AI gateway?

An AI gateway is a single control point between your applications and every AI provider you use. It handles routing, retries, failover, caching, cost tracking, and policy enforcement so individual services do not have to.

How do AI and API gateways differ?

An API gateway routes HTTP traffic and applies generic concerns like auth and rate limiting. An AI gateway understands model requests. It knows about tokens, model names, provider-specific formats, streaming, cost per call, and tool calls, so it can do things a generic API gateway cannot: fail over from GPT-4o to Claude mid-outage, cache semantically similar prompts, or block a request that exceeds a team’s token budget.

How do LLM and MCP gateways differ?

An LLM gateway governs the model calls your applications make. An MCP gateway governs the tools models can reach. Bifrost is both: it routes LLM requests across 35+ providers, and it acts as an MCP client and server so models can discover and execute external tools under tool-level allow-lists.

Is there an open source AI gateway?

Bifrost is open source under Apache 2.0. You can self-host the full gateway, read the source on GitHub, and run it in your own VPC or air-gapped network with no outbound calls.

Can I use my existing OpenAI or Anthropic SDK?

Bifrost is a drop-in replacement. Change the base URL to the gateway and your existing OpenAI, Anthropic, Bedrock, GenAI, LiteLLM, LangChain, or PydanticAI code keeps working.

How much latency does an AI gateway add?

Bifrost adds less than 200µs per request in sustained benchmarks at 5,000 requests per second, with a 100% success rate. Routing, fallbacks, and policy checks stay in the hot path without a meaningful latency tax.

How is my data protected?

Bifrost offers zero-touch in-VPC deployments, so no data ever leaves your environment or passes through Bifrost/Maxim servers.

[ GET STARTED ]

Route Every AI Request Through One AI Gateway

Unify 35+ providers and 10,000+ models behind one gateway you can run in your own VPC, with full control over cost, policy, and compliance.

terminalCopy

/* Start in 30 sec … */

$npx -y @maximhq/bifrost