MCP glossary · Security & authorization

Prompt injection

Hostile instructions hidden in content a model reads, aiming to hijack its behaviour.

Prompt injection is the technique of smuggling hostile instructions into the text a model processes — a tool description, a web page, a file — so the model follows the attacker instead of the user. It is a first-order concern for MCP because a server's tool descriptions and results flow straight into the model's context; MCP's own security guidance addresses a transport-level variant it calls session-hijack prompt injection. Serverdex scans server tool descriptions for injection patterns as part of its live check.

See it on Serverdex

← All MCP terms

Source: MCP spec — Security best practices (2025-06-18), read Nov 28, 2026.