# MCP Sampling

> A server asks the app's own model to write text. Now deprecated.

**Field:** Artificial Intelligence  
**Category:** MCP  
**Also known as:** Sampling (MCP), Server-Initiated Sampling

## Think of it like

Think of it like a man in a shop who asks to use your phone. He has none of his own.

## Definition

MCP sampling lets a server ask the client's language model to write something. The server puts the request in its reply, the user can check it, and the client sends the model's answer back when it asks again. Since the 2026-07-28 version of MCP, sampling is deprecated, so new servers and clients should not add it. It still works and stays in the spec for at least a year. The spec says a server should call a model's API itself instead.

## Example

Lucy's file server needs a one-line summary of each new file. It asks for one through sampling, and her own model writes it.

## Why it matters

You will still meet sampling in older servers and clients. New work calls a model's API instead.

## Common mistake

Building a new server on it. It is deprecated, so plan to call a model's API from the server instead.

## Three principles

- **Server asks.** The client's model writes.
- **User can review.** Request and reply.
- **Deprecated in 2026.** Use a model's API instead.

## Related terms

- [MCP Client](https://learn.benibix.com/term/ai/mcp-client)
- [MCP Server](https://learn.benibix.com/term/ai/mcp-server)
- [Human-in-the-Loop](https://learn.benibix.com/term/ai/human-in-the-loop)

![The server sends a request back to the client: please ask your model this. The user can check it, the model answers, and the answer goes back to the server.](https://learn.benibix.com/diagrams/mcp-sampling.svg)

---

Source: https://learn.benibix.com/term/ai/mcp-sampling
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
