MCP security
MCP security is the work of securing the Model Context Protocol: the servers, tools, and transports that agents use to reach external systems. It covers which servers an agent may connect to, what their tools may do, and whether the descriptions and results passing through them can be trusted.
How it works
The Model Context Protocol lets an agent discover and call tools on a server. The server publishes a catalog of tools, each with a name, a natural-language description and an input schema. The agent’s model reads that catalog, decides which tool to call and with what arguments, and the result comes back into the model’s context. Local servers typically run over stdio on the same machine; remote ones use SSE or HTTP.
Each step is a trust decision, and the model makes most of them. Tool text is executable intent for an LLM, so whoever writes a tool description can steer the agent. The usual failure areas are credential handling (servers holding tokens, sometimes hard-coded), cleartext transport, tool poisoning, over-broad tool scopes and auto-approve settings, and malicious or spoofed servers, including look-alike names.
Approval is also a moving target. A server that looked safe at install time can change its schemas, descriptions or side effects later. New servers also appear on developer laptops and in side projects without anyone approving them, which is shadow AI in MCP form.
What it looks like
Wingback’s red-team library includes this registry attack: an MCP server published as notion-mcp-fast, a typosquat of a familiar service, ships a hidden exfiltration tool. A developer adds it to an agent’s configuration. From then on the extra tool sits in the catalog the model reads, and the model can be steered into calling it with whatever data the session holds.
A control at the protocol layer can stop this before any tool is exposed. The server’s catalog entry does not match the approved list at the handshake, so the connection is refused, the agent degrades gracefully, and security receives the manifest of what would have been exposed.
How to secure it
- Inventory every MCP server, including the ones on developer endpoints and “temporary” installs.
- Approve servers against a catalog, and block unknown servers before their tools reach the agent.
- Detect changes to tool definitions after approval, and treat a silent schema or description change as a security event.
- Inspect tool inputs and outputs at runtime. Poisoning lives in descriptions, arguments and returned payloads, which prompt inspection does not cover.
- Isolate credentials per tenant and keep tool scopes narrow.
- Log tool name, argument class, decision and outcome for every call that can touch secrets or production systems, and enforce inline on high-impact tools such as shell, file write, credential stores and outbound webhooks.
The reasoning behind these steps is laid out in MCP tool poisoning needs runtime controls.
In the frameworks
- OWASP MCP Top 10: MCP03 Tool Poisoning, MCP05 Command Injection & Execution, MCP08 Lack of Audit and Telemetry, and MCP09 Shadow MCP Servers.
- OWASP Top 10 for Agentic Applications (2026): ASI04 Agentic supply chain, which covers third-party tools, plugins, registries and update channels. Wingback’s red-team library tags MCP supply-chain and registry attacks to ASI04 and to the Supply Chain category of the OWASP LLM Top 10 (2025).
How Wingback handles it
AI Surface Intelligence finds MCP servers registered in code and running locally over stdio on laptops, and profiles each one for permission scope, owner, approval state, runtime usage and change diff, so a server that gains filesystem:write raises a new finding. At runtime, the MCP gateway in AI Runtime Defense supports stdio, SSE and HTTP transports with per-tenant credential isolation, scans tool inputs and outputs, and blocks servers that are not on the approved list at the protocol handshake.
Keep reading
- GlossaryTool poisoningAn attack that crafts a tool's description, schema or output to steer an agent into harmful actions, like leaking credentials or…
- GlossaryAgent Detection & Response (ADR)The practice of detecting and responding to threats from AI agents at runtime.
- GlossaryAI gatewayAn inline proxy in front of model providers that applies one policy to every prompt and completion: guardrails, PII masking…
- BlogMCP tool poisoning needs runtime controls, not prompt filtersOWASP’s MCP Top 10 and Invariant Labs’ tool-poisoning research show why approving an MCP server once is not enough, and what to…
Platform
AI Surface IntelligenceWingback continuously maps the agents, models, MCP servers, and inference paths in your AI stack, scores each for risk, and routes findings to owners.