Skip to main content
Glama
maximhq

Bifrost MCP Gateway

Official
by maximhq

Bifrost AI Gateway

Discord バッジ codecov Docker Pulls Artifact Hub ライセンス

ダウンタイムのない AI アプリケーションを構築する最速の方法

Bifrost は、23 以上のプロバイダー(OpenAI、Anthropic、AWS Bedrock、Google Vertex など)へのアクセスを単一の OpenAI 互換 API に統合する高性能 AI ゲートウェイです。ゼロ設定で数秒でデプロイでき、自動フェイルオーバー、ロードバランシング、セマンティックキャッシュ、エンタープライズグレードの機能を利用できます。

Related MCP server: MCPGate

クイックスタート

はじめに

1 分以内に、ゼロから本番環境対応の AI ゲートウェイを構築できます。

ステップ 1: Bifrost Gateway を起動

# Install and run locally
npx -y @maximhq/bifrost

# Or use Docker
docker run -p 8080:8080 maximhq/bifrost

ステップ 2: Web UI で設定

# Open the built-in web interface
open http://localhost:8080

ステップ 3: 最初の API 呼び出しを行う

curl -X POST http://localhost:8080/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-4o-mini",
    "messages": [{"role": "user", "content": "Hello, Bifrost!"}]
  }'

これで完了です! 視覚的な設定、リアルタイムモニタリング、分析のための Web インターフェースを備えた AI ゲートウェイが稼働しています。

完全なセットアップガイド:


エンタープライズデプロイメント

Bifrost は、大規模な本番 AI システムを実行するチーム向けに、エンタープライズグレードのプライベートデプロイメントをサポートしています。プライベートネットワーキング、カスタムセキュリティコントロール、ガバナンスに加えて、エンタープライズデプロイメントでは、アダプティブロードバランシング、クラスタリング、ガードレール、MCP ゲートウェイなど、エンタープライズグレードのスケールと信頼性のために設計された高度な機能を利用できます。


主な機能

コアインフラストラクチャ

高度な機能

  • Model Context Protocol (MCP) - AI モデルが外部ツール(ファイルシステム、Web 検索、データベース)を使用できるようにする

  • セマンティックキャッシュ - セマンティックな類似性に基づくインテリジェントなレスポンスキャッシュにより、コストとレイテンシを削減

  • マルチモーダルサポート - テキスト、画像、音声、ストリーミングを共通インターフェースでサポート

  • カスタムプラグイン - 分析、モニタリング、カスタムロジックのための拡張可能なミドルウェアアーキテクチャ

  • ガバナンス - 使用状況追跡、レート制限、きめ細かいアクセス制御

エンタープライズとセキュリティ

  • 予算管理 - 仮想キー、チーム、顧客予算による階層的なコスト管理

  • ユーザープロビジョニング (OIDC) - チーム、ロール、ビジネスユニットのバックグラウンドディレクトリ同期を備えた OAuth 2.0 / OIDC ログイン

  • 可観測性 - ネイティブの Prometheus メトリクス、分散トレーシング、包括的なロギング

  • シークレット管理 - 環境変数とデプロイメントシークレットによる安全な API キー管理

開発者エクスペリエンス


リポジトリ構造

Bifrost は最大限の柔軟性を実現するモジュラーアーキテクチャを採用しています:

bifrost/
├── npx/                 # NPX script for easy installation
├── core/                # Core functionality and shared components
│   ├── providers/       # Provider-specific implementations (OpenAI, Anthropic, etc.)
│   ├── schemas/         # Interfaces and structs used throughout Bifrost
│   └── bifrost.go       # Main Bifrost implementation
├── framework/           # Framework components for data persistence
│   ├── configstore/     # Configuration storage backends
│   ├── logstore/        # Request logging storage backends
│   └── vectorstore/     # Vector storages
├── transports/          # HTTP gateway and other interface layers
│   └── bifrost-http/    # HTTP transport implementation
├── ui/                  # Web interface for HTTP gateway
├── plugins/             # Extensible plugin system
│   ├── governance/      # Budget management and access control
│   ├── jsonparser/      # JSON parsing and manipulation utilities
│   ├── logging/         # Request logging and analytics
│   ├── maxim/           # Maxim's observability integration
│   ├── mocker/          # Mock responses for testing and development
│   ├── semanticcache/   # Intelligent response caching
│   └── telemetry/       # Monitoring and observability
├── docs/                # Documentation and guides
└── tests/               # Comprehensive test suites

開始オプション

ニーズに合ったデプロイメント方法を選択してください:

1. Gateway (HTTP API)

最適な用途: 言語に依存しない統合、マイクロサービス、本番デプロイメント

# NPX - Get started in 30 seconds
npx -y @maximhq/bifrost

# Docker - Production ready
docker run -p 8080:8080 -v $(pwd)/data:/app/data maximhq/bifrost

機能: Web UI、リアルタイムモニタリング、マルチプロバイダー管理、ゼロ設定スタートアップ

詳細: Gateway セットアップガイド

2. Go SDK

最適な用途: 最大のパフォーマンスと制御を備えた直接的な Go 統合

go get github.com/maximhq/bifrost/core

機能: ネイティブ Go API、組み込みデプロイメント、カスタムミドルウェア統合

詳細: Go SDK ガイド

3. ドロップイン置換

最適な用途: コード変更なしで既存アプリケーションを移行

# OpenAI SDK
- base_url = "https://api.openai.com"
+ base_url = "http://localhost:8080/openai"

# Anthropic SDK
- base_url = "https://api.anthropic.com"
+ base_url = "http://localhost:8080/anthropic"

# Google GenAI SDK
- api_endpoint = "https://generativelanguage.googleapis.com"
+ api_endpoint = "http://localhost:8080/genai"

詳細: 統合ガイド


パフォーマンス

Bifrost は AI リクエストに実質的にオーバーヘッドを追加しません。持続的な 5,000 RPS のベンチマークでは、ゲートウェイはリクエストあたりわずか 11 µs のオーバーヘッドを追加しました。

メトリック

t3.medium

t3.xlarge

改善

追加レイテンシ (Bifrost オーバーヘッド)

59 µs

11 µs

-81%

5k RPS での成功率

100%

100%

失敗したリクエストなし

平均キュー待ち時間

47 µs

1.67 µs

-96%

平均リクエストレイテンシ (プロバイダー含む)

2.12 s

1.61 s

-24%

主なパフォーマンスハイライト:

  • 完璧な成功率 - 5k RPS でも 100% のリクエスト成功率

  • 最小限のオーバーヘッド - リクエストあたり 15 µs 未満の追加レイテンシ

  • 効率的なキューイング - サブマイクロ秒の平均待ち時間

  • 高速なキー選択 - 重み付け API キーの選択に約 10 ns

完全なベンチマーク: パフォーマンス分析


ドキュメント

完全なドキュメント: https://docs.getbifrost.ai

クイックスタート

機能

統合

エンタープライズ


ヘルプが必要ですか?

Discord に参加 して、コミュニティサポートとディスカッションを利用してください。

次のようなヘルプを入手できます:

  • クイックセットアップの支援とトラブルシューティング

  • ベストプラクティスと設定のヒント

  • コミュニティディスカッションとサポート

  • 統合に関するリアルタイムヘルプ


コントリビューション

あらゆる種類のコントリビューションを歓迎します! コントリビューションガイド で次のことを確認してください:

  • 開発環境のセットアップ

  • コード規約とベストプラクティス

  • プルリクエストの提出方法

  • ローカルでのビルドとテスト

開発要件とビルド手順については、開発セットアップガイド を参照してください。


ライセンス

このプロジェクトは Apache 2.0 ライセンスの下でライセンスされています - 詳細は LICENSE ファイルを参照してください。

Maxim によって ❤️ を込めて作られました。

A
license - permissive license
Not graded
quality - not tested
Not graded
maintenance - not tested

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    C
    quality
    D
    maintenance
    A powerful gateway for the Model Context Protocol (MCP) that unifies AI toolchains by federating multiple MCP servers, wrapping REST APIs as MCP tools, and supporting multiple transport methods with an admin dashboard.
    1
  • A
    license
    Not graded
    quality
    D
    maintenance
    MCPGate aggregates multiple MCP servers into a single unified endpoint, enabling centralized tool management with granular filtering, automatic namespacing, and observability. Features a real-time web dashboard and optional PostgreSQL-backed audit trails for monitoring and controlling AI tool access across local and remote deployments.
    17
    Apache 2.0
  • F
    license
    Not graded
    quality
    A
    maintenance
    A production-ready MCP gateway and control plane that provides credential vault, policy engine, audit logging, and managed runtime for routing tool calls between AI agents and downstream MCP servers.
    57
  • A
    license
    Not graded
    quality
    A
    maintenance
    An open-source MCP gateway for AI operators, connecting any LLM to a hot-reloadable connector registry with production-grade approval gates and a built-in control plane for session management.
    MIT

View all related MCP servers

Related MCP Connectors

  • Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.

  • Enterprise AI Control Plane: governance, guardrails, spend tracking, compliance & smart routing.

  • Hosted MCP server for LLM cost estimation, model comparison, and budget-aware routing.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/maximhq/bifrost'

If you have feedback or need assistance with the MCP directory API, please join our Discord server