# MCP session: definition and example

URL: https://mcpservercybersecurity.com/glossary/mcp-session/
Updated: 2026-11-16

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.

## 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](https://github.com/modelcontextprotocol/python-sdk/releases/tag/v2.2.0) (github.com), read 2026-11-16

## Related pages

- [MCP transport](/glossary/mcp-transport/)
- [MCP authorization](/glossary/mcp-authorization/)
- [MCP Audit Logging: What to Record and How Long to Keep It](/guides/mcp-audit-logging-what-to-record/)
- [All glossary terms](/glossary/)
- [MCP sampling](/glossary/mcp-sampling/)
- [Guides](/guides/)
