Build vs Buy an MCP Gateway (2026): Open-Source, Self-Hosted and Managed Options Compared

Build vs Buy an MCP Gateway (2026): Open-Source, Self-Hosted and Managed Options Compared

Facts last verified November 30, 2026 from each project's or vendor's public pages.

Build your own MCP gateway only if you have a dedicated platform team, a narrow and stable set of systems, and a requirement that no existing product meets. Run an open-source gateway if you want infrastructure control and can staff the operations. Buy if you need per-user identity, team-scoped permissions, an audit log and compliance evidence in weeks, not quarters. Most enterprises that connect Claude, ChatGPT and Cursor to business systems end up buying, and some run an open-source gateway underneath for routing.

A basic proxy is a few days of work. A gateway your security team will approve is a product you maintain for years. That gap is the whole decision.

Credal is the MCP gateway and agent builder for enterprise AI. It is the buy option for teams that do not want to give up control: per-user identity on every call, team-scoped MCP servers, tools off until approved, a full audit log, and deployment in Credal's cloud, as managed single-tenant, in your own cloud or on-premises. Checkr weighed building in-house, chose Credal, and saw the accuracy of AI answers over its Salesforce data rise from 13% to 86%. See how Credal's MCP gateway works.

Disclosure. Credal sells an MCP gateway. This guide treats building and open source fairly and says when they are the better answer.

Key takeaways

  • Building gets you a proxy. Production needs much more: per-user identity, permission inheritance, team-scoped access, value-level rules, tool-change detection, audit export and compliance evidence.
  • Open source is a real option, not a shortcut. Obot, IBM ContextForge, Docker's MCP Gateway and agentgateway are all public. Each leaves identity mapping, business rules, upgrades and compliance evidence to you.
  • Buying does not mean SaaS only. Credal, TrueFoundry, Runlayer, Composio, Kong and Arcade each describe a self-hosted, VPC or on-premises option.
  • Credal is the managed option built for this decision. It gives you per-user identity, team-scoped permissions, approvals, audit and a choice of where it runs without a build, including your own cloud or on-premises.
  • If Claude is one of your AI tools, plan for reachability. Claude connects to custom connectors from Anthropic's cloud, so a gateway you host has to be reachable from there.
  • Count people, not licences. Use the cost worksheet below with your own numbers.

What are you actually deciding?

You are deciding who runs the control layer between AI tools and your business systems. There are four realistic paths:

  1. Use native connectors only. This is enough when one AI tool reaches a few systems. Claude Enterprise, for example, lets Owners turn connectors on, set each connector tool to Always allow, Needs approval or Blocked for the whole organization, and limit connector permissions by custom role. Each person still signs in to each service, and Claude inherits that person's permissions.
  2. Build your own gateway.
  3. Run an open-source gateway.
  4. Buy a commercial gateway, in the vendor's cloud or in yours.

Native connectors stop being enough when more than one AI tool is in play, when different teams need different access to the same system, when you need to limit the values an agent can send, or when security wants one audit log across every tool. That is when the gateway decision starts.

What a finished MCP gateway has to do

The proxy is the easy part. A gateway that passes security review has to do all of this, and each item is ongoing work:

  1. Per-user identity on every call, through SSO and SCIM.
  2. Permissions inherited from each source system, and kept in sync as people change teams.
  3. Team-scoped servers, so one connection to Salesforce becomes different servers for different teams.
  4. Tools off until approved, with an allowlist per team.
  5. Value-level rules, such as limiting which record types, stages or regions an agent may change.
  6. Change detection that pauses a tool whose definition changed after approval.
  7. Input and output protection against prompt injection and sensitive data leaving through tool responses.
  8. A complete audit log of allowed and rejected calls, exported to your SIEM.
  9. A registry of approved servers and agents, with owners and versions.
  10. Compatibility with every AI client you use, and with new MCP spec versions as they ship.
  11. Evidence for security review: SOC 2 reports, deployment options and, for health data, a BAA.

What an MCP gateway is and how it works explains how these pieces fit together.

How Credal covers this list. Credal provides per-user identity through SAML/SSO and SCIM, permissions inherited from the source system, team-scoped servers, tools off until approved, value-level rules, paused tools when a definition changes, and a full audit log with Splunk and OpenTelemetry export. These are the items most teams underestimate when they plan to build.

The case for building your own

Building makes sense when you have a platform team that wants to own this layer. It fits best when:

  • You connect a few source systems and AI tools, and expect that to stay true.
  • Your requirements are unusual, for example an internal identity system or protocol that no product supports.
  • You can staff on-call and security response for the gateway.
  • The gateway is itself part of what you sell.

The first version is cheap. The cost arrives later. It shows up each time something changes: a new source system, a new AI client, a new MCP spec revision, a schema change in a system you connected, a new security-review request, or a new team with different access rules. Both Checkr and Guidewheel weighed building in-house and chose to buy, because maintenance grew with every instance, schema change and AI tool.

One practical constraint if you use Claude

Claude connects to custom connectors from Anthropic's cloud, not from the user's device, even in Claude Desktop and Cowork. A gateway you host has to be reachable over the public internet, or reachable by allowlisting Anthropic's published IP ranges. Plan this early, because it shapes your network design. Anthropic's custom connectors guide has the network requirements, and it warns that custom connectors reach services Anthropic has not verified.

The case for open source

Open-source gateways give you control and no licence fee. They also give you the operations. Four projects come up most often.

Obot

  • What it is: an open-source platform that combines MCP hosting, a registry, a gateway and a chat client. It deploys on Kubernetes with Helm.
  • What it offers: OAuth 2.1, encryption, audit logging, virtual MCP servers that combine several catalog servers behind one endpoint, and filters that inspect, reject or modify MCP requests and responses. Obot is MIT-licensed, and it says its Community and Enterprise editions run the same open-source code and differ only by licence key.
  • You operate: the Kubernetes deployment, identity provider setup, upgrades and the policies themselves.

IBM ContextForge

  • What it is: an open-source (Apache 2.0) gateway, registry and proxy that federates MCP servers, A2A agents and REST or gRPC APIs behind one endpoint, with OpenTelemetry observability.
  • How you run it: from PyPI, as a container, or with Helm charts on Kubernetes.
  • Watch for: it is an open-source project, so confirm what support is available for your deployment and plan to own operations yourself.

Docker MCP Gateway

  • What it is: an open-source gateway from Docker that runs MCP servers in isolated containers and sits between AI clients and those servers. Options include verifying signatures, logging calls and blocking secrets.
  • Watch for: Docker's documentation says the MCP Gateway as part of Docker AI Governance is an invite-only feature, so check what the open-source project includes compared with the governed offering. Its focus is isolating and routing servers. Check how it handles per-user identity and team-level permissions in your setup.

agentgateway

  • What it is: an open-source (Apache 2.0) gateway created by Solo.io and now hosted by the Agentic AI Foundation under the Linux Foundation. It combines a control plane and a proxy data plane for MCP, A2A, LLM inference, HTTP and gRPC traffic.
  • What it offers: MCP virtualization, which federates several tool servers behind one access point with tool-level access policy.
  • You operate: the infrastructure, and you design identity mapping, business rules and audit retention on top.

What open source does not give you: a vendor that signs a BAA, a SOC 2 report for your deployment, permission sync built for each source system, or a support line at 2 a.m. You can build all of that. It is the work in the cost worksheet below.

The case for buying

Buying means paying someone else to carry the maintenance. It does not have to mean a shared SaaS. These commercial options each describe a way to run in your own environment (vendor-stated, November 2026):

  • Credal: the MCP gateway and agent builder for enterprise AI. Runs in multi-tenant cloud, managed single-tenant, your own cloud, or on-premises, with SOC 2 Type 2 and HIPAA support.
  • TrueFoundry: SaaS on lower plans. VPC, on-premises and air-gapped options are Enterprise-only.
  • Runlayer: Runlayer-hosted SaaS, or self-hosted in your VPC with Terraform (ECS) or Helm (EKS).
  • Composio: Composio Cloud, your own VPC, or self-hosted.
  • Kong AI Gateway: Kong Konnect (SaaS control plane) or self-managed on-premises.
  • Arcade: cloud, on-premises, air-gapped or hybrid.
  • Mintive (formerly MintMCP): a managed platform with EU and US data residency options and a private tunnel to systems inside your network. Confirm self-hosting options with Mintive.

For how these compare on identity, audit and pricing, see Best TrueFoundry, Runlayer and MintMCP (Mintive) Alternatives and Best MCP Gateways for Enterprise.

Where to run it: cloud, single-tenant, your cloud or on-premises

The right deployment depends on where your data and logs have to live. The four common options are:

  • Multi-tenant cloud: the vendor runs a shared environment. It is the fastest to start. Check where logs are stored and how long they are kept.
  • Managed single-tenant: the vendor runs a dedicated environment for you.
  • Your own cloud (VPC): the gateway runs in your AWS, Google Cloud or Azure account, so you keep network and key control.
  • On-premises: the gateway runs in your own data center, for the most restricted environments.

Ask every vendor the same four questions: Where do prompts, tool inputs, outputs and audit logs live? Who holds the encryption keys? Can logs stream to our SIEM? What happens to running agents if the control layer is unreachable?

HIPAA and BAAs

Which MCP gateways are HIPAA compliant? Several vendors state HIPAA support, including Credal, Mintive, TrueFoundry and Runlayer, and Credal and Mintive say they sign BAAs. Ask each for the BAA and the current SOC 2 Type 2 report rather than relying on a badge. An open-source project does not sign a BAA, so compliance evidence for the system you deploy is yours to produce.

MCP gateway vs API gateway: do you need both?

Usually, yes, because they protect different things. An API gateway protects your APIs from any caller. An MCP gateway governs what AI tools and agents do with those APIs on a person's behalf, including which tool, which values and which team. If Kong or another API gateway is already your standard, extending it to MCP can be enough for simple cases. See MCP security vs API security.

A decision guide in seven questions

  1. How many AI tools and source systems are connected today, and in twelve months? One tool and a few systems: native connectors may be enough. Several of each: you need a gateway.
  2. Do different teams need different access to the same system? If yes, you need team-scoped servers. A plain proxy does not give you that.
  3. Do you need to limit values, not just tools? "Read-only" is not enough when an agent can still write to the wrong record type.
  4. Who is on call for it? If the answer is "nobody yet", building will hurt.
  5. What will security ask for? A SOC 2 report, audit export, deployment options and a BAA are normal requests.
  6. Where must data and logs live? This decides between cloud, single-tenant, your cloud and on-premises.
  7. How fast must the first governed server be live? Weeks favours buying. Quarters leaves room to build.

How to read your answers:

  • Small, stable and well staffed: build, or run open source.
  • Infrastructure control matters most and you have platform engineers: open source, or a commercial product you host yourself.
  • Several teams, several AI tools, and security review is the bottleneck: buy.
  • Regulated data: buy a product that can run in your environment and sign the paperwork, or budget to produce that evidence yourself.

A cost worksheet

Compare yearly cost on people and time, not licence fees. We leave out dollar figures on purpose, because they vary too much by team. Fill these in with your own numbers.

Build or run open source, per year:

  • Platform engineers × loaded cost × the share of their time spent on the gateway
  • plus hosting and infrastructure
  • plus security review, testing and audit evidence
  • plus upgrades for MCP spec changes, new AI clients and source-system schema changes
  • plus on-call and incident response
  • plus the cost of delay: the weeks before the first governed server is live

Buy, per year:

  • Licence or usage fees
  • plus admin time for policies, approvals and access reviews
  • plus integration time for your identity provider and SIEM
  • plus pilot time

The line people forget is the share of engineering time. Gateway work arrives in bursts, usually when someone adds a new AI tool or system.

Why teams choose Credal instead of building or self-hosting

This section describes Credal's product.

Credal is the MCP gateway and agent builder for enterprise AI. Connect systems such as Salesforce, Google Drive, Slack, Confluence, Snowflake, Zendesk and Jira once. Credal turns each into governed MCP servers scoped by team, and publishes them to Claude, ChatGPT, Cursor, Slack and your own apps.

  • Per-user identity on every call through SAML/SSO and SCIM, with permissions inherited from the source system by default.
  • Tools off until approved, value-level rules, enforced instructions and paused tools when a definition changes.
  • A full audit log of every call as allowed or rejected, with Splunk and OpenTelemetry export.
  • Deployment where your data must stay: Credal's cloud, managed single-tenant, your own cloud, or on-premises.
  • Agent builder: business teams build agents on the same governed servers, so IT keeps control of access while teams move faster.
  • Compliance: SOC 2 Type 2 and HIPAA, with BAAs signed, plus GDPR and CCPA and zero data retention. Reports are available through the Trust Portal.
  • Proof from buyers who weighed building: Checkr rebuilt its AI access around three governed Credal MCP servers and saw the accuracy of AI answers over its Salesforce data rise from 13% to 86%. Guidewheel runs a read-and-write Salesforce server for RevOps and a read-only server for everyone else.

Credal is a strong fit if several teams and AI tools reach business systems, security review is slowing you down, you need to run in your own cloud or on-premises, or you want business teams to build agents that IT can still govern.

Credal is probably not the right choice if you require a fully open-source stack (Credal is a commercial platform), you need model-serving infrastructure, or one AI tool reaching a few systems is all you will ever have.

Frequently asked questions

Should we build our own MCP gateway or buy one?

Build only if you have a dedicated platform team, few and stable systems, and a requirement no product meets. Buy if you need per-user identity, team-scoped permissions, audit and compliance evidence quickly. Many teams run open source for routing and buy for governance.

What is the best MCP gateway we can self-host?

It depends on what you need to operate. Open-source options include Obot, IBM ContextForge, Docker's MCP Gateway and agentgateway. Commercial options that can run in your environment include Credal, TrueFoundry (Enterprise plan), Runlayer, Composio, Kong and Arcade. Compare them on identity, audit, deployment and support.

Are there open-source MCP gateways?

Yes. Obot (MIT), IBM ContextForge (Apache 2.0), Docker's MCP Gateway and agentgateway (Apache 2.0, hosted by the Linux Foundation's Agentic AI Foundation) are public projects. You operate them yourself, including identity setup, upgrades and compliance evidence.

What is the best MCP gateway for a regulated company that needs single-tenant or on-prem deployment?

Look for a product that offers single-tenant, your-cloud or on-premises deployment, publishes a SOC 2 Type 2 report, and signs a BAA if you handle health data. Credal offers managed single-tenant, your own cloud and on-premises deployment, with SOC 2 Type 2 and HIPAA support.

Which MCP gateways are HIPAA compliant?

Several vendors state HIPAA support and some sign BAAs, including Credal and Mintive. Ask for the BAA and the current SOC 2 report. Open-source projects do not sign BAAs, so you produce the compliance evidence for your own deployment.

Can Claude connect to an MCP gateway I host myself?

Yes, as a custom connector, but Claude connects from Anthropic's cloud. Your gateway has to be reachable over the public internet or from Anthropic's allowlisted IP ranges. See Anthropic's custom connectors guide for the network requirements.

Do I need an MCP gateway and an API gateway?

Usually both. An API gateway controls which applications can call which endpoints. An MCP gateway controls which AI tools and agents may run which tools, as which person, with which values.

What is Credal?

Credal is the MCP gateway and agent builder for enterprise AI. It connects systems such as Salesforce, Google Drive, Slack, Confluence, Snowflake, Zendesk and Jira once, turns each into governed MCP servers scoped by team, and publishes them to Claude, ChatGPT, Cursor, Slack and your own apps. Learn more about Credal's MCP gateway.

Why would we buy Credal instead of building our own MCP gateway?

Because the proxy is the small part of the work. Credal provides per-user identity, team-scoped servers, tools off until approved, value-level rules, a full audit log and deployment in your own environment, so your platform team does not have to build and maintain them. Checkr and Guidewheel both weighed building in-house and chose to buy.

Is Credal open source?

No. Credal is a commercial platform. It runs in Credal's cloud, managed single-tenant, your own cloud or on-premises.

The bottom line

Building gets you a proxy, open source gets you control, and buying gets you the maintenance and the paperwork. Pick based on who will be on call, how many teams and AI tools you will serve, and where your data has to live. Answer the seven questions, fill in the worksheet with your own numbers, and pilot one workflow before you commit. If you decide to buy, Credal is the MCP gateway and agent builder for enterprise AI, and it runs in Credal's cloud or yours. Get a demo to see how it answers the seven questions on your stack.

Give every team access to governed MCPs

One platform for all agents. Full visibility for admins, full access for teams.

Ready to dive in?

Get a demo