Skip to content

AI security

MCP servers are the new supply-chain risk for AI agents

MCP server security risks look familiar to anyone who manages software dependencies: unknown maintainers, look-alike package names and updates nobody reviews. The difference is that an MCP server stays active after you install it, holds credentials to your business systems and sends text your AI agent reads as guidance. Treat each new server as a dependency with runtime access to your data, and vet it before it goes live.

By the KDS security engineering teamPublished 6 min read

Key takeaways

  • An MCP server is a dependency that stays active while your agent works, holding tokens and sending text to the model.
  • Typosquatting, abandoned projects and unreviewed updates affect MCP servers just as they affect software packages.
  • Tool descriptions are an attack surface that dependency scanners are not designed to read.
  • A remote server can change behavior with no update on your side, so pin and compare its tool definitions.
  • Before installing a server, check its origin, maintainer, permissions, network access, update policy, pinning, tool descriptions and logging.
On this page

A dependency with runtime access to your data

The Model Context Protocol (MCP) is an open standard for connecting AI applications to tools and data through programs called servers. Our guide to MCP security explains the protocol and its risks in full. This column looks at one decision: adding a server to an AI agent your company uses.

When a developer adds a software library, its code runs inside an application the team builds and tests. Adding an MCP server goes further. The server stays connected while the agent works, and it usually holds a token or API key for a business system, such as your CRM, a file store or a code repository. In a typical setup, the server's tool names and descriptions sit in the model's context, and the model decides its next step partly based on that text.

So a server is more than code you import. It takes part in each task, with credentials of its own. The UK National Cyber Security Centre (NCSC) advises organizations adopting AI agents to manage supply chain risk (opens in a new tab) for third-party components, models, tools and integrations. An MCP server can be a component, a tool and an integration at once. OWASP lists agentic supply chain vulnerabilities as ASI04 in its Top 10 for Agentic Applications (opens in a new tab) and names MCP ecosystems as an example of runtime components that attackers can poison.

Where it resembles package supply-chain risk

Much of what security teams learned from software packages applies directly to MCP servers.

  • Look-alike names. The OWASP MCP Security Cheat Sheet (opens in a new tab) warns that typosquatting, a package named one letter away from a popular one, is a common attack vector for MCP servers.
  • Name confusion. The U.S. National Security Agency (NSA) describes naming collisions in which a system loads an attacker's tool in place of the intended one.
  • Abandoned projects. The NSA notes that the MCP project has marked many popular servers as no longer actively maintained. An unmaintained server stops receiving security fixes while agents keep calling it.
  • Dependencies inside the server. A local server is usually a package with its own dependencies. OWASP advises scanning them for known vulnerabilities, as you would for any application.
  • Harmful updates. A trusted project can later ship a harmful release. OWASP advises a manifest of approved versions and checksums to block silent, malicious upgrades.

The familiar answers work here too: an inventory, pinned versions, checks of origin and a process for tracking vulnerabilities. The NSA's guidance on MCP (opens in a new tab) recommends an inventory of all deployed MCP components with versions and patch history. It also recommends applying your strictest code review profile to MCP server projects.

Where MCP server security risks are different

Four differences make MCP servers harder to vet than a typical package.

Text is part of the attack surface. A tool description is read by the model, not only by a program. In tool poisoning, instructions hidden in that text can steer the agent even if nobody calls the tool. The MCPTox benchmark (opens in a new tab) (arXiv, 2025) tested this on 45 live MCP servers and found that agents rarely refused such attacks: the highest refusal rate among the tested agents was under 3%. Dependency scanners look for vulnerable versions and malicious code. They are not designed to judge whether a sentence in plain English is an instruction to your AI.

Behavior can change without an update on your side. The MCP specification allows a server's list of tools (opens in a new tab) to change over time. With a remote server, you install no code at all, so there is nothing to lock to a version. The operator can change what the server does, or what its tools say, at any point. The NSA notes that a trusted server can often change its capabilities or data access without a new approval.

One server can influence another. In a typical setup, the model sees the tools of all connected servers together. OWASP describes tool shadowing, in which one server's description changes how the agent uses a trusted server's tools. A harmless-looking utility can become the route by which data from your email or file server leaves the company.

Access is granted by design. A malicious library has to find credentials on its own. An MCP server receives a token as part of normal setup. If that token has broad scopes, the server can reach far more than its tools suggest. Our guide to AI agent permissions explains how to keep those scopes narrow.

A vetting checklist for MCP servers

Use these eight checks for each new server, including servers a vendor recommends and servers staff want on their own computers. Record the answers, because they become your baseline for later reviews.

  1. Origin. Confirm where the server comes from: the provider of the system it connects to, a known open source project or an unknown publisher. Compare the exact package name with the official one to rule out a look-alike.
  2. Maintainer. Check who maintains the server, when it was last updated and how to report a security issue. Treat an archived or inactive project as a finding.
  3. Permissions. List the scopes its token needs and compare them with the tools it offers. Prefer read-only tokens issued for this server only, and reject wildcard or all-access scopes.
  4. Network access. Find out which hosts the server contacts. A local server that only needs files should run in a sandbox with network access turned off.
  5. Update policy. Read how the project publishes releases and change notes. For a remote server, ask the operator how it announces changes to tools and whether you can stay on a fixed version.
  6. Pinning. Install a specific version and record a hash of the approved tool definitions. Compare them before use and require a new review when they change.
  7. Tool descriptions. Read every description, parameter name and schema in full. Look for instructions addressed to the model, hidden text, references to other tools and requests for data the task does not need.
  8. Logging. Make sure you can log each call with its parameters, the identity behind it and the result. A server whose calls you cannot see is not ready to go live.

Turn approval into a repeatable process

A checklist helps once. A process keeps working after the tenth server. The OWASP GenAI Security Project's guide to securely using third-party MCP servers (opens in a new tab) suggests a trusted internal registry with a simple workflow. A developer submits the server with its documentation and a hash of its tool descriptions. Automated tools scan it, and a security reviewer and a business owner both sign off. The server then runs in a test environment for a probation period and is scanned again on a schedule or when its version changes.

Pair the registry with detection. The NSA recommends scanning your network for MCP servers that run without authentication or outside change control. It also recommends logging each tool call with its exact parameters and the identities involved. When a remote server comes from a vendor, our AI vendor security questionnaire helps you ask the right questions.

When we review an AI agent's tool access, we treat each MCP server the way we treat a new supplier: we check where it came from, what it can reach and how it will change. Our AI security consulting team runs these reviews and attack-tests agents for tool poisoning and cross-server data leaks. For the full set of risks and a risk-to-control table, see the MCP security guide.

Sources

  1. 1.Model Context Protocol (MCP): Security Design Considerations for AI-Driven Automation, U.S. National Security Agency, Artificial Intelligence Security Center, 2026-05-20 (opens in a new tab)
  2. 2.Tools (Specification 2026-07-28), Model Context Protocol, 2026-07-28 (opens in a new tab)
  3. 3.MCP Security Cheat Sheet, OWASP Cheat Sheet Series (opens in a new tab)
  4. 4.A Practical Guide for Securely Using Third-Party MCP Servers, version 1.0, OWASP GenAI Security Project, 2025-10-23 (opens in a new tab)
  5. 5.OWASP Top 10 for Agentic Applications: The Benchmark for Agentic Security in the Age of Autonomous AI, OWASP GenAI Security Project, 2025-12-09 (opens in a new tab)
  6. 6.Thinking carefully before adopting agentic AI, UK National Cyber Security Centre, 2026-05-15 (opens in a new tab)
  7. 7.MCPTox: A Benchmark for Tool Poisoning Attack on Real-World MCP Servers, arXiv (Wang et al.), 2025-08-19 (opens in a new tab)

Get a free 30-minute assessment

Walk us through the AI tools and agents you use or plan to launch. We'll point out the biggest risks and the first fixes, in plain words.

Frequently asked questions

Why are MCP servers a supply-chain risk?

An MCP server is third-party software that your AI agent depends on while it works. It usually holds a token to a business system, and the model reads its tool descriptions when it plans each step. A malicious, compromised or abandoned server can therefore steer the agent or reach your data, much like a bad software dependency, but with live access instead of only code in your build.

How do you vet an MCP server before installing it?

Check eight things: the server's origin and exact package name, its maintainer and update history, the token scopes it needs, its network access, how it publishes updates, whether you can pin a version, the full text of its tool descriptions and whether you can log each call. Record the answers and repeat the review when the server changes.

Can you pin a remote MCP server?

Not in the same way as a package, because the code runs on the operator's systems. You can record a hash of the tool definitions you approved, compare them before use and block the server or require a new review when they change. Ask the operator how it announces changes and whether it offers fixed versions, and combine this with narrow tokens and logging.

Do dependency scanners detect malicious MCP servers?

Only in part. Dependency scanners can flag known vulnerable versions and some malicious code in a local server package. They are not designed to judge whether a tool description contains instructions aimed at the AI model, which is how tool poisoning works. Add a manual review of tool descriptions, scanning built for MCP and monitoring of tool calls.

Services and use cases

  • Service

    AI security and red teaming

    AI security consulting for AI agents and LLM apps: red teaming, prompt injection testing, shadow AI discovery and EU AI Act and ISO/IEC 42001 readiness.

    Explore AI security consulting

Free 30-minute assessment

Find the one workflow worth automating first.

Tell us how your team works. We'll come back with two or three AI opportunities, the risks to watch and a rough payback estimate. No obligation.

  • A senior engineer replies within one business day
  • We can sign an NDA before you share details
  • No fixed packages, every quote tailored to you
What can we help with?
About your company

Company size

When would you like to start?

How can we reach you?

Encrypted in transit · read only by our team · never sold

Free 30-minute AI assessmentGet it →

Before you go

Find out where AI can save your team time

Book a free 30-minute assessment. A senior engineer reviews one workflow with you and sends back the opportunities, the risks and a rough payback estimate.