MCP Server Primitives: Prompts
definition
Prompts are one of MCP's three server primitives, representing reusable prompt templates that a server can expose for agents and users to invoke by name. Unlike tools (which execute actions) and resources (which expose data), prompts provide pre-built interaction patterns — like "summarize this document" or "review this code" — that encapsulate domain expertise into discoverable, parameterized templates.
Prompts are one of MCP's three server primitives, representing reusable prompt templates that a server can expose for agents and users to invoke by name. Unlike tools (which execute actions) and resources (which expose data), prompts provide pre-built interaction patterns — like "summarize this document" or "review this code" — that encapsulate domain expertise into discoverable, parameterized templates. Prompts enable a separation of concerns where domain experts can craft effective prompt patterns once and share them through MCP servers, while developers and agents simply invoke them by name with relevant parameters. This primitive is particularly valuable for organizations that want to standardize how their teams interact with AI across different tools and clients. This concept connects to system prompts for understanding the role of prompt design in agent behavior, MCP server primitives tools for the action-oriented counterpart, and context engineering for understanding how prompt templates fit into the broader context assembly process.