Short answer

The Model Context Protocol (MCP) is a standard way to connect AI assistants to tools and data. Its own security guidance warns about malicious local servers, stolen or over-broad access tokens and hijacked sessions, and the UK NCSC says an AI that processes untrusted content should not hold privileged tool access. Connect only trusted servers, grant the narrowest access, and keep approvals on.

Key takeaways

  • MCP servers can run on your own computer with the same privileges as the client, so installing an untrusted one can mean running unknown code.
  • The MCP security guidance lists attacks including confused deputy, token passthrough, session hijacking and local server compromise.
  • Broad permissions increase damage. The guidance recommends a least-privilege approach to scopes.
  • The UK NCSC says that when an AI processes information from a party, its privileges should drop to that of the party.
  • OWASP lists supply chain weaknesses, such as weak provenance and compromised components, as a risk for AI systems.

What MCP is, and why it matters

AI assistants are more useful when they can read your documents, search your email or update a spreadsheet. The Model Context Protocol (MCP) is a standard way to connect an assistant to those tools and data. Each connection, often called a server or connector, gives the assistant a new ability. It also gives an attacker a new place to aim.

The risk is easy to underrate because setup is quick. A tool you add in a minute may run code on your computer or hold a token that lets it act in your accounts.

What the MCP security guidance warns about

The protocol’s own security best practices page lists attacks that implementers need to guard against. Four matter most to ordinary users.

Local server compromise. Local MCP servers run on your machine. The guidance says they may have direct access to your system, and lists risks such as arbitrary code execution, no visibility into what commands are run, command obfuscation, data exfiltration and data loss. Its example of a malicious startup command shows how a harmless-looking install line can also send your private files elsewhere. It says clients offering one-click setup must show the exact command and get explicit approval first.

Confused deputy. In some designs an MCP proxy server connects to third-party services. The guidance explains how an attacker could exploit consent shortcuts to obtain access without the user’s real approval, and requires per-client consent screens.

Token passthrough. Passing a token on without checking it was issued for that server is forbidden in the guidance, because it can bypass security controls and make audits harder.

Session hijacking. If someone obtains a session ID, they may inject events or impersonate a user. The guidance says servers must verify all inbound requests and not use sessions for authentication.

Most of these are duties for developers. As a user, you cannot inspect tokens. What you can do is choose carefully who you trust.

Too much access is the multiplier

The guidance also warns about broad permissions. It describes how a stolen token carrying wide scopes, such as access to all files, expands the damage, and recommends progressive, least-privilege scopes. The same idea applies to you: a connector that can read one folder is a smaller problem than one with your whole drive and mailbox.

Where prompt injection comes in

An MCP connection joins two weaknesses. The assistant can be fooled by text it reads, and it can now take actions. The UK NCSC says that if an AI’s output triggers tool or API calls, a successful prompt injection can give an attacker the same access as those tools. Its rule of thumb is that when an AI processes information from a party, its privileges should drop to that of the party. An assistant reading an unknown email should not also hold a tool that can send money or delete files. Read more in our prompt injection explainer.

Supply chain: who built the server?

OWASP’s LLM03:2025 entry covers weaknesses in the components AI systems rely on. It points to weak provenance, where attackers can compromise a supplier’s account or create a lookalike repository, and vulnerable or outdated components. The same logic applies to connectors. A tool with a convincing name from an unknown author deserves the suspicion you would give a fake AI app or browser extension.

A safer routine

Add connections one at a time, from publishers you can name. Prefer read-only access. Keep confirmation on for anything that sends, deletes or buys. Review and remove old connections. Our guide to AI agent permissions and risks goes deeper on what to allow. If something misbehaves, disconnect it, revoke its access in the connected account, change passwords, and follow the data breach checklist.

What you can do

  1. 01Connect only MCP servers and connectors from sources you trust, and check who publishes them before installing.
  2. 02Read the exact command or permission a one-click setup asks to run. If you do not understand it, do not approve it.
  3. 03Grant the narrowest access available, such as read-only access to one folder, not your whole drive, mailbox or account.
  4. 04Keep approval prompts on for actions that send, delete, buy or share, and do not auto-approve a new tool.
  5. 05Remove connections you no longer use, and revoke their access from the connected account's security settings.
  6. 06Avoid pointing a connected assistant at untrusted content such as unknown emails or web pages, since hidden instructions can steer it.

Related reading: AI voice clone scams and the data breach tracker.

Frequently asked questions

What is MCP in plain terms?

The Model Context Protocol is an open standard that lets AI applications connect to outside tools and data, such as files, databases or web services. A connected assistant can read from and act on those systems, which is why the connection is a security decision.

Why is a local MCP server risky?

The MCP security guidance says local servers run on your machine, may have direct access to your system, and can be targets for attack. It lists risks including arbitrary code execution, no visibility into what commands run, and data loss, and says clients should show the exact command before running a new server.

Can prompt injection and MCP combine?

Yes. The NCSC notes that if an AI's output triggers tool or API calls, a successful prompt injection can give an attacker the same access as those tools. The more tools connected, the more an injection can reach.

Is there a way to make this completely safe?

No guarantee exists. The NCSC says prompt injection cannot be fully eliminated, so the practical approach is to reduce likelihood and impact through narrow permissions, approvals and monitoring.

Sources

  1. Security Best Practices, Model Context Protocol
  2. Prompt injection is not SQL injection (it may be worse), UK National Cyber Security Centre (NCSC), 2025-12-08
  3. LLM03:2025 Supply Chain, OWASP GenAI Security Project, 2025-01-01

This article reflects public information as of 2026-11-06. AI tools and rules change quickly; we update articles when new facts are published. Spot an error? See our editorial and corrections policy.