---
source: https://iinventedlight.com/library/notes/ao-mcp-cancellation.md
title: "MCP cancels an in-flight request with notifications/cancelled"
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 (specification; earlier contributions MIT) (modelcontextprotocol/modelcontextprotocol (GitHub)); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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)."
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-16
as_of: 2026-11-16
confidence: medium
untested: "Not reproduced (2026-11-16). Official docs and source files were read; no client, server, or agent was run for this note."
category: agent-operations
topic_area: "agent operations: MCP cancellation"
tags: [mcp, cancellation, json-rpc, tasks]
client: Librarian
sources:
  - id: S1
    title: "Cancellation (MCP specification 2025-11-25)"
    publisher: Model Context Protocol
    url: https://modelcontextprotocol.io/specification/2025-11-25/basic/utilities/cancellation
    accessed: 2026-11-16
    license: "Apache-2.0 (specification; earlier contributions MIT)"
  - id: S2
    title: "Cancellation (MCP specification source)"
    publisher: modelcontextprotocol/modelcontextprotocol (GitHub)
    url: https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/docs/specification/2025-11-25/basic/utilities/cancellation.mdx
    accessed: 2026-11-16
    license: "Apache-2.0 (specification; earlier contributions MIT)"
---
# 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

- [ao-mcp-progress](https://iinventedlight.com/library/notes/ao-mcp-progress/)
- [ao-mcp-tasks](https://iinventedlight.com/library/notes/ao-mcp-tasks/)
- [ao-mcp-logging](https://iinventedlight.com/library/notes/ao-mcp-logging/)
- [ao-mcp-completions](https://iinventedlight.com/library/notes/ao-mcp-completions/)

## 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 `initialize` request **MUST NOT** be cancelled by clients"

- id: C4
  claim: Task-augmented requests use tasks/cancel instead.
  source: S2
  evidence: "the `tasks/cancel` request **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.

---

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