MCP Colors: Systematically deal with prompt injection risk

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Tim Kellogg proposes a two-color red/blue scheme for labeling MCP tools to keep untrusted data and critical actions apart, which practitioners could adopt now but with no tooling or standard.

Read this as

Security researcher Tim Kellogg proposes color-coding AI agent tools to reduce prompt injection risk, a problem where malicious instructions hidden in data trick the AI. Tools would be labeled 'red' if they feed the AI untrusted data, or 'blue' if they perform critical actions an attacker shouldn't trigger. The AI would then avoid ever using red and blue tools in the same session. Kellogg labeled about 200 of his own tools this way, using an AI to help.

Tim Kellogg's 'MCP Colors' proposal offers a simple red/blue risk taxonomy for tools used by AI agents, which could reduce the business risk of prompt injection attacks without new software purchases. Implementing it means auditing every tool an agent can touch; Kellogg labeled roughly 200 tools using an AI assistant in a spreadsheet. The scheme is a proposal, not a standard, so it carries no vendor cost but does carry audit effort.

Kellogg's scheme classifies each MCP tool or resource as 'red' (exposes the agent to untrusted instructions) or 'blue' (a critical action you would not want an attacker to trigger). For MCP tools, colors are stored in the _meta object, and the agent checks at runtime whether it has entered an unsafe red-plus-blue state. He labeled ~200 tools with an LLM-assisted spreadsheet to refine his red/blue criteria. The article includes no benchmarks or adoption data.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

MCP Colors Model Context Protocol Tim Kellogg Simon Willison

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading