Skip to main content
Upcoming Webinar:

Getting Started with OpenObserve.

December 03, 2026.
11:00 AM ET.
Register

MCP Gateways: What They Are and the Best Open-Source Options (2026)

Manas Sharma
Manas Sharma.
Updated November 25, 2026.
20 min read.
Don't forget to share!
TwitterLinkedInFacebook

Ready to get started?

Try OpenObserve Cloud today for more efficient and performant observability.

MCP gateway architecture and open-source options 2026

You've given your engineering team AI assistants. Claude runs in their IDEs, ChatGPT runs with custom GPTs, and agents can query production systems. Now you face a new problem: how do you govern, secure, and observe dozens of AI agents connecting to hundreds of internal tools?

This is exactly what an MCP gateway solves. An MCP gateway (Model Context Protocol gateway) is a central proxy layer. It sits between your AI agents and MCP servers. It handles auth, routing, rate limits, policy, and observability for all AI-to-tool traffic.

More teams now use the Model Context Protocol (MCP) to connect AI agents to internal systems. So the MCP gateway has become core infrastructure. Without a gateway, every AI agent connects straight to every MCP server. That creates a tangled mesh of point-to-point links. Auth differs from server to server. And you can't see what your AI agents are doing in production.

In 2026, the MCP roadmap made enterprise readiness a top priority. It focuses on gateway patterns, SSO-integrated auth, and audit trails. This guide explains how MCP gateways work and compares the leading options. It also shows how OpenObserve's native MCP server fits into your gateway stack. That gives AI agents real-time access to production observability data.

TL;DR - Key Takeaways

  • MCP gateways = Centralized proxy between AI agents and MCP servers for auth, routing, policy enforcement, and observability.
  • Solves: Point-to-point connection mesh, inconsistent auth, no visibility, ungoverned AI tool access.
  • Best open-source MCP gateways in 2026: ContextForge (fully open-source, by IBM), Cloudflare AI Gateway (edge-native free tier), Kong AI Gateway (enterprise MCP Proxy plugin), Bifrost (Kubernetes-native).
  • Core capabilities: Authentication/authorization, intelligent routing, rate limiting, policy enforcement, audit logging, observability.
  • OpenObserve MCP server: Provides AI agents governed access to logs, metrics, and traces through your MCP gateway.
  • Observing MCP gateway traffic: Send gateway telemetry to OpenObserve via OpenTelemetry for SQL-queryable dashboards of all agent-to-tool interactions.
  • 2026 priority: MCP roadmap focuses on enterprise patterns: SSO auth, stateless gateways, audit trails.

What Is an MCP Gateway?

An MCP gateway is a middle layer. It makes it simpler for AI apps to connect to many MCP servers. Without one, each AI agent (Claude, ChatGPT, custom agents) keeps direct links to every tool server. Those include databases, APIs, observability platforms, and code repos. The gateway instead acts as a single point of entry that handles:.

  • Authentication and authorization: Who can access which MCP servers.
  • Request routing: Sending agent requests to the right backend servers.
  • Policy enforcement: Applying company rules (e.g., "dev agents can't access prod databases").
  • Rate limiting: Stopping agents from flooding backend systems.
  • Observability: Logging and monitoring all AI-to-tool traffic.
  • Protocol translation: Bridging MCP with non-MCP APIs when needed.

Think of it as an API gateway specifically designed for AI agent traffic. API gateways sit in front of microservices. In the same way, MCP gateways sit in front of MCP servers.

Why MCP Gateways Are Critical in 2026

David Soria Parra (Lead Maintainer) published the 2026 MCP roadmap. It speaks directly to the gateway challenge:.

"Enterprises are deploying MCP and running into a predictable set of problems: audit trails, SSO-integrated auth, gateway behavior, and configuration portability."

Without an MCP gateway, teams face:.

  1. Connection sprawl: 10 agents × 20 MCP servers = 200 direct connections to manage.
  2. Auth inconsistency: Every MCP server handles auth its own way (API keys, OAuth, basic auth).
  3. Zero visibility: There is no central view of what AI agents are doing.
  4. Security gaps: There is no way to enforce "dev agents can't access prod" policies.
  5. Scaling challenges: Each new agent means updating access on all servers.

The MCP gateway turns this chaos into one control plane you can govern.

How MCP Gateways Work: The Technical Architecture

Technically, an MCP gateway is a reverse proxy with MCP protocol awareness. Here's the request flow:.

AI Agent (Claude)
    ↓ MCP Request
MCP Gateway
    ↓ Authentication Check
    ↓ Policy Evaluation
    ↓ Route Selection
    ↓ Rate Limit Check
MCP Server (e.g., OpenObserve)
    ↓ Tool Execution
    ↓ Response
MCP Gateway (logs, observes)
    ↓
AI Agent (receives result)

Core Technical Capabilities

1. Authentication and Authorization.

MCP gateways handle auth in one place for all backend servers:.

  • SSO integration: Agents sign in once via OAuth/OIDC, and the gateway passes their identity along.
  • Token management: The gateway handles refresh tokens and rotates credentials.
  • Authorization policies: "Agent X can access MCP servers Y and Z but not W."
  • Credential injection: The gateway adds the right auth headers when it forwards requests to backend servers.

According to the MCP 2026 roadmap, enterprise-managed auth focuses on "paved paths away from static client secrets and toward SSO-integrated flows."

2. Intelligent Routing.

Gateways route requests based on:.

  • Tool/resource names: A request for openobserve.query_logs → routes to the OpenObserve MCP server.
  • Agent identity: Dev agents route to staging servers, and prod agents route to prod.
  • Load balancing: Spread requests across many copies of the same MCP server.
  • Failover: Retry failed requests on backup servers.

3. Policy Enforcement.

Gateways apply company rules:.

  • Resource access controls: "Agent can read logs but not delete dashboards."
  • Time-based policies: "Dev agents can only access prod systems during business hours."
  • Data classification: "PII-tagged tools require additional approval."
  • Request validation: Block malformed or malicious MCP requests.

4. Rate Limiting and Throttling.

Protect backend systems from agent overload:.

  • Per-agent limits: Each agent gets N requests/minute.
  • Per-server limits: The OpenObserve MCP server handles M total requests/minute.
  • Adaptive throttling: Slow down agents when backend latency rises.
  • Cost management: Limit costly LLM operations (if the gateway proxies LLM calls too).

5. Observability and Audit Logging.

This is key for production:.

  • Request/response logging: Every MCP call is logged with timestamp, agent, tool, and result.
  • Latency metrics: Track p50/p95/p99 latency for each MCP server.
  • Error tracking: Watch failure rates and sort errors by type.
  • Audit trails: Keep compliance-ready logs of all AI agent actions.
  • Anomaly detection: Flag unusual agent behavior (like a sudden spike in database queries).

6. Protocol Translation.

Some gateways bridge MCP with non-MCP systems:.

  • REST → MCP: Expose existing REST APIs as MCP tools without rewriting them.
  • MCP → REST: Let MCP clients call HTTP APIs.
  • GraphQL support: Some gateways translate between MCP and GraphQL.

Kong AI Gateway added this capability in version 3.12 with the AI MCP Proxy plugin.

MCP Gateway vs. AI Gateway: What's the Difference?

You might have heard of "AI gateways" from vendors like Cloudflare and Kong. How do they relate to MCP gateways?

AI Gateway is the broader term. It means any proxy layer in front of AI infrastructure. This includes:.

  • LLM gateways: Proxy LLM API calls (OpenAI, Anthropic) for caching, retries, and rate limits.
  • MCP gateways: Proxy MCP protocol traffic for AI-to-tool communication.
  • Vector DB gateways: Proxy embeddings and similarity search.

MCP Gateway is one type of AI gateway. It handles Model Context Protocol traffic. Some products (Cloudflare AI Gateway, Kong AI Gateway) support both LLM proxying and MCP protocol. They're multi-purpose AI gateways.

Key distinction:.

  • An LLM gateway manages traffic to AI models (your app → OpenAI).
  • An MCP gateway manages traffic from AI agents to your internal tools (Claude → your databases/APIs).

Most production AI setups need both.

Top MCP Gateway Options in 2026

Here are the leading MCP gateway solutions. This list draws on current deployments and the MCP roadmap priorities.

Gateway. Best For. MCP Support. Auth. Deployment. Pricing.
Cloudflare AI Gateway. Edge-native teams. Yes (full MCP proxy). Workers Auth, SSO. SaaS (global edge). Free tier + usage-based.
Kong AI Gateway. Enterprise API management. Yes (MCP Proxy plugin). OAuth, JWT, API keys. Self-hosted or Cloud. Enterprise license.
ContextForge. Open-source deployments. Yes (native MCP registry). Configurable. Self-hosted (Docker). Free (open source).
Bifrost. Kubernetes-native teams. Yes. K8s RBAC integration. Helm chart. Usage-based.

Cloudflare AI Gateway

Cloudflare AI Gateway extends Cloudflare's edge platform into the AI layer. It gives one interface to many LLM providers and MCP servers. It handles caching, retries, rate limits, and analytics. All of this is built into Cloudflare's global network.

Pros:.

  • Global edge deployment gives low latency everywhere.
  • One gateway handles LLM calls and MCP traffic.
  • The free tier includes 100,000 AI Gateway logs/month.
  • It works closely with Cloudflare Workers for custom logic.

Cons:.

  • It locks you in to the Cloudflare ecosystem.
  • It offers less customization than open-source options.
  • High-volume deployments need a paid Workers plan to lift log limits.

Best for: Teams deeply invested in Cloudflare who want AI traffic managed next to their edge infrastructure.

Kong AI Gateway

Kong AI Gateway builds on Kong's proven API management framework and extends it to AI traffic. Kong added first-class MCP support in Gateway 3.12 with the AI MCP Proxy plugin. The plugin translates between MCP and HTTP.

Pros:.

  • You manage MCP traffic next to REST APIs, with the same governance.
  • It has enterprise-grade auth (OAuth, OIDC, mTLS).
  • It offers a semantic caching plugin for AI responses (since version 3.8).
  • It has a mature plugin ecosystem for custom policies.

Cons:.

  • It's heavy if you don't already use Kong.
  • Full features need an enterprise license.
  • It's harder to learn than SaaS options.

Best for: Teams with existing Kong deployments. They can manage MCP traffic through the same infrastructure they use for REST APIs.

ContextForge (Open Source)

ContextForge is an open-source MCP registry and proxy built by IBM. It federates any MCP server, A2A server, or REST/gRPC API. It gives you central governance, discovery, and observability.

Pros:.

  • It's fully open source, with no vendor lock-in.
  • It's self-hosted, so you keep full control of your data.
  • It supports MCP and non-MCP APIs in one gateway.
  • It has an active community.

Cons:.

  • You manage the infrastructure (there is no SaaS option).
  • Its ecosystem is smaller than commercial options.
  • It needs more hands-on ops skill.

Best for: Teams that need full control over their AI infrastructure and prefer open-source solutions.

Bifrost

Bifrost is a Kubernetes-native MCP gateway built for cloud-native deployments. It plugs straight into K8s RBAC for authorization. It uses service mesh patterns for routing.

Pros:.

  • It has native Kubernetes integration (Helm charts, CRDs).
  • It uses RBAC for authorization, so you need no separate auth system.
  • It works with service meshes (Istio, Linkerd).
  • It has horizontal autoscaling out of the box.

Cons:.

  • It's Kubernetes-only (not for non-containerized deployments).
  • It's fairly new, with a smaller community.
  • Pricing is usage-based, so it can get costly at scale.

Best for: Kubernetes-native teams running AI agents as containerized workloads.

OpenObserve MCP Server: Observability in Your MCP Stack

Most MCP gateways focus on general tool access. But what about observability? Your AI agents need real-time access to logs, metrics, and traces. They use that data to diagnose production issues, look into incidents, and answer ops questions.

This is where OpenObserve's native MCP server fits into your MCP gateway architecture.

How OpenObserve Works as an MCP Server

OpenObserve offers a production-ready MCP server implementation built in Rust. It exposes your whole observability stack through the Model Context Protocol. AI agents that connect through your MCP gateway can:.

  • Query logs: "Show me errors in payment-service in the last hour."
  • Analyze metrics: "What's the p95 latency for the API gateway today?"
  • Trace requests: "Find the slowest database queries affecting checkout."
  • Manage dashboards: "Create a dashboard for order processing metrics."
  • Configure alerts: "Set up an alert if error rate exceeds 5%."

The OpenObserve MCP server auto-generates 161 tools from OpenObserve's OpenAPI spec. They cover the full observability API.

Three Processing Modes

The OpenObserve MCP server supports several ways to interact:.

1. AI Agent Mode (multi-step autonomous execution):.

Engineer: "Create a sales dashboard and alert me if revenue drops below $100k"
→ AI Agent plans workflow
→ Step 1: CreateDashboard
→ Step 2: CreateAlert with revenue threshold
→ Reports: "Dashboard created at /dashboards/sales, alert configured for revenue < $100k"

2. LLM Mode (single-step AI-powered tool selection):.

Engineer: "show me recent error logs"
→ AI selects best matching API operation (SearchLogs)
→ Executes with extracted parameters
→ Returns formatted results

3. Semantic Fallback Mode (rule-based, no LLM required):.

Engineer: "create a dashboard called 'My Dashboard'"
→ Pattern matching extracts parameters
→ Executes CreateDashboard API
→ Asks for missing fields if needed

Architecture: OpenObserve Behind Your MCP Gateway

Here's how OpenObserve fits into your MCP gateway stack:.

Claude Desktop / IDE → MCP Gateway (Cloudflare/Kong/ContextForge)
                            ↓ Auth, Policy, Rate Limit
                       OpenObserve MCP Server
                            ↓ 161 Auto-Generated Tools
                       OpenObserve API (Logs, Metrics, Traces)

Key benefits of this architecture:.

  1. Governed access: The gateway controls who can query which data (dev vs. prod access).
  2. Audit trails: All observability queries are logged through the gateway.
  3. Rate limiting: Agents can't flood OpenObserve with queries.
  4. SSO integration: Engineers' AI assistants inherit their identity and permissions.
  5. Observability of observability: The gateway tracks how agents use observability data.

Quick Setup: OpenObserve MCP Server Behind a Gateway

Here's a short guide to connecting OpenObserve to your MCP gateway. For full details, see the official OpenObserve MCP documentation.

Step 1: Deploy OpenObserve MCP Server.

# Clone and build
git clone https://github.com/openobserve/openobserve
cd openobserve/mcp
cargo build --release

# Configure
export O2_BASE_URL=https://your-openobserve.com/api
export O2_PORT=3000
export API_KEY=your_openobserve_api_key
export LLM_PROVIDER=anthropic  # or openai

# Run
cargo run

The server starts on http://localhost:3000. It exposes 161 tools via MCP protocol.

Step 2: Register OpenObserve with Your MCP Gateway.

For Cloudflare AI Gateway:.

// Add MCP server to Cloudflare Workers config
{
  "mcp_servers": {
    "openobserve": {
      "url": "https://your-o2-mcp-server.com",
      "auth": {
        "type": "bearer",
        "token_env": "O2_API_KEY"
      }
    }
  }
}

For Kong AI Gateway:.

# Create MCP service
curl -X POST http://kong:8001/services \
  --data name=openobserve-mcp \
  --data url=http://openobserve-mcp:3000

# Add MCP proxy plugin
curl -X POST http://kong:8001/services/openobserve-mcp/plugins \
  --data name=ai-mcp-proxy \
  --data config.auth_header=Authorization \
  --data config.auth_value=$O2_API_KEY

For ContextForge (open source):.

# contextforge-config.yaml
servers:
  - name: openobserve
    url: http://openobserve-mcp:3000
    protocol: mcp
    auth:
      type: api_key
      header: Authorization
      value: ${O2_API_KEY}
    tools:
      - pattern: "openobserve.*"
        description: "OpenObserve observability tools"

Step 3: Configure Claude Desktop.

If your engineers use Claude Desktop, set it to connect through your gateway:.

{
  "mcpServers": {
    "openobserve": {
      "command": "mcp-client",
      "args": [
        "--gateway", "https://your-mcp-gateway.com",
        "--server", "openobserve"
      ],
      "env": {
        "GATEWAY_TOKEN": "your_gateway_auth_token"
      }
    }
  }
}

Full Claude Desktop integration guide: OpenObserve MCP with Claude.

Step 4: Test the Integration.

In Claude Desktop:.

You: "Show me errors in the payment service from the last hour"

Claude: I'll query OpenObserve for recent errors in payment-service.
[Executes search_logs via gateway → OpenObserve MCP server]

Found 47 errors in payment-service:
- DatabaseConnectionTimeout (32 occurrences)
- InvalidCardNumber (12 occurrences)
- RateLimitExceeded (3 occurrences)

Would you like me to investigate the database timeout pattern?

The gateway logs this exchange, enforces rate limits, and keeps audit trails. Meanwhile, OpenObserve sends real-time production data to the agent.

Key Considerations When Deploying an MCP Gateway

Here are the key factors for MCP gateway success. They draw on production deployments and the 2026 MCP roadmap priorities.

1. Stateless Gateway Design

The MCP roadmap stresses "horizontal scaling, stateless operation, and middleware patterns." Design your gateway to:.

  • Store session state outside the gateway (Redis, database).
  • Allow several gateway instances behind a load balancer.
  • Avoid in-memory caches that break horizontal scaling.

2. Authorization Propagation

When an agent signs in to the gateway, that identity must pass on to backend MCP servers. Options:.

  • Token forwarding: The gateway passes the original auth token to servers.
  • Token exchange: The gateway swaps the agent token for server-specific credentials.
  • Impersonation: The gateway uses a service account but logs the agent identity.

Choose based on your security model and what your MCP servers support.

3. Observability of the Gateway Itself

The gateway is critical infrastructure. You need visibility into:.

  • Request volume and latency per MCP server.
  • Error rates and failure modes.
  • Auth failures and policy violations.
  • Resource use (CPU, memory, network).

Add gateway metrics to your existing observability stack. (Fittingly, you can send gateway logs to OpenObserve.)

4. Graceful Degradation

What happens when the gateway goes down? Design for:.

  • Circuit breakers: Stop sending traffic to failing backend servers.
  • Fallback policies: Let critical agents connect directly during gateway outages.
  • Health checks: The gateway monitors backend server health.

5. Cost Management

AI agents can create a lot of traffic. Watch costs for:.

  • Gateway infrastructure (compute, network).
  • Backend MCP server usage (especially with usage-based pricing).
  • LLM API calls (if the gateway also proxies LLM traffic).

Set budgets and quotas to stop runaway costs.

Common Questions About MCP Gateways

Do I need an MCP gateway if I only have a few AI agents?

With 1-2 agents connecting to 1-2 MCP servers, a gateway is overkill. Direct connections work fine. Once you pass 5+ agents or 3+ MCP servers, a gateway pays off for central auth and observability. At 10+ agents, it's essential.

Can I use an API gateway (like NGINX or Envoy) as an MCP gateway?

Partly. General API gateways can proxy MCP HTTP traffic, but they lack:.

  • MCP protocol awareness (no tool-level routing or observability).
  • AI-specific features (semantic caching, LLM integration).
  • MCP session management.

You'd need to build a lot of custom logic. Purpose-built MCP gateways are more practical.

How does an MCP gateway handle MCP server versioning?

This is a new challenge. Best practices:.

  • Gateway routes by version: /mcp/v1/openobserve vs. /mcp/v2/openobserve.
  • Capability negotiation: The gateway checks server capabilities and routes to a compatible version.
  • Graceful deprecation: The gateway warns agents when they use deprecated tools.

The 2026 MCP roadmap covers "configuration portability," which will standardize this.

What about latency? Does the gateway slow down agent requests?

Yes, but only a little. A well-designed gateway adds 10-50ms of latency (auth check + routing + logging). That is tiny compared to:.

  • LLM inference time (500-5000ms).
  • Backend tool execution (100-1000ms for database queries and API calls).

Edge-deployed gateways (Cloudflare) cut latency by routing within each region.

Can AI agents bypass the gateway?

Only if you allow direct access. Best practice:.

  • Network isolation: MCP servers only accept connections from gateway IPs.
  • Firewall rules: Block direct agent-to-server traffic.
  • Credential management: Don't give server credentials to agents.

Enforce gateway use at the network and identity layers.

How do I migrate existing direct agent connections to use a gateway?

Use a phased approach:.

  1. Deploy gateway in shadow mode: It routes traffic but doesn't enforce policies.
  2. Migrate dev agents first: The risk is lower and you can iterate faster.
  3. Add observability: Check that all traffic flows correctly.
  4. Enable policy enforcement gradually: Start by logging violations, then block them.
  5. Migrate production agents: Do this once you trust the gateway's stability.
  6. Revoke direct access: Allow gateway-only connections.

Allow 4-8 weeks for a careful migration in production.

The Future of MCP Gateways

Expect these changes, based on the 2026 MCP roadmap and industry trends.

Q2-Q3 2026:.

  • Standardized gateway behavior: The MCP spec defines session propagation and auth patterns.
  • Agent-to-agent communication: Gateways route between agents that work together.
  • Enhanced observability: Distributed tracing covers multi-hop MCP calls.

Q4 2026:.

  • Policy-as-code frameworks: Gateway policies live under version control (like OPA).
  • Semantic routing: AI-powered routing works on intent, not just tool names.
  • Cost optimization: Gateways cache and dedupe costly operations on their own.

2027:.

  • Federated gateways: Multi-org gateway meshes support AI teamwork across companies.
  • Autonomous policy adaptation: Gateways learn the best policies from usage patterns.

The MCP gateway will grow from a simple proxy into an intelligent control plane for AI agent infrastructure.

Observing MCP Gateway Traffic with OpenObserve

Production MCP gateways generate telemetry you need to monitor: request volume, latency per MCP server, error rates, auth failures, and cost spikes from expensive tool calls. OpenObserve provides two complementary paths for this:.

1. Send Gateway Telemetry to OpenObserve

Configure your MCP gateway to export logs, metrics, and traces to OpenObserve via OpenTelemetry:.

# OTel Collector config: forward MCP gateway telemetry to OpenObserve
exporters:
  otlphttp/openobserve:
    endpoint: https://your-openobserve-instance/api/default/v1/traces
    headers:
      Authorization: "Basic <base64-encoded-credentials>"

service:
  pipelines:
    logs:
      exporters: [otlphttp/openobserve]
    metrics:
      exporters: [otlphttp/openobserve]
    traces:
      exporters: [otlphttp/openobserve]

This gives you SQL-queryable dashboards of all MCP gateway activity: which agents called which tools, latency per MCP server, and error rate trends.

2. Use OpenObserve MCP Server Through Your Gateway

The OpenObserve MCP server exposes 161 auto-generated tools over the Model Context Protocol, giving your AI agents governed access to query your observability data directly. Route it through your MCP gateway for auth and audit trails:.

AI Agent → MCP Gateway (auth, rate limit, audit log) → OpenObserve MCP Server → Production Telemetry

This creates a feedback loop: your MCP gateway logs go into OpenObserve, and your AI agents query those same logs through the OpenObserve MCP server. For complete setup instructions, see the OpenObserve MCP documentation and the MCP server integration guide.

Related reading:.

Take the Next Step

Ready to add observability to your MCP stack? OpenObserve's native MCP server gives your AI agents governed access to production logs, metrics, and traces. All of it routes through your MCP gateway for security and auditability.

Get started:.

Learn more about AI-powered observability:.


Sources:.

Frequently Asked Questions

About the Author

Manas Sharma

Manas Sharma

TwitterLinkedIn

Manas is a passionate Dev and Cloud Advocate with a strong focus on cloud-native technologies, including observability, cloud, kubernetes, and opensource. building bridges between tech and community.

Follow OpenObserve on Google

Add OpenObserve as a preferred source to see more of our articles in Google Search and Top Stories.

Latest From Our Blogs

View all posts