All posts

MCP Security: Your Agents Trust Their Tools. Should You?

MCP turned connecting an agent to real systems into a config change. It also left many security leaders owning a trust relationship they never signed off on. Here's what 2026 showed us, why the usual controls miss it, and five questions worth asking your team.

The Klyvra Team5 min readAI Security

A year ago, connecting an AI agent to your ticketing system or code repository was a small project. Today it's a config change. The Model Context Protocol (MCP) made that possible, and it has become the default way agents reach the systems around them. That's why MCP security is now a question for security leaders, not only for the teams building agents.

We think that's a good thing. It does have a side effect that's easy to miss, though. Every MCP server an agent connects to is another source of text the agent will read, and often act on. Most companies picked up MCP the way they've picked up every useful developer tool: one team at a time, quickly, and a little ahead of the security process. Nobody did anything wrong. That's how good tools spread. It does mean a lot of security leaders are now responsible for trust they never formally granted.

Why MCP changes the threat model

An ordinary integration is code your team wrote and reviewed. An MCP server differs in two ways that matter.

  • The agent reads it as context. A tool's name, its description and whatever it returns all land in the model's working context. Models aren't good at keeping "data from a tool" apart from "instructions to follow", so text that reads like an instruction can get treated as one.
  • It can change after you approve it. A remote MCP server is a live service that someone else runs, and a local one is often launched from an unpinned package that can update on its next start. Either way, its tools, their descriptions and the results it returns can change without any release on your side.

So part of your agent's behaviour now depends on text you didn't write, and may never see.

MCP vulnerabilities: what 2026 has shown us

This year brought a steady stream of published vulnerabilities in MCP servers and SDKs. Some were in well-built, widely used projects, including a reference Git server and the MCP endpoint of a popular web server admin tool. Young ecosystems go through this. We read it as a signal about how MCP is being adopted, not as a verdict on any one project.

Most of what we've seen falls into three groups.

Exposed and vulnerable servers

Some servers sit on the internet with no authentication. Others carry old, familiar flaws like command injection or server-side request forgery in the code behind their tools. Local servers are not exempt: they run on a developer's machine with that developer's access. None of this is new to web security. What's new is that it now sits one prompt away from an agent with real permissions.

Tool poisoning

Here the instructions are hidden in a tool's description, or in the data it hands back. Descriptions are read when the agent lists its tools, so a poisoned tool can steer the agent without ever being called, including how it uses tools from other, trusted servers. The agent may call a different tool, send data somewhere or quietly skip a step. Nothing has to be broken into.

Rug pulls

A server can look fine on the day you review it and change later, through a new version, a compromised maintainer account or a change of owner. A one-time approval won't catch that.

Why the usual controls miss it

Most security programmes weren't built with this path in mind, which is fair. Until recently it didn't exist.

  • Code scanning looks at your repository. It can tell you that your agent uses an MCP server. It can't tell you what that server is doing today.
  • Network controls see a connection to an approved host. From there, a normal tool result and one carrying instructions look the same.
  • Tool and vendor reviews happen at a point in time. A clean review in March doesn't say much about October.
  • Model safety training helps, but you can't audit it, and you can't count on it for a specific tool.

Our position is simple.

Treat every MCP server as untrusted input to a privileged system, the way the industry learned to treat user input to web applications.

There's one difference, though. Models have no equivalent of the parameterised query, so the controls have to sit around the agent: in what it can reach, what it may do and what you watch. None of this is a judgement on the servers.

Where to start with MCP security

You don't need to slow adoption down to fix this. You need MCP to sit inside the same discipline as the rest of your stack. Five questions are a good place to start.

The first two are about visibility. The third is least agency, the idea at the heart of OWASP's guidance for agentic applications: give an agent only as much autonomy as the task needs. The last two are about evidence, before go-live and after it.

The last question tends to be the hardest to answer with confidence. One approach we like is the decoy: a tool the agent has no reason to touch. If the agent calls it, during a red-team scan or in production, something steered it there or its tool choice has gone wrong, and either way you want to know. That signal doesn't depend on guessing what the attack looked like.

An honest limit

No test proves an agent is safe. If a red-team scan finds nothing, or a decoy is never touched, you know the agent resisted the attacks that were tried. You don't know it will resist every attack, and a decoy only sees an agent reaching for something it shouldn't, not one misusing the tools it is meant to have. What testing and monitoring give you is evidence and early warning, and that's usually what a security leader needs to make a call and stand behind it.

Agents are going to do a lot of their real work through MCP, and we're glad about that. The teams that get the most out of it will know what their agents trust, keep checking it, and be able to show the evidence. That's the job MCP Security does in the Klyvra platform, alongside red-team scans and AI code security. If you'd like to see how that looks for one of your own agents, bring it to the session below.

Share this post
LinkedInX

See Klyvra on a live endpoint.

Thirty minutes. Bring an endpoint and we will run a real red-team scan against it during the call, read the report together and give straight answers about what Klyvra does and does not do.