Platform teams rolling out Model Context Protocol (MCP) servers beyond a few developer laptops hit the same inflection point: connecting every agent directly to every MCP server creates unmanageable secret sprawl, inconsistent OAuth implementations, and zero central visibility. At that point, most engineering teams evaluate open-source MCP gateways first — especially Linux Foundation agentgateway, IBM ContextForge, LiteLLM's MCP gateway, and Lasso Security's open-source MCP gateway.

This guide compares those four open-source projects on architecture, strengths, and operational trade-offs, then outlines when an open-source data plane is the right fit versus when a full governance control plane makes more sense. Disclosure: Praesidia is our product and appears in the comparison table below; every open-source project is described solely from its public documentation as of November 2026. For the broader commercial + open-source landscape, see our MCP gateway comparison 2026.

Side-by-side comparison of open-source MCP gateways (November 2026)

Option Maintainer / governance Architectural focus (per public docs) Best fit for What you still build or operate
agentgateway Linux Foundation (donated by Solo.io) Single high-performance data plane routing service, LLM, MCP, and A2A traffic in one binary Cloud-native / Kubernetes platform teams wanting one unified proxy across AI and service traffic Policy UX, human approval workflows, compliance reporting, and tamper-evident audit archiving
IBM ContextForge Open source under IBM GitHub org Registry and federation proxy unifying MCP, A2A, and REST/gRPC APIs behind one endpoint with plugins Platform teams federating legacy REST/gRPC services alongside MCP servers with custom plugins Hardening, secret management, multi-environment ops, and formal audit verification
LiteLLM MCP Gateway BerriAI / LiteLLM open source Extends LiteLLM's multi-provider LLM proxy with per-key MCP access, tool policies, and spend tracking Teams already operating LiteLLM for model routing that want MCP access under the same virtual keys Standalone agent identity lifecycle, offline-verifiable audit bundles, and EU AI Act workflows
Lasso MCP Gateway Lasso Security (open-source repo) Plugin-based MCP interceptor focused on sanitizing sensitive data and scanning server risk before loading Security teams prioritizing content/PII sanitization on the MCP path Broader fleet identity, multi-agent delegation governance, and cross-provider cost controls
Praesidia (disclosed: ours) Managed control plane (EU-incorporated) MCP gateway integrated with agent identity, bidirectional guardrails, approvals, model budgets, and offline-verifiable audit trails Teams wanting identity, MCP tool policy, guardrails, cost controls, and compliance evidence governed together Trade-off: broader control-plane scope if all you want is a minimal self-hosted reverse proxy

Deep dive into each open-source architecture

1. Linux Foundation agentgateway

Donated by Solo.io to the Linux Foundation, agentgateway comes directly out of the cloud-native service-mesh world. Its public architecture positions a single data-plane binary to mediate LLM traffic, MCP tool calls, Agent-to-Agent (A2A) calls, and ordinary service traffic with consistent routing, observability, and security primitives.

  • Strength: Consolidates multiple AI proxy layers into one cloud-native binary that fits naturally beside Kubernetes ingress/egress infrastructure.
  • Trade-off: It is a data-plane proxy, not a turnkey compliance or governance application. Your team owns policy management workflows, approval UIs, compliance evidence packaging, and upgrade cadence.

2. IBM ContextForge

IBM's open-source ContextForge approaches the problem as a federation gateway and registry. Rather than proxying MCP alone, its public repository focuses on wrapping existing REST/gRPC APIs, MCP servers, and A2A agents behind one federated registry with discovery and a plugin architecture.

  • Strength: Valuable when an enterprise has dozens of internal REST APIs it wants to expose cleanly as governed MCP tools without writing one-off wrappers for every backend.
  • Trade-off: Operating a central federation registry that holds upstream backend credentials becomes Tier-0 infrastructure — you own plugin security, secret encryption at rest, HA scaling, and incident response.

3. LiteLLM MCP Gateway

LiteLLM started as a widely adopted open-source LLM proxy abstracting model provider APIs behind virtual keys and spend limits, and added MCP gateway documentation covering per-key/per-team MCP server access, tool policies, and guardrails.

  • Strength: Zero new proxy hop if your engineering organization already runs LiteLLM in production for model routing and virtual keys.
  • Trade-off: Because LiteLLM grew around model-key proxying, organizations needing distinct non-human agent identities, signed offline-verifiable audit bundles, EU AI Act risk classification, or multi-step human approvals typically end up gluing extra systems around it. See LiteLLM enterprise alternatives for a fuller breakdown.

4. Lasso Security Open-Source MCP Gateway

Lasso's open-source MCP gateway emphasizes a plugin pipeline designed specifically around security inspection — intercepting MCP requests and responses to sanitize sensitive information and checking server security risk prior to loading.

  • Strength: Fast path to adding content sanitization in front of developer or staging MCP servers without committing to a full gateway rewrite.
  • Trade-off: Focused primarily on content-layer sanitization rather than full agent identity, per-tool rate limits, model spend caps, or compliance evidence.

Five tests to run on any MCP gateway before production

Whether you deploy an open-source proxy or a managed control plane, run these five concrete tests in a staging environment before approving it for production agents:

  1. Tool-level allow-listing & schema drift: Allow only read_ticket on a server that also exposes delete_ticket. Confirm delete_ticket is blocked at the gateway — and confirm that if the server adds a new tool later, the gateway does not silently grant it. (See MCP rug-pull attacks and tool pinning.)
  2. Upstream credential isolation: Verify that the agent receives zero upstream SaaS or database tokens — only a revocable gateway credential — and confirm that revoking that credential immediately blocks subsequent tool calls.
  3. SSRF & redirect blocking: Attempt to register an MCP server URL pointing to loopback (127.0.0.1), RFC 1918 private addresses, or a 302 redirect to 169.254.169.254, and confirm the gateway refuses it.
  4. In-band argument & result inspection: Send a seeded secret or prompt-injection string inside both tool arguments and simulated MCP tool output, and verify the gateway blocks or redacts before the payload reaches the downstream server or the LLM.
  5. Fail-closed behavior & audit reconstruction: Cut connectivity between the proxy and its policy store, confirm requests fail closed rather than allowing traffic unchecked, and inspect whether the resulting audit log captures caller identity, server, tool, decision, and tamper evidence.

Before wiring up your first gateway, you can also audit your existing client mcp.json files locally in the browser with our MCP config security checker, or read the full MCP server governance guide.

When to self-host an open-source gateway vs. use a governance control plane

  • Choose an open-source gateway (agentgateway, ContextForge, LiteLLM, Lasso) when you have a dedicated platform-engineering team that wants full control over a self-hosted proxy binary, already owns identity/audit/approval infrastructure, and primarily needs a programmable network hop.
  • Choose a governance control plane (Praesidia's category) when you want MCP tool governance, per-agent identity, bidirectional guardrails, approval holds, model spend caps, EU AI Act classification, and offline-verifiable audit evidence (for calls routed through it) working together out of the box without assembling five separate tools. Compare build vs. buy economics in build vs. buy for AI agent governance, explore Praesidia's MCP gateway, or check verifiable audit evidence.

Common questions

What is the main difference between agentgateway and IBM ContextForge? Per their public documentation, Linux Foundation agentgateway centers on a unified high-performance cloud-native data plane for LLM, MCP, A2A, and service traffic, whereas IBM ContextForge centers on a federation registry and plugin gateway that wraps MCP, A2A, and legacy REST/gRPC APIs behind one endpoint.

Can LiteLLM act as both an LLM proxy and an MCP gateway? Yes — LiteLLM's documentation includes an MCP gateway layer that reuses virtual keys and team scopes for MCP server access and tool policies. Teams already operating LiteLLM often test it first, then evaluate whether they need dedicated agent identity, approval workflows, or tamper-evident audit bundles beyond proxy logs.

Do open-source MCP gateways protect against MCP tool poisoning automatically? Not by default. A pure transport proxy forwards tools/list metadata and JSON-RPC payloads opaquely unless you enable or author content-inspection plugins, schema-pinning checks, and strict per-connection tool allow-lists.

How does Praesidia compare to open-source MCP gateways? Praesidia includes an MCP gateway as one layer of a broader AI agent governance control plane: registered MCP servers, per-connection tool permissions, argument and result guardrails, per-tool rate limits, and hash-chained audit decisions (signed under default configuration) for calls passing through Praesidia, with a free Developer workspace to test before scaling.