Five architectures for a shared MCP server, compared

Five shared MCP server designs compared, monolith to custom hub. I'd put two to four MCP gateways, split by domain, in front of team-owned backends.

Chatis Santos · October 19, 2026 · 8 min read · For engineers and leaders

If you want every engineer to reach internal tools through one login, put a gateway in front of backends that each team owns, and run two to four of those gateways split by domain. That is what I recommended to Northfield Energy after comparing five ways to build a shared MCP server, and the reason is that engineers log in once while a dozen teams deploy on their own schedule, and only the two gateway shapes give you both at the same time, which none of the other three options manage.

What "one MCP with a bunch of tools" is asking for

"One MCP with a bunch of tools" describes the client experience, and where the code lives is a separate question. Northfield's platform team asked for a single Model Context Protocol (MCP) server with many tools, reachable from Claude.ai, Claude Code and Cursor, with Google sign-in through FusionAuth and per-team control over who sees which tool. An engineer wants to add one connector, log in once and see the tools they're allowed to use. The platform team had already chosen Bedrock AgentCore, AWS's managed runtime for agents, so the gateway options below assume its Gateway product.

Keeping those apart is most of the work. In the three planes split, the front door is a data plane decision and "who ships what" is a control plane decision. If you treat "one endpoint" and "one codebase" as the same decision, you end up with option A below, and A puts the platform team back in the path of every change.

It is also a shared production surface, which option A fails outright (one process for everyone's code) and B passes, failing on client setup instead.

The five shapes

A. One monolithic MCP server

All tools in one codebase and one deployment. It's the simplest shape for clients and the fastest v1, and it's also the one where every team's change ships through one pipeline into one process, so one bad dependency or one crash takes every tool down and permissions are whatever the code happens to enforce. The platform team ends up owning the release train. That is the dependency Northfield wanted gone.

B. One MCP server per team

Each team runs its own server with its own endpoint. Maximum autonomy, and a bad tool only hurts that team. The cost lands on the client side. In Claude.ai Enterprise an admin typically adds each remote server as a connector, and Claude Code and Cursor need per-server config, so every engineer adds one connector per team and every new MCP needs an admin step. Each server also re-implements the OAuth handshake, and nobody can see the whole catalog or apply a policy across it.

C. One gateway, team code as targets

Clients connect to a single gateway endpoint. Each team registers targets behind it (Lambda functions, OpenAPI specs or their own MCP servers). The gateway validates the FusionAuth JWT on the way in, injects downstream credentials on the way out and namespaces tools so the data team's run_sql doesn't collide with anyone else's. A team ships by merging a PR. The tool list grows without bound, though, and you still have to add a per-tool policy layer.

D. A few gateways, one per domain

Same as C, split by bounded context (mcp-data, mcp-crm, mcp-fleet), all sharing the same auth setup. Any one tool list stays small, and an engineer connects only the domains their work touches. The cost is one connector per domain, two to four in Northfield's case.

E. A custom hub or proxy

A service the platform team writes that aggregates MCP servers, filters tool lists per role and handles the OAuth handshake itself. Full control, including anything an off-the-shelf gateway lacks. It also recreates the dependency on the platform team and puts auth bugs in home-grown code.

How they compare

Criterion A. Monolith B. Per-team servers C. One gateway D. Gateway per domain E. Custom hub
Connectors an engineer adds 1 One per team 1 One per domain (2 to 4) 1
Team ships without a platform ticket No Yes Yes, via the registry repo Yes, via the registry repo Depends on the hub
Per-tool, per-role authorization In code only Reimplemented in each server Gateway policy plus target checks Same as C Anything you build
Blast radius of one team's bug Every tool That team's server That target That target Hub or target
Tool-list growth Unbounded Bounded per server Unbounded, mitigated by filtering and search Bounded per domain Whatever the hub does
OAuth handshake with Claude.ai, Claude Code and Cursor Build once Build once per server At the gateway, to verify Same as C Build once
Audit log Central Scattered Central Central Central, in the hub
Fits AgentCore agents Yes Awkward Native Native Extra hop
Platform-team load Low build, high ongoing Low build, plus an admin registering each new server in each client Low Low High

A and B are the two poles the question was framed around. C and D get A's client experience with B's ownership model. E only makes sense if the gateway you'd otherwise use fails a hard requirement.

Why a gateway answers the actual question

Neither pole can answer tools/list per authenticated session. With a gateway each user sees only the tools their roles allow, so "the data team sees everything, other engineers see a subset" is enforced once, from each team's manifest (a short YAML file in the registry repo that lists the team's tools and which roles may call them). Tool code still decides what data a caller may read or change (row filters, the downstream system's own permissions), but which tools a role can see and call is settled before the call reaches it.

A new tool appears when its manifest merges, with no client change and no admin adding a connector. The pipeline registers the target and the compiled access policy with the gateway, and the gateway sends notifications/tools/list_changed to connected clients.

The OAuth handshake with Claude.ai, Claude Code and Cursor is also written once, at the gateway, and each backend should receive the caller's identity (subject and roles) over the private network instead of the FusionAuth token itself. Whether AgentCore Gateway forwards those claims to Lambda and MCP-server targets is on the spike list, because in-tool checks and the audit log depend on it. A team writing a tool never touches FusionAuth.

The price is one extra hop on every call and a gateway that has to be highly available. In practice that's a thin layer that changes rarely. The backends behind it change all the time.

One gateway or one per domain

I went with D, and the reason is tool-list size. Model accuracy at picking tools drops somewhere past a few dozen. Role filtering keeps most users well under that line. An engineer with the all-engineering role on a single gateway still sees everything shared to all of engineering, though, and that list only grows.

Two to four gateways by domain keep each list under roughly 40 tools and let someone connect only what they use. Team is an ownership boundary and domain is a usage boundary, and the two don't always coincide, which is why the split isn't by team. The data team might own tools that belong in mcp-data and mcp-fleet both. The other levers (fewer tools, gateway search, a meta-tool router) are in keeping an MCP tool list usable past forty tools.

The cost is two to four connectors per engineer, which I'd take over one per team, around a dozen at Northfield's size, without much thought.

I couldn't settle without a spike whether one FusionAuth sign-in can cover several gateways, through resource indicators or per-gateway audiences, or whether it has to be one sign-in per gateway. Both work, and the answer only changes the onboarding doc.

When a custom hub makes sense

Only when the gateway fails a hard requirement. At Northfield the hard requirement is per-tool authorization on FusionAuth claims, with unauthorized tools hidden from tools/list. If it only rejects them at tools/call, every engineer still sees every tool.

The gateway I proposed is AgentCore Gateway, since it's the same path Northfield's agents will use to reach tools. I wrote the AgentCore parts from what I and the model knew at the time rather than from the current docs, and the product has been adding features quickly, so the claims about it in the design are hypotheses until the spike checks them. Mapping the platform onto AgentCore has the full verification list. The item on it that decides the most is whether Gateway can filter the tool list per caller or only deny calls.

Per-tool policy on the gateway comes from AgentCore Policy (which uses Cedar, AWS's policy language, if it's available in your region) or a request interceptor, a small piece of code that runs on each request before the gateway answers. If neither can filter tools/list, the coarser fallback is a separate FusionAuth application for each gateway. If none of that holds up, a small FastMCP-based proxy or an open-source MCP gateway reads the same manifests, which is option E scoped down to the one feature you needed. The manifest and the policy format are the lock-in boundary, both vendor neutral, and the gateway stays an implementation detail behind them.

The recommended shape

Two to four gateways by domain is the shape I recommended, with the platform team running the gateways and the CI and never touching a team's tools. One tools/call through it, end to end:

  1. The engineer signs in once. The client redirects to FusionAuth, FusionAuth authenticates with Google and issues a JWT whose roles come from the engineer's groups.
  2. The client sends tools/list. The gateway returns only the tools whose access list matches a role in the JWT.
  3. The client sends tools/call. The gateway checks the tool's policy again, opens an audit record and forwards the call to the owning team's target with the caller's identity (subject and roles), if the claim forwarding above checks out in the spike.
  4. The target fetches its credential (its own service account, or the user's delegated Salesforce or Google token from the token vault), calls the downstream system and returns the result.
  5. The gateway returns the result and closes the audit record with status and latency.

The registry repo feeds the gateways from one side and, through teams.yaml, feeds FusionAuth's roles from the other, so a merged PR is the only way anything reaches a gateway.

If you're deciding this

I'd pick the gateway per domain and spend the first two weeks proving the gateway can filter tools/list by role with real clients, before any team builds on it. If the spike fails on that point, the fix is a FusionAuth application per gateway or a small proxy that reads the same manifests, and the rest of the architecture stays. If Claude.ai Enterprise is your primary client, where an admin has to add every connector, that alone rules out one server per team. Weighing C against D for your own org comes down to your team list and how your domains cut across it, and I'm glad to look at that with you.

More in this series

All articles in the series