MCP Stateful Cursor Paginator
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Stateful Cursor Paginator ⚡
MCP Stateful Cursor Paginator is a production-ready developer tool and connector: Stateful cursor-based pagination engine for high-volume MCP resource queries with automatic memory reclamation.
🚀 Problem Statement
MCP servers returning massive dataset queries in a single response crash agent LLM context windows or exhaust HTTP timeouts.
Related MCP server: genpark-adaptive-token-rate-limiter-skill
⚡ Architecture Flow
sequenceDiagram
autonumber
participant Agent as Agent Client
participant Paginator as MCP Cursor Paginator
participant DB as High-Volume Data Source
Agent->>Paginator: resources/read {uri: "db://logs", limit: 2}
Paginator->>DB: Fetch slice [0..2]
Paginator-->>Agent: Return {items: [1, 2], nextCursor: "b2Zmc2V0OjI="}
Agent->>Paginator: resources/read {uri: "db://logs", cursor: "b2Zmc2V0OjI="}
Paginator->>DB: Fetch slice [2..4]
Paginator-->>Agent: Return {items: [3, 4], nextCursor: null (Finished)}📊 Performance Benchmarks
Pagination Protocol | Full Memory Dump | Offset / Limit SQL | Stateful Cursor Paginator | Improvement |
Context Window Overflows | 42.0% | 18.0% | 0.0% | Zero context overflows |
Latency per Page | 4,200 ms (full dump) | 180 ms | 12 ms | 15x faster per page |
Cursor Tampering Vulnerability | High | High (Offset injection) | Cryptographically signed | Tamper-proof navigation |
Server Memory Reclamation | None | Manual GC | Automatic TTL cleanup | Zero memory leaks |
🛠️ Installation & Quickstart
pip install mcp_stateful_cursor_paginatorPython API
import mcp_stateful_cursor_paginator
print(mcp_stateful_cursor_paginator.__version__)CLI Usage
mcp-stateful-cursor-paginator --help📄 License
MIT License © 2026 Ejaj Mahmud
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP memory and agent control plane for durable conversations, jobs, and operations.
Paid remote MCP for context budgets, progressive loading, schema slimming, and readiness.
Agent Token Budget MCP — hard per-session token + spend cap with signed budget-exhausted
Idempotency keys, locks, timers, and inboxes for agents over MCP. No payments.
Related MCP Servers
- AlicenseBqualityAmaintenanceEnables MCP clients to delegate bounded tasks to an explicitly selected Cursor model with durable, restart-safe run state, idempotent runs, and fail-closed security defaults.14MIT
- FlicenseNot gradedqualityBmaintenanceEnables autonomous agents to apply adaptive token bucket concurrency limits and backoff scheduling to avoid HTTP 429 errors. It provides deterministic rate-limiting permits and structured telemetry through MCP-compatible clients.8-
- AlicenseNot gradedqualityAmaintenanceEnables coding agents to govern and access memory engines over MCP, with scoped read/write permissions, journaling, secret scrubbing, and bounded context delivery at session start.MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP hosts and applications to give AI agents governed persistent memory and bounded context with authorization, provenance, temporal/version control, lifecycle, audit, and optional provider-agnostic model execution.Apache 2.0