MCP glossary · Capabilities & features

Sampling

A server asking the client to run an LLM completion, so the server needs no API key of its own.

Sampling is “a standardized way for servers to request LLM sampling (‘completions’ or ‘generations’) from language models via clients,” using the sampling/createMessage method. It lets a server use AI without holding any model API key — the client keeps control of model access, selection and permissions. For safety the spec says there should always be a human in the loop able to deny a sampling request.

See it on Serverdex

← All MCP terms

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