MCP Security Is Becoming a Dependency Problem
The dangerous part of MCP is that it feels so reasonable.
You want your coding agent to read a repo, search docs, open tickets, query a database, or talk to an internal API. Instead of wiring all of that by hand, you connect an MCP server. The host sees a server. The model sees tools, resources, and prompts. The user gets an approval flow. The whole thing looks cleaner than the old pile of custom integrations.
That cleanliness is the point. It is also where the trap starts.
Installing an MCP server is not the same as turning on a harmless UI plugin. It is closer to adding a package that comes with runtime permissions. The package may expose actions. It may describe those actions to a model. It may read local files, send requests to external systems, return data into a conversation, or shape what the agent thinks it is allowed to do next.
That does not make MCP bad. It makes it real software.
And real software needs dependency discipline.
The integration got standardized
MCP is useful because it gives AI applications a shared way to connect to external context and capabilities. The basic shape is simple enough: a host application runs the agent experience, clients maintain connections, and servers expose tools, resources, and prompts. The server might sit in a local process, call a remote API, or bridge into some internal system.
That separation is a good idea. It gives tool builders a target. It lets agent products support integrations without inventing a new adapter pattern every week. It also makes the environment more legible. Instead of burying every capability inside a monolithic agent product, MCP gives teams a vocabulary for what is being connected.
But the security unit changes with that vocabulary.
The risk is not only "the model called a tool." That framing is too small. The real unit is the server package plus the host, the permissions, the exposed tool descriptions, the resources, the prompts, the update path, and the data that moves through the whole thing.
In other words, the integration is now a dependency.
Most developers already have instincts for this in normal software. Before adding a package, you ask boring questions. Who maintains it? What does it run? How often does it change? Does it execute code during install? Does it bring transitive dependencies? Is it pinned? Can we remove it quickly if something goes wrong?
MCP needs the same muscle memory, with one extra complication: the dependency is designed to be interpreted by a model.
Tool descriptions are part of the surface
With a normal library, the code is the interface. Documentation can be wrong, but the compiler or runtime eventually deals with behavior.
With an MCP server, descriptions matter in a different way. A tool is not only a callable function. It is also text shown to, or summarized for, an agent. Resources and prompts can also feed context into the model's working environment. That means the boundary between "metadata" and "behavior" gets blurrier than developers are used to.
This is where prompt injection and tool poisoning research becomes more than a scary phrase. If a connected server can influence what the model sees about a tool, and the model uses that description to decide what to call, the text around a capability becomes part of the trust chain. A malicious or sloppy description is not just bad documentation. It can steer behavior.
The same goes for data returned by tools. An agent might fetch an issue, read a README, inspect a webpage, or pull rows from a system. Some of that content is untrusted. Some of it may contain instructions that look useful to the model and dangerous to the workflow. If that untrusted text flows into a privileged tool call, the system has a boundary problem, not a prompt-writing problem.
The VIPER-MCP work makes this concrete by treating MCP server implementations as places where tainted input can move into sensitive actions. That framing is helpful because it gets us out of vibes. The question is not whether a demo looks safe. The question is whether untrusted content can reach a privileged operation without the right checks.
That is exactly the kind of question software teams already ask about web apps, CI scripts, database queries, and build systems. MCP just brings it into the agent runtime.
Consent is necessary, but not enough
The MCP specification puts a lot of responsibility on the host. That makes sense. The host is where the user experience lives. It can show approvals, enforce authorization, decide what the model can access, and mediate calls into servers.
Still, a consent dialog is not a security model by itself.
Developers know this from OAuth scopes, browser permissions, mobile apps, and CLI tools. A prompt that says "allow access" can be technically accurate and practically useless if the user cannot understand the blast radius. "Read files" means one thing for a toy folder and another thing for a monorepo full of secrets. "Call API" means one thing for a public search endpoint and another thing for a billing system. "Run command" means everything and nothing until the environment is defined.
Agent permissions have the same problem, but with more moving parts. The model may not be malicious. The user may approve the right thing in the wrong context. The server may expose a tool whose description hides its real reach. A resource may contain adversarial text. A local file may include secrets that were never meant to leave the machine. An internal API may look read-only until one endpoint has side effects.
This is why "the user approved it" cannot be the end of the review.
Approval should be the last visible checkpoint after a lot of quieter controls have already done their job: least privilege, clear scopes, understandable tool names, constrained working directories, logs, disable paths, and host-side enforcement that does not assume the model will always choose wisely.
Treat servers like packages with permissions
The dependency-management comparison is not perfect, but it is useful.
When a team adds an MCP server, the review should feel less like browsing an extension gallery and more like accepting a new runtime dependency. That does not mean turning every integration into a month-long audit. It means asking the same blunt questions every time:
- Who maintains this server?
- Can we read the code, or are we trusting a black box?
- What tools does it expose?
- What resources can it read?
- What prompts or instructions does it add to the agent environment?
- What local paths, environment variables, tokens, and APIs can it reach?
- Does it send data out of the machine or network boundary?
- How are updates handled?
- What does the host show the user before a sensitive action?
- Where are calls logged?
- How do we disable it quickly?
None of those questions are exotic. They are the boring part of making software survivable.
The uncomfortable bit is that many agent workflows grew up in the opposite direction. People connected tools because the demo was useful. They trusted a local config because it worked. They added a server because it saved time. The review process came later, if it came at all.
That was tolerable when the blast radius was small. It becomes harder to defend when MCP servers sit between agents and the systems where real work happens.
The model is not the whole threat
AI security discussions often get stuck on the model. Is it aligned? Did it refuse? Did it follow the system prompt? Did it get tricked?
Those questions matter, but they are not enough for MCP.
An MCP deployment has ordinary software problems around code quality, authentication, secrets, input validation, update hygiene, and observability. It also has agent-specific problems around prompt injection, tool selection, context contamination, and approval UX. Treating one side as the whole story misses how failures actually happen.
Imagine a server that exposes a harmless-looking "summarize project" tool. Under the hood, it can read broad local paths. The agent calls it after reading an issue that contains hidden instructions. The server returns project data into context. Another tool then uses part of that context to prepare an external request. Nobody intended to leak anything. Each step looked explainable on its own.
That is the kind of chain MCP teams need to reason about.
The answer is not to ban servers. The answer is to make the chain visible enough to review. A good host should help users see what is connected and what will happen next. A good server should have narrow capabilities and honest descriptions. A good team should keep sensitive systems away from broad, loosely reviewed tools. Logs should be boring to read and useful when something goes wrong.
Security here is not one magic gate. It is friction placed in the right parts of the workflow.
Claude Code shows why this matters in practice
The reason this topic is becoming urgent is that MCP is not living in whitepapers. It is showing up inside real coding-agent environments.
Claude Code, for example, frames MCP alongside permissions, hooks, skills, custom agents, and workflow automation. That combination is powerful. It means an agent can be shaped around a team's real environment instead of staying trapped in a chat box.
It also means the connected environment becomes part of the product surface.
Once agents can use local project context, call tools, run workflows, and coordinate with custom instructions, the difference between "agent behavior" and "workspace configuration" gets thin. A bad integration can create a security issue. A vague permission can create an operational issue. A stale server can become a supply-chain issue. A clever prompt injection can become a workflow issue.
This is why MCP review should not be left only to security specialists after the fact. Developers adding the server are making architectural decisions. Platform teams configuring hosts are making policy decisions. Product teams designing approvals are making risk decisions. Everyone is touching the same chain from a different angle.
The mature version is boring
The mature version of MCP adoption will probably look less exciting than the demos.
It will include allowlists. Pinned versions. Server manifests that humans can read. Small scopes. Separate environments for sensitive projects. Clear warnings before writes or external calls. Logs that show which server exposed which tool and what the host approved. Default-deny behavior for dangerous actions. Fast disable switches. Documentation that says what a server should never be allowed to touch.
That sounds dull because mature infrastructure usually sounds dull.
But dull is the point. The more normal MCP becomes, the less it can depend on every user having perfect judgment in the moment. Good systems do not ask people to become security analysts every time an agent wants to act. They make the safe path visible, narrow, and reversible.
There is a useful parallel with package ecosystems. Nobody serious believes package managers are safe because every developer reads every line of every dependency. The ecosystem is safer when tooling, norms, registries, lockfiles, scanners, maintainers, review habits, and blast-radius controls all work together. It is still imperfect. But it is a discipline.
MCP needs that discipline early.
Do not make the demo the policy
The worst reaction to MCP security would be panic. The second worst would be shrugging because the demo worked.
MCP is valuable precisely because it makes integrations more explicit. A standard protocol gives teams something to inspect, constrain, document, and improve. That is better than a pile of invisible one-off adapters hiding inside every agent product.
But standardization does not erase risk. It makes the risk repeatable.
That should change how teams adopt it. Do not ask only whether an MCP server helps the agent do more. Ask what the server is allowed to know, what it is allowed to change, what text it feeds back into the model, and how quickly you can understand its behavior when something feels off.
The real question is not "Do we trust MCP?"
The useful question is smaller and harder to dodge: "Would we accept this server as a dependency with these permissions in this environment?"
If the answer is yes, connect it carefully and keep the review trail. If the answer is no, the problem is not that the team is anti-agent. It is that the integration has not earned its place in the runtime yet.
That is a healthier bar. It lets MCP be useful without pretending a consent dialog can carry the whole security model. It treats agent tooling as software, not magic.
And that is probably the moment the category starts growing up.
Source notes
- Model Context Protocol: What is MCP? - used for the host/client/server framing and the tools, resources, and prompts model.
- Model Context Protocol specification 2025-06-18 - used for the protocol surface around authorization, tool invocation, resource access, and host-side security expectations.
- MCP server tutorial - used for the concrete server-building surface and why MCP servers should be reviewed as software components.
- VIPER-MCP - used for the taint-style vulnerability framing around untrusted inputs flowing into privileged MCP server actions.
- MCP threat modeling and tool poisoning paper - used for the prompt injection and tool poisoning risk model.
- Claude Code overview - used as product context for MCP inside a real coding-agent environment with permissions, skills, hooks, and workflow automation.
Comments
Post a Comment