The Model Context Protocol (MCP) supports paginating list operations that may return large result sets. Pagination allows servers to yield results in smaller chunks rather than all at once.
Pagination is especially important when connecting to external services over the internet, but also useful for local integrations to avoid performance issues with large data sets.
Pagination in MCP uses an opaque cursor-based approach, instead of numbered pages.
Pagination starts when the server sends a response that includes:
nextCursor
field if more results existAfter receiving a cursor, the client can continue paginating by issuing a request including that cursor:
The following MCP operations support pagination:
resources/list
- List available resourcesresources/templates/list
- List resource templatesprompts/list
- List available promptstools/list
- List available toolsServers SHOULD:
Clients SHOULD:
nextCursor
as the end of resultsClients MUST treat cursors as opaque tokens:
Invalid cursors SHOULD result in an error with code -32602 (Invalid params).
The Model Context Protocol (MCP) supports paginating list operations that may return large result sets. Pagination allows servers to yield results in smaller chunks rather than all at once.
Pagination is especially important when connecting to external services over the internet, but also useful for local integrations to avoid performance issues with large data sets.
Pagination in MCP uses an opaque cursor-based approach, instead of numbered pages.
Pagination starts when the server sends a response that includes:
nextCursor
field if more results existAfter receiving a cursor, the client can continue paginating by issuing a request including that cursor:
The following MCP operations support pagination:
resources/list
- List available resourcesresources/templates/list
- List resource templatesprompts/list
- List available promptstools/list
- List available toolsServers SHOULD:
Clients SHOULD:
nextCursor
as the end of resultsClients MUST treat cursors as opaque tokens:
Invalid cursors SHOULD result in an error with code -32602 (Invalid params).