Skip to main content
MCP servers can expose reusable prompt templates — parameterized instructions that produce formatted messages. This is useful for standardized analysis, code review, or any repeatable workflow.

Listing Prompts

Getting a Prompt

Fetch a prompt with arguments to produce formatted messages:

MCPPromptProvider

For a higher-level interface:

Using Prompts with Agents

Feed prompt content into an agent’s instruction:

Prompt Structure

An MCP prompt has: When resolved, a prompt produces a list of messages with role and content, ready to be passed to a model.