@mcp-utils/pagination
MCP ServerFreeCursor-based pagination helpers for MCP tool responses — powered by vurb.
Capabilities5 decomposed
cursor-based pagination state management for mcp tool responses
Medium confidenceManages opaque cursor tokens that encode pagination state (offset, filters, sort order) without exposing internal implementation details to clients. Cursors are generated and validated server-side, allowing stateless pagination across MCP tool invocations while maintaining security and consistency. The implementation abstracts cursor encoding/decoding logic, enabling tools to focus on data retrieval rather than pagination mechanics.
Provides MCP-native cursor pagination helpers specifically designed for the Model Context Protocol's tool response format, integrating directly with vurb's MCP server framework rather than being a generic pagination library. Abstracts cursor encoding/validation as reusable utilities rather than requiring each tool to implement pagination independently.
Purpose-built for MCP tool ecosystems (vs generic pagination libraries like cursor-pagination or graphql-relay which require adaptation), reducing boilerplate and ensuring consistency across MCP tool implementations.
cursor token encoding and decoding with configurable serialization
Medium confidenceEncodes pagination state (offset, filters, metadata) into opaque cursor tokens using configurable serialization strategies (JSON + base64, encryption, signed tokens). Decodes and validates cursors on subsequent requests, reconstructing pagination context. Supports custom serialization backends, allowing teams to choose between simple base64 encoding for development or encrypted/signed tokens for production security.
Provides pluggable serialization backends for cursor encoding, allowing developers to choose between simple base64 (development), signed tokens (integrity), or encrypted tokens (confidentiality) without changing application code. Integrates with vurb's MCP server context to automatically validate cursors against tool invocation scope.
More flexible than hardcoded cursor implementations (e.g., Stripe's cursor pagination which uses fixed encoding), enabling teams to evolve security posture from development to production without refactoring pagination logic.
automatic pagination envelope generation for mcp tool responses
Medium confidenceWraps tool response data in a standardized pagination envelope (data array, next_cursor, has_more flag, total_count metadata) that conforms to MCP response schema expectations. Automatically calculates pagination metadata (whether more results exist, next cursor value) based on result set size and limit, reducing boilerplate in tool implementations. Handles edge cases like empty results, final page detection, and cursor exhaustion.
Automatically generates pagination envelopes that conform to MCP tool response schema, eliminating manual envelope construction in each tool. Integrates with vurb's response serialization pipeline to ensure envelopes are correctly formatted for MCP client consumption.
Reduces boilerplate compared to manual pagination envelope construction (vs building pagination logic into each tool), and ensures consistency across MCP tools by enforcing a standard response shape.
limit and offset validation with configurable constraints
Medium confidenceValidates pagination parameters (limit, offset, cursor) against configurable constraints (max page size, max offset, allowed cursor formats) before processing. Prevents abuse (e.g., requesting 1M results per page) and ensures pagination parameters conform to tool requirements. Supports per-tool configuration, allowing different tools to enforce different pagination limits based on data characteristics and performance budgets.
Provides per-tool pagination constraint configuration, allowing different MCP tools to enforce different limits based on their data characteristics and performance budgets. Integrates with vurb's tool registry to automatically apply constraints based on tool metadata.
More granular than global pagination limits (vs simple max-page-size enforced across all tools), enabling fine-tuned resource protection tailored to each tool's performance profile.
pagination state reconstruction from cursor tokens
Medium confidenceReconstructs complete pagination state (offset, filters, sort order, user context) from opaque cursor tokens, validating token integrity and ensuring reconstructed state matches the original request context. Handles cursor expiration, token versioning, and backward compatibility with older cursor formats. Enables stateless pagination by allowing servers to derive pagination context entirely from the cursor without maintaining session state.
Reconstructs pagination state from cursors while validating integrity and supporting token versioning, enabling stateless pagination without session stores. Integrates with vurb's request context to validate that cursor state matches the current request scope (e.g., same user, same tool).
Enables true stateless pagination (vs session-based approaches requiring server-side storage), reducing infrastructure complexity for distributed MCP servers while maintaining security through token validation.
Capabilities are decomposed by AI analysis. Each maps to specific user intents and improves with match feedback.
Related Artifactssharing capabilities
Artifacts that share capabilities with @mcp-utils/pagination, ranked by overlap. Discovered automatically through the match graph.
User Prompt MCP
** - An MCP server for Cursor that enables requesting user input during generation process.
@bjoaquinc/mcp-error-formatter
Simple utility to format MCP tool errors like Cursor
Prisma MCP Server
Query databases and manage schemas via Prisma MCP.
Mux
** - [Mux](https://www.mux.com) is a video API for developers. With Mux's official MCP you can upload videos, create live streams, generate thumbnails, add captions, manage playback policies, dig through engagement data, monitor video performance, and more.
DreamFactory
** - An MCP server for securely (via RBAC) talking to on-premise and cloud MS SQL Server, MySQL, PostgreSQL databases and other data sources.
Powerdrill
** - An MCP server that provides tools to interact with Powerdrill datasets, enabling smart AI data analysis and insights.
Best For
- ✓MCP server developers building tools that return large datasets (search results, database queries, API list endpoints)
- ✓teams implementing cursor-based pagination patterns in LLM agent tool ecosystems
- ✓builders needing secure, stateless pagination without session management
- ✓MCP server developers implementing cursor pagination with custom serialization requirements
- ✓teams needing signed/encrypted cursors for security-sensitive pagination (e.g., user-specific result sets)
- ✓builders prototyping pagination and wanting to swap serialization strategies without refactoring
- ✓MCP tool developers building list/search endpoints that return large datasets
- ✓teams standardizing pagination response format across multiple MCP tools
Known Limitations
- ⚠Cursor tokens are opaque — clients cannot inspect or modify pagination state directly, limiting client-side optimization
- ⚠Requires server-side state reconstruction on each request if using stateless cursor encoding, adding CPU overhead for large datasets
- ⚠No built-in support for concurrent pagination streams — each cursor is independent, making it difficult to resume interrupted paginations
- ⚠Serialization overhead — encoding/decoding cursors adds latency (~5-10ms per cursor operation depending on strategy)
- ⚠No built-in compression — large pagination state objects result in long cursor tokens, potentially exceeding URL length limits
- ⚠Encryption/signing requires key management — teams must handle key rotation and storage independently
Requirements
Input / Output
UnfragileRank
UnfragileRank is computed from adoption signals, documentation quality, ecosystem connectivity, match graph feedback, and freshness. No artifact can pay for a higher rank.
Package Details
About
Cursor-based pagination helpers for MCP tool responses — powered by vurb.
Categories
Alternatives to @mcp-utils/pagination
Are you the builder of @mcp-utils/pagination?
Claim this artifact to get a verified badge, access match analytics, see which intents users search for, and manage your listing.
Get the weekly brief
New tools, rising stars, and what's actually worth your time. No spam.
Data Sources
Looking for something else?
Search →