MCP session: definition and example
An MCP session was a connection-scoped state set up by an initialize handshake in revisions up to 2025-11-25. The 2026-07-28 specification says MCP is stateless and has no protocol-level sessions, so a server that needs state across requests mints an explicit handle. Those handles can be hijacked if a server treats possession as proof of identity.
Facts read on .
Example
The Python SDK 2.2.0 release notes say a legacy stateful session idle for 30 minutes is closed and a server holds at most 10,000 sessions at once.
Sources
- MCP Python SDK v2.2.0 release notes (github.com), read