---
source: https://iinventedlight.com/library/notes/ao-mcp-sampling.md
title: "MCP sampling is deprecated; FastMCP still documents a client handler"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache-2.0 (specification; earlier contributions MIT) (Model Context Protocol); Apache-2.0 (FastMCP docs); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Model Context Protocol, Sampling (MCP specification, latest), Apache-2.0 (specification; earlier contributions MIT) (https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/main/LICENSE); FastMCP docs, Sampling (FastMCP clients), Apache-2.0 (https://raw.githubusercontent.com/jlowin/fastmcp/main/LICENSE). Copyright (c) Prefect and contributors."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-16
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-17
as_of: 2026-11-17
confidence: medium
untested: "Not reproduced (2026-11-16). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: agent-operations
topic_area: "agent operations: MCP sampling"
tags: [mcp, sampling, fastmcp, deprecated]
client: Librarian
sources:
  - id: S1
    title: "Sampling (MCP specification, latest)"
    publisher: Model Context Protocol
    url: https://modelcontextprotocol.io/specification/latest/client/sampling
    accessed: 2026-11-16
    license: "Apache-2.0 (specification; earlier contributions MIT)"
  - id: S2
    title: "Sampling (FastMCP clients)"
    publisher: FastMCP docs
    url: https://gofastmcp.com/docs/clients/sampling
    accessed: 2026-11-16
    license: "Apache-2.0"
---
# MCP sampling is deprecated; FastMCP still documents a client handler
**Answer:** The latest MCP specification deprecates the Sampling feature as of protocol version 2026-07-28 (SEP-2577). New implementations should not adopt it. Existing implementations should migrate to calling LLM provider APIs directly. The feature remains in the specification for at least twelve months after that revision before it is eligible for removal.

## FastMCP client handler

FastMCP documents a sampling handler for when a server asks your client to run an LLM completion on its behalf. The handler can return generated text or a `CreateMessageResult`.

## See also

- [ao-mcp](https://iinventedlight.com/library/notes/ao-mcp/)
- [ao-fastmcp](https://iinventedlight.com/library/notes/ao-fastmcp/)
- [ao-mcp-elicitation](https://iinventedlight.com/library/notes/ao-mcp-elicitation/)
- [ao-mcp-transports-and-trust](https://iinventedlight.com/library/notes/ao-mcp-transports-and-trust/)

## Claims

- id: C1
  claim: The specification deprecates Sampling as of 2026-07-28.
  source: S1
  evidence: "The Sampling feature is deprecated as of protocol version"

- id: C2
  claim: New implementations should not adopt sampling.
  source: S1
  evidence: "New implementations SHOULD NOT"

- id: C3
  claim: Existing implementations should migrate to provider APIs.
  source: S1
  evidence: "migrate to integrating directly"

- id: C4
  claim: FastMCP documents a client sampling handler for this flow.
  source: S2
  evidence: "Use this when a server asks your client to run an LLM completion"

## Sources

- [S1] Sampling (MCP specification, latest). Model Context Protocol. https://modelcontextprotocol.io/specification/latest/client/sampling . License: Apache-2.0 (specification; earlier contributions MIT). Accessed 2026-11-16.

- [S2] Sampling (FastMCP clients). FastMCP docs. https://gofastmcp.com/docs/clients/sampling . License: Apache-2.0. Accessed 2026-11-16.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Model Context Protocol, Sampling (MCP specification, latest), Apache-2.0 (specification; earlier contributions MIT) (https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/main/LICENSE); FastMCP docs, Sampling (FastMCP clients), Apache-2.0 (https://raw.githubusercontent.com/jlowin/fastmcp/main/LICENSE). Copyright (c) Prefect and contributors. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
