MCP Tool Annotations: The Four Hints and Their Defaults
MCP tool annotations are the readOnlyHint, destructiveHint, idempotentHint and openWorldHint fields a server attaches to a tool, and how clients use them.
6 min read
MCP server security covers confused deputy attacks, token passthrough, tool poisoning and supply chain risk, and how to harden a Model Context Protocol server in 2026.
Model Context Protocol servers now sit inside real production workflows: coding agents that read a codebase, support bots that touch a CRM, assistants that call AWS on a user's behalf. The US National Security Agency published a Cybersecurity Information report on MCP in May 2026 (PP-26-1834) because that access pattern reverses a familiar trust boundary: instead of a client asking a server for data, an MCP server often acts and executes on the client's behalf. Praetorian Labs and other security researchers have since demonstrated, not just theorized, that an unsecured MCP server can run arbitrary code, exfiltrate data and manipulate a user without any visible sign in the chat window.
MCP server security is the set of controls that stop a Model Context Protocol server, or a tool it exposes, from executing unauthorized commands, leaking credentials, or feeding manipulated instructions back to the AI client that connects to it. Because an MCP server can hold and use a user's credentials, the practical risks are prompt injection, tool poisoning, token passthrough between services, and supply chain compromise of the server's own code.
Before hardening anything, know which kind of server you are securing. Red Hat's own MCP security writeup draws the line clearly: a locally hosted MCP server runs as a process on a machine you control and typically executes OS commands or custom code to do its job. A remotely hosted MCP server, the kind Claude Code or Cursor connect to for services like Slack, Notion, Box or Atlassian, cannot execute code on your machine, but it can still read and act on your data through an OAuth-authorized connection. The current MCP specification, dated 2026-07-28, also leaves authorization itself optional: a server author has to choose to add it, and many do not.
A local MCP server is a machine-in-the-middle by design. Praetorian's research lists what that position enables an attacker to do once a local server is malicious or compromised: execute arbitrary code with the user's own privileges, exfiltrate local files and credentials, install persistence mechanisms, and collect system information. Treat every local MCP server the way you would treat a new dependency with shell access, and run it in a sandbox that limits what it can read or execute. A remote MCP server cannot touch your filesystem, but Praetorian notes it still enables unauthorized actions inside the connected platform and credential harvesting through the OAuth flow itself, and the most dangerous configurations chain the two: a legitimate remote server's data flowing into a malicious local one.
The official MCP security best practices document defines token passthrough as an anti-pattern where a server accepts a token from a client without confirming that token was actually issued for it, then forwards it unmodified to a downstream API. The specification states that MCP servers must not accept any token that was not explicitly issued for that server. Skipping this check breaks rate limiting and audit logging on the downstream service, because its logs will show requests coming from whichever client originally held the token rather than from the MCP server relaying it, which makes an incident close to impossible to trace back to its source.
MCP's own documentation walks through a specific confused deputy attack: an MCP proxy server that uses one static client ID with a third-party authorization server, combined with dynamic client registration for its own clients and a consent cookie set by that third party, lets an attacker skip the consent screen entirely and steal an authorization code. The fix the spec requires is per-client consent storage, redirect URI validation with exact string matching, and a cryptographically random, single-use OAuth state parameter. Separately, because MCP clients fetch metadata URLs supplied by the server during discovery, a malicious server can point those URLs at internal IP ranges or at cloud metadata endpoints like 169.254.169.254 to trigger server-side request forgery and pull cloud credentials out of the client's own network position.
Datadog's MCP security writeup names the pattern directly: a server can be approved once with an innocuous tool description, then have that description silently changed later to add malicious instructions, which Datadog calls a rug pull when the change happens post-approval and tool poisoning when the changed instructions are what causes harm. Their own worked example has an engineer ask an approved AWS-connected MCP server for unused S3 buckets; the server's tool definition has been updated to delete those buckets without additional approval, and the response the engineer sees never mentions it. Red Hat's writeup describes the same risk from the install side: a tool named to look like it gathers weather data can be updated to exfiltrate confidential information instead, or a malicious server can name its tools to collide with a legitimate server's names so an LLM picks the wrong one. The mitigation both point to is the same: pin the version of any MCP server you install and get notified the moment its code or tool descriptions change, rather than trusting an install-time review to hold indefinitely.
Praetorian's research found that the MCP ecosystem has largely standardized on uvx, from Astral's UV package manager, to run Python-based MCP servers, and that this creates an attack surface before any MCP protocol message is even sent. A typosquatted package name copied from a blog post or GitHub gist, a legitimate package compromised through stolen PyPI credentials, or a maintainer-abandoned package name re-registered by an attacker (Praetorian calls this a revival hijack) will all execute attacker code the next time an agent restarts, with no MCP tool call and no approval prompt involved at all. Datadog separately flags a remote code execution vulnerability that was found in the widely used mcp-remote package, and Praetorian cites the real-world Postmark MCP server infostealer campaign as evidence this is not hypothetical.
The most common failure the NSA's report calls out is skipping access control entirely: many MCP implementations omit authentication, and those that add it often skip role-based permissions like separating create, read, update and delete access, which the report says makes access to data and context both ambiguous and untraceable. The next most common mistake is consent fatigue: Praetorian found that when AI applications ask for approval on every tool call, users start clicking
One email a week. New agents, MCP servers and skills, and what is actually getting traction.
MCP tool annotations are the readOnlyHint, destructiveHint, idempotentHint and openWorldHint fields a server attaches to a tool, and how clients use them.
6 min read
AI agent identity management explained: the registration, scoped-credential and delegation steps behind it, and how Okta, Microsoft, Google and MCP differ.
7 min read
A comparison of seven no-code AI agents platforms in 2026, covering pricing, integrations and best use case for n8n, Zapier, Lindy, Relevance AI, Voiceflow, Gumloop and Botpress.
10 min read