Apply for the pilot
DEEN
Security

MCP servers as a way in: the security risks of tool integrations

Every MCP server connected to an AI agent places tools and their descriptions in the model's context, widening both what the agent can do and how it can be manipulated. Poisoned tool descriptions, packages altered after users trusted them and vulnerabilities in MCP software itself are all documented. The specification calls for consent and caution but cannot enforce either, so tool integrations need allowlists, pinned versions and a check before every execution.

An AI agent earns its keep through its tools: it searches the archive, books appointments, sends email. The Model Context Protocol (MCP) has made connecting such tools far easier. Our position: every MCP server you connect extends not only what an agent can do but also who can steer it. Tool integrations deserve the same scrutiny as anything else in your software supply chain.

What MCP is and why it spread so quickly

Anthropic introduced MCP in November 2024 as an open standard replacing fragmented integrations with one protocol. Applications connect through clients to servers, which also expose tools the model can invoke (tool use). Under the hood this is function calling: the model picks a tool, guided by its natural-language description, and supplies the parameters; the client forwards the call.

In December 2025 Anthropic handed MCP to the Agentic AI Foundation under the Linux Foundation, co-founded with Block and OpenAI. Anthropic then counted more than 10,000 active public MCP servers and named ChatGPT, Cursor, Gemini, Microsoft Copilot and Visual Studio Code among the adopters. So tools from many sources now share one model's context.

Four ways an MCP server can do harm

Attack surfaceWhat happensEvidence
Poisoned tool descriptionHidden instructions steer the modelInvariant Labs, April 2025
Server changed after approvalA trusted server alters its description or codeInvariant Labs; postmark-mcp, September 2025
Impersonation and shadowingA server poses as another or redirects other servers' toolsInvariant Labs; Postmark
Flaws in MCP softwareThe integration itself opens a path into the systemCVE-2025-6514, CVE-2025-49596, CVE-2025-53110

Poisoned descriptions: in April 2025 Invariant Labs described "tool poisoning": instructions in tool descriptions that the model sees but the user does not. In their demonstration with the Cursor coding agent, an innocent-looking addition tool told the model to read the MCP configuration and the user's private SSH key and pass both along as a parameter. The confirmation dialog did not show the full input. This is prompt injection, covered in our piece on prompt injection in AI agents, except that the instruction sits in the tool list itself.

Later changes and impersonation: A server can also change its description after approval, Invariant Labs warned. In September 2025 the npm package postmark-mcp did the same with its code. According to the email service Postmark, it traded on Postmark's name, built trust over 15 versions and, from version 1.0.16, secretly sent blind copies of emails to an external server. Postmark had not published an MCP server on npm before then. Invariant Labs also showed one server's description redirecting a trusted server's email tool.

Vulnerabilities: in the mcp-remote helper, a malicious server could inject operating system commands via a crafted authorisation URL (CVE-2025-6514, CVSS 9.6). Before version 0.14.1, the MCP Inspector developer tool allowed remote code execution for lack of authentication between its client and proxy (CVE-2025-49596). The reference filesystem server could expose files outside its permitted directories (CVE-2025-53110, CVE-2025-53109). Our collection of documented incidents adds the GitHub MCP case of overly broad permissions, and Clinejection.

What the specification provides

The MCP specification, revision 2026-07-28 (current as of October 2026), and its accompanying security best practices address these risks:

  • Descriptions of tool behaviour should be treated as untrusted unless they come from a trusted server.
  • Hosts must obtain explicit user consent before invoking any tool.
  • Authorisation is optional. Over HTTP it builds on OAuth 2.1, and servers may only accept tokens issued for them.
  • Local servers should run in a sandbox with minimal privileges, with permissions granted step by step.

The specification also states its limit: MCP cannot enforce these principles at protocol level. That is left to the application you run. Per-call consent also only protects while people read carefully, as our piece on human approval explains.

Rules for using MCP

Treat an MCP server like a library you build in, except that it also writes into your agent's context:

  1. Allowlist: only explicitly approved servers and tools, everything else blocked (allowlist, default deny). An agent summarising client files needs no email access.
  2. Provenance and pinned versions: packages only from the provider of the service or after your own review. Pin versions and verify tool descriptions by checksum, as Invariant Labs recommends. Any change means a fresh review.
  3. Narrow rights per server: dedicated credentials with minimal scope, not a personal account. More in our piece on least privilege for AI agents.
  4. Isolation: local servers run sealed off, without access to keys or configuration files.
  5. Check before execution: every call is checked against rules outside the model, with visible parameters. Actions with external effect need deliberate approval.

A constructed example: a tax practice connects servers for its receipts archive and email. If an update makes the archive description ask for receipts to go "for backup" to an outside address, only a rule barring mail to unknown recipients stops it. A system prompt forbidding it sits in the same context as the manipulation.

Control the tools rather than trust the model

AEGIS, the locally operated agent system from oQueo, starts here. The language model holds no credentials, has no access to tools and only proposes structured intents. A deterministic checking authority validates every intent against an allowlist with default deny, the permitted action level and approved destinations; only what it signs is executed. A poisoned description can thus influence proposals, not the rules. An allowlist drawn too generously, however, stays too generous. More on how it works.

Sources

  1. Model Context Protocol - Specification, Version 2026-07-28 (2026)
  2. Model Context Protocol - Tools, Version 2026-07-28 (2026)
  3. Model Context Protocol - Authorization, Version 2026-07-28 (2026)
  4. Model Context Protocol - Security Best Practices, documentation for version 2026-07-28 (2026)
  5. Anthropic - Introducing the Model Context Protocol (November 2024)
  6. Anthropic - Donating the Model Context Protocol and establishing the Agentic AI Foundation (December 2025)
  7. Invariant Labs - MCP Security Notification: Tool Poisoning Attacks (April 2025)
  8. Postmark - Information regarding malicious postmark-mcp package (September 2025)
  9. NIST NVD - CVE-2025-6514, mcp-remote (July 2025)
  10. JFrog - Critical RCE Vulnerability in mcp-remote: CVE-2025-6514 (July 2025)
  11. GitHub Security Advisory - GHSA-7f8r-222p-6f5g, MCP Inspector, CVE-2025-49596 (June 2025)
  12. NIST NVD - CVE-2025-53110, Filesystem MCP Server (July 2025)
  13. NIST NVD - CVE-2025-53109, Filesystem MCP Server (July 2025)