MCP Is the New API Standard for AI Agents—And Your Application Needs a Gateway
Model Context Protocol (MCP) is winning. Claude supports it natively, Cursor runs on it, and enterprise tools are shipping MCP servers by the week. It's becoming the interface between AI agents and the tools they call.
But here's the part most guides skip: MCP is a protocol, not a security system. It defines how an agent calls a tool. It says nothing about who is allowed to call it, where credentials live, or which user triggered which action.
The how vs. the who
MCP solves fragmentation elegantly — publish one server, and any compliant agent can discover and call your tools. No bespoke connector per AI. That part is genuinely great.
What it leaves entirely to you:
| MCP covers | You still need |
|---|---|
| Tool discovery | User identity propagation |
| Tool invocation | Credential isolation (keys can't live in the model's context) |
| A standard schema | Multi-tenant routing |
| Transport | Access control, metering, credit limits |
| — | Audit trails per user action |
None of that is in the spec. In multi-tenant production, it's the whole ballgame.
Two options
Both paths end at the same place — the difference is where the complexity lives, and who maintains it as the spec moves:
- Build it yourself: OAuth 2.0, OIDC token minting, tenant routing, metering, and an audit log on top of your MCP server. Budget 2–3 months, then ongoing upkeep as the spec evolves.
- Put a gateway in front. Purpose-built infrastructure handles the layer MCP omits, and your application stays clean.
What a gateway actually does
A gateway sits between the agent and your application and owns everything the protocol doesn't:
The entry arrow speaks MCP; the exit arrow is a clean, authenticated HTTP request with the verified user's X-User-Email and X-Tenant-Id already attached. Your application verifies a standard OIDC token and runs — it never learns MCP exists. Credentials stay in the gateway; every call is metered and logged.
The broader point
MCP is solving the right problem — the industry needed a standard for AI-to-tool communication, and this is it. But protocols define interfaces, not security boundaries. The history of web APIs is full of good protocols deployed insecurely because auth was left "as an exercise for the reader."
The protocol is settled. The infrastructure layer — identity, isolation, tenancy, control, audit — is the differentiator. Adopt MCP with a gateway from day one, or retrofit security onto it later.