---
title: "Model Context Protocol Security: Risks and Safeguards"
description: "Learn the main model context protocol security risks, from token scope to tool poisoning, and the safeguards teams need before connecting AI clients."
url: https://projectify.si/blog/model-context-protocol-security
updated: 2026-11-26
---

# Model Context Protocol Security: Risks and Safeguards

Published 2026-11-26 by the Projectify team · Topics: model context protocol, MCP security, AI agent security, OAuth for MCP, tool permissions

You connect Claude to your project board, your shared files, and an external issue tracker over the Model Context Protocol (MCP). Within minutes, it summarizes client briefs, searches past notes, and drafts task updates. Then a practical question stops you mid-click: if a sketchy third-party tool or a hidden line inside a client PDF tells that agent to read a private folder or email an outside contact, what stops it?

Most security guides stop at the login screen. They check whether the connection uses a valid token, then treat every tool behind that server as safe. In practice, **Model Context Protocol security** depends on a wider chain: the server code executing commands, the permissions attached to each token, the tool descriptions and files the model reads, and the human review sitting in front of high-impact changes.

Each control works best when it belongs to a named owner or an explicit approval gate. Once you see how an AI client, an MCP server, and your team's records fit together, you can place the right safeguard at every step instead of hoping the model behaves.

## MCP Security Risks and Safeguards at a Glance

Before digging into OAuth flows or tool vetting, it helps to map the concrete ways an MCP connection fails and the control that stops each one.

| Risk  | What goes wrong  | Safeguard |
| --- | --- | --- |

| Command injection  | A tool passes unchecked input to a shell or system call  | Validate every argument against a strict schema |
| Path traversal  | A file tool reads or writes outside its allowed folder  | Constrain file paths to one approved root |
| Server-side request forgery  | A server fetches an internal address on the agent's request  | Restrict outbound destinations to named hosts |
| Confused deputy  | A server accepts a token issued for another resource  | Check token audience on every call |
| Over-scoped tokens  | A token grants more access than the task needs  | Use least-privilege scopes and short-lived tokens |
| Tool poisoning  | Tool descriptions carry hidden or misleading instructions  | Scan descriptions and freeze definitions after approval |
| Malicious or hijacked registry entry  | A look-alike or changed server is installed  | Allowlist publishers and pin versions or digests |
| Consent fatigue  | People approve many prompts without reading them  | Set category rules in advance and gate high-impact actions |

### Why server and integration layers carry most of the risk

Look at the first three rows in the table above. None of them require breaking the language model itself. **MCP security risk concentrates at the server and integration layer**, especially wherever a tool can execute shell commands, open local files, or send outbound network requests.

Ecosystem growth explains why those gaps are so common. A [2026 Practical DevSecOps review of MCP security statistics](https://www.practical-devsecops.com/mcp-security-statistics-2026-report/) reported more than **97 million monthly MCP SDK downloads** and over **10,000 active public servers**, while server hardening lagged behind adoption. Separate assessments cited in that same review found **command-injection weaknesses in 43% of tested MCP servers**, **path-traversal exposure in 82% of 2,614 implementations**, **server-side request forgery in roughly 30% to 36.7% of tested servers**, and **critical vulnerabilities in 33% of 1,000 scanned servers**, along with **tool poisoning in about 5.5% of a 1,899-server academic sample**.

Keep an important caveat right beside those numbers: they come from different studies and samples, so they aren't a single universal prevalence rate across every MCP server on the internet. Even so, independent academic testing points in the same direction. A [2025 empirical study by Hasan et al.](https://arxiv.org/html/2506.13538) analyzed **1,899 open-source MCP servers** and found that **7.2% contained at least one general security vulnerability**, confirming that exposure extends well beyond tool poisoning alone. Meanwhile, a [2025 MCP safety-audit study](https://ar5iv.labs.arxiv.org/html/2504.03767) demonstrated three real attack types, malicious code execution, remote access control, and credential theft, against MCP-connected systems running Claude 3.7 and Llama-3.3-70B.

Use the table as a filter for your own workspace. Mark the rows that match what your connected tools can do, such as touching files, calling webhooks, or editing records, then focus your controls on those exact surfaces.

## How authorization works between client, server and data

Think of MCP authorization like a hotel keycard. One card opens the lobby door and your own room, yet it won't open the accounting office or the room next door. Three parties take part in every request, and keeping their roles clear prevents most access mistakes.

The **resource owner** is the person whose project records, client folders, and task lists are at stake. The **AI client** is the Claude session acting on that person's behalf, whether it runs in **Claude Code**, **claude.ai**, or **Claude Desktop**. The **MCP server** holds the tools and connects to the records they reach, checking the token before it answers. If you're new to how those pieces exchange messages, our guide on [what the Model Context Protocol is](https://projectify.si/blog/what-is-model-context-protocol) walks through the underlying protocol flow.

The diagram below shows how authority travels from the person down to the data and how approval returns upward.

![A diagram illustrating how authorization works between the resource owner, client, and server with data access tokens.](https://cdnimg.co/0d03a4e6-21c3-4c7d-8a76-8c3320cbb3a7/8b78daad-d5ca-49c9-a437-bd027df55745/model-context-protocol-security-authorization-flow.jpg)

### Authentication, authorization and the confused deputy

Teams often blur two separate questions. **Authentication** asks who is connecting, while **authorization** asks what that connection is allowed to do once it arrives. Passing the first check tells you nothing about whether an agent should delete a folder or update a client budget.

That boundary became formal in the March 26, 2025 MCP authorization specification, which introduced transport-layer authorization requirements and required authorization servers to implement **OAuth 2.1** with protections for both confidential and public clients. The [November 2025 MCP authorization guidance](https://modelcontextprotocol.io/specification/2025-11-25/basic/authorization) reinforces that HTTP-based transports use this transport-level boundary so an MCP client makes requests to restricted servers on behalf of a resource owner rather than relying on the model's judgment.

When that boundary breaks, the classic failure is **confused-deputy authorization**. Say an MCP server accepts an access token that was originally issued for a different service. An attacker holding that token can slip into the server, or the server can act with authority it should never have used. Checking the token's intended audience on every single request stops tokens from crossing between services.

In daily work, interactive sessions and automated scripts connect differently. In Projectify, each interactive Claude connection is approved once in the browser, so no key ever needs to be copied into a chat or config file. When a script, CI job, or another cloud agent needs access instead, you create an API key under Agents › Connect Claude › Create a key, store it as a secret, and send it as a Bearer token to the MCP endpoint.

Before trusting any MCP server connection, run three quick checks:

- **Inventory every server:** Write down every local and remote MCP server your team connects, including temporary test servers.
- **Map each token to its resources:** Record the exact projects, folders, or external systems each token can reach.
- **Block cross-service token reuse:** Confirm that a token issued for one MCP server is rejected by every other server.

## Permission Tiers and When to Require Approval

Logging in as a verified user doesn't guarantee safe execution. If a server executes an agent's tool call using its own broad service credentials instead of the requesting person's limits, one low-level prompt can trigger workspace-wide changes. That's the **over-scoped token** problem highlighted by OWASP in the [June 2025 MCP authorization specification](https://modelcontextprotocol.io/specification/2025-06-18/basic/authorization), which defines the MCP server as an OAuth 2.1 resource server, expects clients to discover endpoints through **Authorization Server Metadata (RFC 8414)**, and calls for explicit consent before tool invocations.

A safer design separates permissions into narrow buckets: read, create, update, delete, file-access, and admin scopes. Each tool call carries a short-lived, audience-restricted token, and the server checks authorization again at execution time instead of trusting an earlier check. In our own workspace model, an agent acts for one person and sees exactly what that person can see, at that person's permission level. Every mutation logs the person, the agent, the tool, the resource, and the approval decision, which is also the core pattern behind strong [AI agent identity management](https://projectify.si/blog/ai-agent-identity-management).

Use the permission tiers below to decide where logging is enough and where a person must step in.

| Permission tier  | Example actions  | Approval needed |
| --- | --- | --- |

| Read  | Open a record, search files, read a summary  | No, logged under a read-only scope |
| Create  | Add a task, draft a document, open a request  | Usually no, logged with the agent and person |
| Update  | Change a status, field or assignee  | Only when project rules gate that field or status |
| Delete  | Remove records, files or whole lists  | Yes, enforced on the server |
| Permissions and admin  | Change who can see a file or folder  | Yes, always |
| External send  | Email a client, post outside the workspace  | Yes, with the final text shown first |

### Why approval must live on the server

Many teams try to add safety by pasting a line into a system prompt: "Ask me before deleting anything." That isn't a real control. Prompt instructions compete with retrieved documents and tool outputs, so a clever injection can talk the model out of asking.

> **Enforcement rule:** Treat prompt instructions as guidance, and treat server-side policy gates as security. If a server will execute a delete without a verified human approval token, the gate doesn't exist.

High-impact actions need a hard stop built into the workflow itself. In Projectify, risky steps such as a push, a migration, a delete, or a send to everyone pause in **Needs you** with a recommended answer until a person responds. Nothing runs until that person reviews the impact and clicks approve.

Take twenty minutes this week to sort every tool your team connects into one of the six tiers above. Decide which tiers only need a logged least-privilege scope and which ones must pause behind a server-side approval gate.

## Tool text, content and the supply chain behind tools

Say a delivery arrives at your office with a sticky note tucked inside the box. The note says to ignore the original address label, copy the client contract on your desk, and courier it to an unknown PO box. An employee would toss the note in the bin. An authorized AI agent reading untrusted text can easily mistake that note for a valid instruction.

The illustration below captures how hidden instructions attached to routine files can redirect an otherwise authorized agent.

![A robot manipulating delivery instructions for sensitive project files to demonstrate a potential data security risk.](https://cdnimg.co/0d03a4e6-21c3-4c7d-8a76-8c3320cbb3a7/21164f38-398a-4192-bf6d-ca3da4c50cbe/model-context-protocol-security-robot-data-breach.jpg)

Inside MCP, the sharpest form of this problem is **tool-description poisoning**. As an [OpenID response on agent security](https://openid.net/wp-content/uploads/2026/03/Attachment1_NIST-2025-0035-0001.pdf) explains, a malicious or compromised server can craft tool descriptions that steer an agent to request unnecessary credentials, bypass safety checks, or create persistence. This isn't merely theoretical. A [2025 security review of MCP clients](https://arxiv.org/html/2512.08290) found that **5 of 7 evaluated MCP clients lacked static validation of server-provided metadata**, meaning most clients accepted dynamically advertised tool descriptions at face value.

### The hidden risk in public tool registries

It's easy to assume an MCP server stays trustworthy once it passes install and OAuth setup. That assumption breaks down across public tool registries. Researchers who examined [67,057 MCP servers across six public registries](https://arxiv.org/html/2510.16558) uncovered widespread conditions enabling server hijacking and invocation manipulation; their analysis tool flagged **833 vulnerable servers** and **18 with suspicious descriptions**.

Because a tool's owner, repository, or description can change after installation, MCP tools behave less like static plugins and more like live software dependencies. An attacker doesn't even need a code-level exploit if they can slip a persuasive sentence into a schema description or returned document.

The short video below walks through how MCP tool attacks unfold in practice and where defenders can break the chain.

[Embedded video](https://www.youtube.com/embed/3wiKt1mKcto)

### Seven steps to vet every MCP tool

Treat every MCP server the way a careful engineering team vets an open-source dependency before shipping it to production. Run through these seven checks in order:

1. **Confirm the publisher and check your allowlist.** Never install a server purely because its name looks familiar in a public directory. Maintain an explicit allowlist of approved publishers and tool identifiers, and fail closed when a tool isn't on it.
2. **Pin the version or an immutable digest.** Floating "latest" tags invite silent rug pulls. Lock each tool to a reviewed version hash so an upstream push can't alter tool behavior overnight.
3. **Scan descriptions and schemas for instruction-like wording.** Read the raw tool metadata the way you read code, flagging imperative phrases like "ignore previous rules," "always include," or requests for unrelated environment variables.
4. **Test in a sandbox before connecting real records.** Run the server against dummy tasks and fake files first so you can observe every file path it touches and every call it attempts.
5. **Restrict outbound destinations to named hosts.** Block arbitrary internet egress from the server container; if a calendar tool only talks to one calendar API, every other host should be unreachable.
6. **Require human approval for any new side effect, displaying the final rendered arguments.** Never approve a vague summary like "send email." Show the exact recipient, subject, body, and attached file path right before execution so nothing can mutate between approval and send.
7. **Quarantine and revoke on any change in owner, version, or behavior.** Set up alerts whenever a tool's schema or metadata hash shifts, pause the server automatically, and require a fresh review before turning it back on.

### Runtime checks and policy rules that beat consent fatigue

Vetting before install only protects you on day one. Inside the live connection, validate every tool argument against its strict schema, reject undeclared fields, lock file tools to one approved folder root, and classify every piece of retrieved text as data, never as instructions.

Standing workspace rules help reinforce those guardrails across sessions. In Projectify, **project rules** are lasting instructions a person writes, such as "always check the legal folder owner before sharing" or "never modify approved client budgets." They live on the project and appear first in every briefing, coming ahead of an agent's own defaults.

At the same time, don't fall into the trap of popping up a confirmation box for every single read or edit. When an agent runs hundreds or thousands of small actions in one session, per-action approval triggers **consent fatigue**, causing busy people to click "allow" without reading. Pre-configured **policy-based authorization** solves that problem by defining allowed action categories and accessible resources in advance, reserving human pauses for risky steps.

> Securing the OAuth flow only guards the front door. Provenance checks, frozen tool definitions, and content boundaries protect what happens inside the room.

Match your review depth to the sensitivity of the workspace. A team marketing calendar carries far lower risk than a legal matter, a client contract archive, or a folder holding vendor banking details. A built-in heads-up in Projectify warns when a file holds ID numbers or bank details, and the team chooses exactly who can see each file or folder before any agent connects.

## Consent, oversight and the signed record

Even with tight scopes and vetted tools, security breaks down if people can't see what an agent is about to do or trace what it already changed. The [November 2025 MCP specification](https://modelcontextprotocol.io/specification/2025-11-25) spells out user consent and control as core principles: people must understand and approve data access and operations, keep authority over shared data and actions, and have clear interfaces for reviewing permissions. Hosts are expected to get explicit consent before exposing data to a server or invoking a tool, and users must explicitly approve LLM sampling requests.

The specification is candid about one limit: MCP can't enforce those principles by itself. Every host application and workspace has to build the consent screens, access controls, data protections, and clear documentation on top of the protocol.

The checklist below summarizes the four pillars that turn protocol principles into daily practice.

![A four-point list explaining principles of user consent, oversight, and maintaining a verified signed record.](https://cdnimg.co/0d03a4e6-21c3-4c7d-8a76-8c3320cbb3a7/f20f48c6-7ad1-4f5d-b6cc-0b391d05d5bd/model-context-protocol-security-consent-oversight.jpg)

### Defining human oversight before agents run

Consent at the tool level pairs naturally with governance at the organization level. The [NIST AI Risk Management Framework](https://tsapps.nist.gov/publication/get_pdf.cfm?pub_id=936225&) states that human roles and responsibilities in decision-making and AI oversight must be clearly defined and differentiated across configurations from fully autonomous to fully manual. Its **MAP 3.5** recommendation calls on teams to define, assess, and document those oversight processes under formal governance policy, while also warning about privacy risks created when connected tools aggregate data across systems.

For small and midsize teams, that doesn't require a hundred-page compliance binder. It means writing down which tasks an agent can finish on its own, which ones pause for a named reviewer, and who holds authority to revoke a connection when something looks wrong. Our guide to [human-in-the-loop AI agents](https://projectify.si/blog/human-in-the-loop-ai-agents) breaks down how to place those checkpoints without slowing real work to a crawl.

### What a useful audit record actually captures

An audit trail closes the loop between consent and incident response. Maintain tamper-evident logs covering tool registration, metadata changes, context sources, rendered arguments, approvals, results, and reversals. If a poisoned document ever nudges an agent into a bad edit, those records let you trace the exact source, undo the change, and revoke the compromised tool in minutes.

Good logs also make everyday reviews readable for non-technical managers. In Projectify, every agent session starts briefed, claims its task with a 30-minute lease, pulls from one queue, and asks before it builds. Every edit is signed **"Claude for "** so anyone scanning the history sees both the agent and the accountable human.

Choices that affect the project's direction get recorded as short decision records containing the context, the decision, the alternatives considered, and the consequences; an agent can propose one, and a person accepts it. Each session ends with a structured handoff so the next person or agent picks up from a verified record instead of guessing what happened.

> **Audit test:** Pick one agent action from yesterday and check whether your logs tell you who authorized it, what data informed it, what arguments ran, and how to undo it in one step.

## Confirm each connection before going live

Roll out MCP access the way you hand keys to a new contractor: start with read-only access on one non-sensitive project, then widen scope only after the logs prove the right person is tied to the right resource. The login step is the beginning of the review, not the end. What the agent can read, which tool descriptions it follows, and who approves its risky steps all belong to the same checklist.

Work through these six checks in order before opening any live client or operational workspace:

1. **Name an owner for each connection and workspace.** Every OAuth client and API token needs one accountable person who reviews alerts and answers when permissions drift.
2. **Inventory every server and token.** Write down the exact projects, folders, and downstream tools each token covers so nothing stays connected by accident.
3. **Set scopes by permission tier.** Assign read-only or draft scopes by default, and switch on server-side approval gates for deletes, permission edits, and external sends.
4. **Run a pilot on one low-risk project.** Execute a handful of routine tasks, then inspect the audit log to verify every entry names both the correct person and the agent.
5. **Audit readable files and folders.** Check every folder the agent can open, reviewing any document that may hold ID numbers or bank details before a tool indexes or summarizes it.
6. **Write standing project rules and a revocation trigger.** Document your "always" and "never" project rules, revoke tokens the same day staff change roles, and re-review any MCP tool whose version or description changes.

### Checking each client and passing the go or no-go test

Claude connects over MCP from **Claude Code**, **claude.ai**, and **Claude Desktop**. Review each client separately, because a local tool enabled in Claude Desktop will not automatically share the same permissions or network rules as the browser connector in claude.ai. A connection approved in one place still has to earn its scope in the other.

Projectify publishes a Security and data FAQ for teams that want details on workspace policies. Organizations that need single sign-on can run Enterprise on their own servers, on-site or self-hosted. For software teams, the fleet runs Claude Code workers on your own machine, each in its own worktree, and every task ends as a pull request. Nothing merges without you.

Apply one final go or no-go test before flipping a connection into daily use: go live only when every MCP connection has a named owner, a least-privilege scope, a server-side approval gate for high-impact actions, and a readable audit log. If any of those four pieces is missing, keep the connection in read-only pilot mode until it is in place.

---

Projectify brings people and their Claude agents into one workspace built around clear security boundaries, where every session starts briefed, risky actions pause in Needs you for a person's approval, and every change is signed with who authorized it. Whether your team manages client work, operations, legal matters, or software, you can start with a month of Premium free with no card and see how controlled MCP workflows run in practice at [Projectify](https://projectify.si).
