r/modelcontextprotocol • u/Smooth-Somewhere7492 • 17d ago
Which MCP gateway is working best for securing tool traffic in production?
Some of our MCP servers follow the spec's auth flow, while others don't have any authentication at all. I'd like to put a single enforcement layer in front of all of them. We tried building our own proxy, and it worked fine with the unauthenticated servers but ran into issues with those handling their own auth. I'm trying to understand how a gateway should fit into the setup when servers already have their own authentication.
5
Upvotes
2
u/motakuk 17d ago
https://github.com/archestra-ai/archestra
1
u/krimpenrik 17d ago
I am looking into agentgateway, have you looked into that what is your opinion?
1
u/lillianlindzv460 17d ago
Pass-through auth can avoid conflicts, but it also limits what the gateway can control. You still want centralized identity checks and consistent access policies. Gravitee is worth looking at for its native MCP governance and deny-by-default approach. The key is making sure its auth handoff works with servers that already handle authentication.
1
u/verstands 17d ago
Splitting it by server type usually untangles this. For servers with no auth, the gateway is the only enforcement point, so it validates the client token and applies policy itself. For servers that run their own OAuth, the gateway shouldn't forward the client's token as-is, since the audience won't match (that's what breaks those audience checks). Either route the client through that server's own auth flow and have the gateway only log and rate-limit, or have the gateway do a token exchange so each upstream gets a token minted for its own audience. Keep a per-server config saying which mode it uses, so one proxy doesn't try to treat all of them the same way.
1
u/karafili 17d ago
the one you build and limit yourself
1
u/ColdOutside6499 16d ago
How are clients discovering servers? If they hardcode URLs, moving them behind a gateway is a config change per client.
1
u/Shoddy-Tap-9935 16d ago
I'd write a small conformance test suite for your servers so you can check any gateway against the same cases.
1
u/RemcoE33 14d ago
You can look into Bifrost
1
u/ava_6c 6d ago
no auth servers sit only behind the gateway, never exposed, and it does the oauth for them. servers with their own oauth get a separate token from the gateway, never the clients one passed through. per tool rules there, opa in envoy or hush security's allow, block and approval, pick which tool runs though a broad run_query stays opaque so keep tools narrow.
1
u/[deleted] 17d ago
[removed] — view removed comment