Fifteen months after its release, the Model Context Protocol has become the default way AI applications connect to tools and data. Every major model provider and most AI development tools support it, enterprise software vendors ship official MCP servers, and internal platform teams publish servers for their own systems.
When one protocol carries AI access to email, code, tickets, CRM and cloud infrastructure, it stops being an integration detail. The MCP layer is a security boundary, and it deserves the same architectural attention the API gateway received when REST APIs took over a decade ago.
What makes this boundary unusual
Traditional API boundaries protect systems from programs that follow code paths. The MCP boundary protects systems from a model whose behaviour is shaped by text it reads, including text from attackers. That changes the threat model:
- Tool metadata is an input. Tool names and descriptions go straight into the model's context. A malicious or compromised server can steer the model through them.
- Results are inputs. Anything a tool returns, such as an issue body, an email or a web page, can carry injected instructions.
- Servers share a context. One server's content can influence how the model uses another server's tools.
- Users approve in bulk. "Always allow" is convenient, and it quietly removes the human check.
The research community demonstrated these issues in 2025: tool poisoning, "rug pull" updates to tool definitions, cross-server shadowing, and data exfiltration through legitimate servers with over-broad tokens. The controls below respond to them.
Control 1: govern servers like supply chain
- Allow-list approved servers per environment and user group. Block unknown servers by default in managed clients.
- Vet before approval: code review or vendor assessment, required permissions, data flows and maintainer reputation.
- Pin versions and hash tool definitions. Alert and re-approve when a server's tools change.
- Assign an owner to every approved server.
- Prefer official or internally built servers for sensitive systems.
Control 2: authorisation done properly
The MCP specification defines an OAuth 2.1-based authorisation framework for remote servers. Use it rather than static API keys:
- tokens are issued per user, so actions are attributable and follow that user's permissions,
- tokens are scoped to what the server needs, and audience-restricted so a token issued for one server cannot be replayed against another,
- tokens are short-lived and revocable centrally, and
- servers must not pass through tokens they received to unrelated downstream services.
For local servers, avoid giving them long-lived credentials in plain-text configuration files; retrieve short-lived credentials from a secrets manager or the user's identity provider.
Control 3: an MCP gateway
Many organisations now route MCP traffic through a gateway, just as they did with APIs:
flowchart LR H1[Desktop assistants] --> G[MCP gateway] H2[IDEs & coding agents] --> G H3[Internal agents] --> G G -->|allow-listed| S1[Official SaaS servers] G -->|allow-listed| S2[Internal servers] G -.blocked.-> S3[Unapproved server] G --> L[(Central logs / SIEM)] IdP[(Identity provider)] --> G
A gateway can:
- enforce the server allow-list and tool-level policy (for example, "read-only tools only for contractors"),
- broker authentication so hosts never hold backend credentials,
- inspect and filter tool descriptions and results for known injection patterns and sensitive data,
- apply rate limits and budgets, and
- log every tool call with user, agent, server and arguments.
Control 4: separate trust zones
Design sessions so that untrusted content, sensitive data and outbound channels do not all meet unchecked:
- keep servers that ingest public or external content apart from servers with access to confidential data, or require approval when data would cross between them,
- restrict tools that can send data out of the organisation (email, messaging, HTTP fetch, public repositories), and
- use separate agent profiles for different trust levels instead of one assistant connected to everything.
Control 5: human confirmation that means something
- Show users the full tool call, including all arguments, before side-effecting actions.
- Make "always allow" available only for read-only, low-risk tools.
- Highlight when a tool call would send data to a new destination.
Control 6: monitoring and response
- Baseline normal tool usage per user, agent and server, and alert on anomalies: new servers, unusual volumes, first-time use of write tools, bulk reads.
- Include MCP activity in incident response playbooks: revoke tokens, disable a server at the gateway, preserve logs.
- Red-team your MCP deployment regularly with poisoned tools and injected content.
For teams building MCP servers
- Validate inputs strictly and never pass model-supplied strings to shells or query builders.
- Implement the specification's authorisation flow for remote servers and validate token audiences.
- Keep tool descriptions short and factual, and version them.
- Return minimal data, and clearly mark content that came from untrusted sources.
- Log every call with the calling user's identity.
The bottom line
MCP made connecting AI to enterprise systems easy. The price of that ease is a new boundary that attackers can reach through text. Organisations that treat it as a first-class security boundary, with governance, proper authorisation, gateways, trust zones and monitoring, can give their people powerful AI tools without handing attackers a new way in.
Our application security testing covers MCP servers and gateways, and our agentic AI security team builds hardened MCP integrations.