PioneerQ Start free

Assuren guide · Updated 2026-11-25

MCP server security: tool poisoning, tool permissions and authorization

Securing a Model Context Protocol (MCP) server means treating every tool description as untrusted text, granting each tool the narrowest scope it needs, and validating that every access token was issued for that server. The MCP specification spells out most of these rules; the hard part is checking that your deployment actually follows them.

What MCP is and where its risk sits

The Model Context Protocol is an open protocol that connects LLM applications to outside data and tools. It defines hosts (the LLM applications), clients (connectors inside the host) and servers (services that offer context and capabilities), and servers can expose resources, prompts and tools.[1] The current protocol version listed by the project is 2026-07-28.[5]

The specification is direct about the stakes. Its Tool Safety principle says tools represent arbitrary code execution and must be treated with caution, that descriptions of tool behavior such as annotations should be considered untrusted unless obtained from a trusted server, and that hosts must obtain explicit user consent before invoking any tool.[1]

It also says MCP itself cannot enforce these principles at the protocol level; implementors are expected to build consent flows, access controls and data protections into their applications.[1] In other words, the protocol hands you the rules and you own the enforcement.

Three risk areas account for most real MCP exposure: what the tools say (poisoning), what the tools can do (permissions), and who is allowed to call them (authorization).

Tool poisoning: when the tool description is the attack

An MCP client learns about a server's tools through tools/list. Each tool arrives with a name, an optional description, an input schema and optional annotations.[2] The model reads that metadata to decide when and how to call the tool. Anything written there is, in effect, part of the prompt.

Tool poisoning is the abuse of that channel. A malicious or compromised server ships a description that carries hidden instructions, for example telling the model to read a local file and include it in a parameter, or to prefer this tool over a trusted one. MITRE ATLAS lists AI Agent Tool Poisoning as a technique, alongside related entries such as AI Agent Tool Data Poisoning and AI Supply Chain Rug Pull.[7]

The specification's answer is a hard rule: clients MUST consider tool annotations untrusted unless they come from trusted servers.[2] Two more details matter in practice:

  • A server's tool list MAY change over time, and servers that declare listChanged can notify clients when it does.[2] A tool that was benign when you reviewed it can be different next week, so review once is not enough.
  • Tool names are unique only within one server. Clients that aggregate tools from several servers may hit collisions and SHOULD disambiguate, for example by prefixing with a server identifier.[2] Without that, a lookalike tool can shadow a trusted one.

Over-broad tool permissions

Even an honest tool is risky if it can do too much. The MCP tools section requires servers to validate all tool inputs, implement proper access controls, rate limit tool invocations and sanitize tool outputs. It says clients SHOULD prompt for confirmation on sensitive operations, show tool inputs to the user before calling the server to avoid malicious or accidental data exfiltration, validate tool results before passing them to the model, and log tool usage for audit.[2]

The spec also says there SHOULD always be a human in the loop with the ability to deny tool invocations.[2] That control only helps if the human sees a meaningful prompt, which is why small, single-purpose tools beat a single "run anything" tool.

Scope design is the other half. The security best practices page describes an attacker who obtains a token carrying broad scopes such as files:* or admin:* and uses it for lateral data access and privilege chaining. It lists common mistakes, including publishing every possible scope in scopes_supported, using wildcard or omnibus scopes, and treating claimed scopes as sufficient without server-side authorization logic.[4] Its recommended model is progressive: a minimal initial scope set, with elevation through targeted WWW-Authenticate scope challenges when a privileged operation is first attempted.[4]

This lines up with OWASP's Excessive Agency entry, which recommends limiting extensions and their functions to the minimum necessary and enforcing authorization in downstream systems rather than relying on the model.[6]

Authorization: what the specification requires

Authorization is OPTIONAL in MCP. When it is supported over an HTTP-based transport, implementations SHOULD conform to the authorization specification; STDIO implementations SHOULD NOT follow it and instead retrieve credentials from the environment.[3] The design is based on a subset of OAuth 2.1 and related standards.[3]

The requirements that most often fail in review:

  • Protected Resource Metadata. MCP servers MUST implement OAuth 2.0 Protected Resource Metadata (RFC 9728), and clients MUST use it to discover the authorization server.[3]
  • Resource indicators. Clients MUST send the resource parameter (RFC 8707) naming the MCP server's canonical URI in both authorization and token requests.[3]
  • Audience validation. Servers MUST validate that access tokens were issued specifically for them, and MUST NOT accept or transit any other tokens.[3]
  • No token passthrough. The best practices page calls token passthrough explicitly forbidden: a server that forwards client tokens to a downstream API can bypass that API's controls, break audit trails and become a proxy for data exfiltration.[4]
  • Bearer tokens in headers only. Tokens go in the Authorization header on every request and MUST NOT appear in the query string.[3]

The best practices page also covers confused-deputy attacks on MCP proxy servers that use a static client ID with a third-party authorization server; such proxies MUST implement per-client consent before forwarding.[4] For local servers, clients offering one-click setup MUST show the exact command to be run, without truncation, and require explicit approval.[4]

MCP security review checklist

  • Inventory every MCP server each agent can load, including ones added by plugins or user-level config.
  • Record who publishes each server and pin the version you reviewed.
  • Treat every tool description and annotation from an unreviewed server as untrusted input.
  • Watch for tool list changes and re-review when a tool's description or schema changes.
  • Prefix or namespace tool names when aggregating servers.
  • Replace broad tools with narrow ones; remove tools the agent does not use.
  • Publish a minimal scopes_supported set and step up scopes only when needed.
  • Confirm the server validates token audience and never forwards client tokens downstream.
  • Confirm Protected Resource Metadata and the resource parameter are in place.
  • Require confirmation for sensitive operations and log every tool call.
  • Check whether any tool combination gives one agent untrusted input, sensitive reads and egress at once.

How Assuren secures MCP

Assuren treats MCP servers as first-class nodes in an agent's trust graph, next to identities, credentials, tools, data stores and egress. Its deterministic computations include MCP security, tool governance and OAuth and token hygiene, along with excess privilege and injection-to-exfiltration reachability.

That last one is where MCP risk usually becomes concrete. A poisoned description or an over-scoped tool matters most when it completes a path from untrusted input to sensitive data to egress. Assuren shows that path with the exact contributing edges, replays the injection to show it is real, and accepts a fix only when the replay shows the data can no longer leave. See how prompt injection becomes exfiltration.

Assuren reads agent and MCP configuration as an input for authorization review and MCP integrity checks; it does not need your source code. On developer machines, Assuren's Local Guard screens coding-agent tool calls before they run, connecting through one MCP integration (see AI coding agent security). Policy decisions are deterministic rules, and a model never changes a policy rule.

Assuren runs read-only inside your boundary. You can create a free workspace and run it on your own agent.

Run this check on your own agent

Create a free Assuren workspace, register an agent and Assuren maps its trust graph, traces injection-to-exfiltration paths and proves each fix by replay. It runs read-only inside your boundary.

Create your workspace How Assuren works

Questions

What is MCP tool poisoning?

Tool poisoning is hiding instructions in the metadata a server sends about its tools, such as the description, so the model follows them when it reads the tool list. MITRE ATLAS lists AI Agent Tool Poisoning as a technique. The MCP specification requires clients to treat tool annotations as untrusted unless they come from trusted servers.

Is authorization required for MCP servers?

The specification makes authorization optional. When an HTTP-based server supports it, it should follow the MCP authorization specification, which is built on OAuth 2.1. STDIO servers should instead take credentials from the environment.

What is token passthrough and why is it forbidden?

Token passthrough is when an MCP server accepts a token not issued for it and forwards it to a downstream API. The MCP security guidance forbids it because it bypasses downstream controls, breaks audit trails and can turn the server into a proxy for data exfiltration. Servers must only accept tokens issued for themselves.

How should MCP scopes be designed?

Start with a minimal scope set covering low-risk read and discovery operations, then request more through targeted scope challenges when a privileged operation is attempted. Avoid wildcard or all-access scopes and do not publish every scope up front.

Does reviewing an MCP server once make it safe?

No. A server's tool list can change over time, and the specification lets servers notify clients when it does. Pin the version you reviewed, watch for changes, and re-check the agent's paths after any change.

Sources

  1. Model Context Protocol Specification (2026-07-28): Security and Trust & Safety. Model Context Protocol. https://modelcontextprotocol.io/specification/2026-07-28
  2. MCP Specification: Tools. Model Context Protocol. https://modelcontextprotocol.io/specification/2026-07-28/server/tools
  3. MCP Specification: Authorization. Model Context Protocol. https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization
  4. MCP Security Best Practices. Model Context Protocol. https://modelcontextprotocol.io/specification/2026-07-28/basic/security_best_practices
  5. MCP Specification: Versioning. Model Context Protocol. https://modelcontextprotocol.io/specification/versioning
  6. LLM06:2025 Excessive Agency. OWASP Gen AI Security Project. https://genai.owasp.org/llmrisk/llm062025-excessive-agency/
  7. MITRE ATLAS. MITRE. https://atlas.mitre.org/

More Assuren guides