MCP Sampling

MCP

Definition

An advanced MCP capability that allows MCP servers to request LLM completions through the client, enabling servers to use AI without direct API access. The client controls model selection, permissions, and billing. Used for AI-powered tool implementations that need their own Claude calls.

Example Usage

An MCP server uses sampling to request Claude to summarize a document as part of processing a tool call, without the server needing its own API key.