MCP Security
Key Takeaways
- MCP security is the practice of protecting AI agents, MCP clients and MCP servers from attacks that abuse the connections between models and external tools or data.
- Every MCP server expands an application’s attack surface, because tool descriptions and tool outputs flow straight into the model’s context.
- The most discussed MCP-specific threats are tool poisoning, rug pulls, cross-server tool shadowing and over-permissioned servers.
- MCP servers should be tested like any other exposed asset: with authenticated, attacker-minded testing that checks what an agent can actually be tricked into doing.
What Is MCP Security?
MCP security is the set of controls, design choices and testing practices that keep Model Context Protocol (MCP) integrations from being used to manipulate an AI agent, steal data or take unauthorized actions. MCP is an open standard that Anthropic introduced in November 2024 to give large language model applications a common way to connect to tools, files, APIs and other data sources.
That standardization is the point, and it is also the risk. An MCP server can expose tools that read email, query a database or run code. Whatever the server says about those tools, and whatever those tools return, lands in the model’s context window. If any of that text is malicious, the model may follow it. MCP security treats each server, each tool and each piece of returned content as untrusted until proven otherwise.
Why MCP Security Matters
Agents act on what they read
A traditional API returns data that code processes deterministically. An MCP tool returns data that a model interprets. That means an attacker who controls a tool description or a tool’s output can attempt indirect prompt injection without ever touching the user’s chat.
Third-party servers are a supply chain
Teams often install community MCP servers the same way they add an npm package. A malicious or compromised server is a supply chain attack that runs with whatever access the agent grants it.
Permissions add up fast
One agent may connect to a file system, a code repository and a messaging tool at once. A single successful injection can chain those capabilities together, turning a minor bug into data exfiltration.
Traditional scanners miss it
Static analysis and signature-based scanners were not built to judge whether a natural-language tool description contains hidden instructions. The risk lives in model behavior, which needs behavioral testing.
How MCP Security Works
Inventory and trust decisions
Start by listing every MCP server your agents connect to, who maintains it and what tools it exposes. Pin versions, and treat unapproved servers the way you would treat unmanaged SaaS.
Least privilege for tools
Give each server the narrowest credentials and scopes it needs. A summarization tool should not hold write access. Authorization belongs in the downstream system, not in a prompt asking the model to behave.
Human approval for high-impact actions
Require explicit confirmation before an agent sends messages, moves money, changes code or deletes data. Show users the full tool call, including every parameter.
Continuous adversarial testing
MCP servers change. Descriptions can be updated after approval, and new tools appear. Testing has to be continuous and has to simulate real attacker techniques against the agent end to end.
MCP Security vs API Security
Who interprets the response
API security assumes the consumer is code that parses structured responses. In MCP, the consumer is a model that can be persuaded by the content itself.
Where the attack surface sits
API security focuses on endpoints, authentication and input validation. MCP security adds tool metadata, cross-server interactions and the agent’s decision-making as attack surface.
How testing differs
API penetration testing remains necessary for the services behind MCP tools. MCP testing layers on prompt-level attacks that check whether the agent can be steered into misusing those APIs.
How Novee Approaches MCP Security
Novee treats MCP servers as a first-class asset type, added in October 2026 alongside the Novee Prompt Library for targeted testing of new attack surfaces. Its AI Red Teaming solution tests LLM apps and agents the way an attacker would, reasoning about workflows, permissions and business logic. Three independent agents validate each finding before it is reported, so teams get proof of exploitability rather than noise, and Agentic Remediation retests to confirm fixes hold.
FAQ
MCP is a protocol, not a product, so its security depends on how clients and servers implement it. Most real-world risk comes from untrusted servers, over-broad permissions and agents that act on tool content without verification. Strong implementation choices and regular adversarial testing reduce that risk considerably.
Prompt injection through tool descriptions or tool outputs is the most widely discussed MCP risk, because it lets an attacker influence the agent without access to the user’s session. Its impact depends heavily on what the agent is permitted to do, which is why least privilege matters as much as detection.
Test whenever a server is added, updated or granted new permissions, and on a recurring basis in between. Because server maintainers can change tool definitions after you approve them, a one-time review gives a point-in-time view that can go stale quickly. Continuous testing closes that gap.