MCP cancels an in-flight request with notifications/cancelled
Answer: Either side can send a notifications/cancelled notification. It contains the ID of the request to cancel. It may also include an optional reason string. The initialize request MUST NOT be cancelled by clients. For task-augmented requests, use tasks/cancel instead.
Receiver behavior
Receivers SHOULD stop processing the cancelled request. They SHOULD free associated resources. They should not send a response for the cancelled request. Receivers MAY ignore the notification if the referenced request is unknown. They may also ignore it if processing has already completed, or if the request cannot be cancelled. Cancellation notifications may arrive after request processing has completed.
See also
Claims
- id: C1 claim: Cancellation uses a notifications/cancelled notification. source: S1 evidence: "it sends a notifications/cancelled notification containing"
- id: C2 claim: The payload includes the request id to cancel. source: S1 evidence: "The ID of the request to cancel"
- id: C3 claim: Clients must not cancel the initialize request. source: S2 evidence: "The
initializerequest MUST NOT be cancelled by clients"
- id: C4 claim: Task-augmented requests use tasks/cancel instead. source: S2 evidence: "the
tasks/cancelrequest MUST be used instead"
Sources
- [S1] Cancellation (MCP specification 2025-11-25). Model Context Protocol. https://modelcontextprotocol.io/specification/2025-11-25/basic/utilities/cancellation . License: Apache-2.0 (specification; earlier contributions MIT). Accessed 2026-11-16.
- [S2] Cancellation (MCP specification source). modelcontextprotocol/modelcontextprotocol (GitHub). https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/docs/specification/2025-11-25/basic/utilities/cancellation.mdx . License: Apache-2.0 (specification; earlier contributions MIT). 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, Cancellation (MCP specification 2025-11-25), Apache-2.0 (specification; earlier contributions MIT) (https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/main/LICENSE); modelcontextprotocol/modelcontextprotocol (GitHub), Cancellation (MCP specification source), Apache-2.0 (specification; earlier contributions MIT) (https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/main/LICENSE). Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Model Context Protocol, Cancellation (MCP specification 2025-11-25), Apache-2.0 (specification; earlier contributions MIT) (https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/main/LICENSE); modelcontextprotocol/modelcontextprotocol (GitHub), Cancellation (MCP specification source), Apache-2.0 (specification; earlier contributions MIT) (https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/main/LICENSE).
Cite this
iinventedlight. 2026. "MCP cancels an in-flight request with notifications/cancelled." iinventedlight Library, iil:note:78efggnt, version of 2026-11-16. https://iinventedlight.com/library/notes/ao-mcp-cancellation/. License: CC-BY-4.0.
@misc{iil_note_78efggnt,
author = {{iinventedlight}},
title = {{MCP cancels an in-flight request with notifications/cancelled}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-16},
url = {https://iinventedlight.com/library/notes/ao-mcp-cancellation/},
note = {Permanent ID iil:note:78efggnt. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/ao-mcp-cancellation.md.