← Back to glossary Glossary

MCP Sampling

Reviewed 19 July 2026 Canonical definition Part of: MCP & Agent Protocol Terms →

MCP sampling is the mechanism by which an MCP server asks the connected AI client to perform an LLM inference call on its behalf, enabling server-side agentic patterns without the server having direct access to a model. Sampling requests must be governed because they allow servers to influence model behaviour and inject content into the agent's reasoning context.

§01 / QUESTIONSterm: MCP Sampling
Questions

Common questions.

What is MCP Sampling?

MCP sampling is the mechanism by which an MCP server asks the connected AI client to perform an LLM inference call on its behalf, enabling server-side agentic patterns without the server having direct access to a model.

Why does MCP Sampling matter for AI agents?

Sampling requests must be governed because they allow servers to influence model behaviour and inject content into the agent's reasoning context.

Which terms are related to MCP Sampling?

Closely related concepts include MCP Server Discovery, MCP Poisoning, MCP Roots, MCP Authorization. Each is defined in the Prefactor glossary.

§02 / RELATEDnext: where this fits
Keep reading

Where this fits.

See how every agent performs, and make it better

Prefactor helps teams observe, evaluate, and improve their AI agents in production, across every framework and provider.