# MCP sampling: definition and example

URL: https://mcpservercybersecurity.com/glossary/mcp-sampling/
Updated: 2026-11-16

MCP sampling is a client feature that lets a server request a completion from the user's language model through the client. The 2026-07-28 specification deprecates it, says new implementations should not adopt it, and points existing ones to calling model provider APIs directly. The spec still says a human should be able to deny sampling requests while the feature exists.

## Example

The deprecated-features registry lists Sampling, Roots and Logging as deprecated in 2026-07-28, with the earliest removal in the first revision released on or after 2027-07-28.

## Sources

- [MCP specification 2026-07-28: Deprecated Features](https://modelcontextprotocol.io/specification/2026-07-28/deprecated) (modelcontextprotocol.io), read 2026-11-16

## Related pages

- [MCP roots](/glossary/mcp-roots/)
- [MCP elicitation](/glossary/mcp-elicitation/)
- [Tool description](/glossary/tool-description/)
- [All glossary terms](/glossary/)
- [MCP session](/glossary/mcp-session/)
- [Guides](/guides/)
