{"$schema":"https://wellknown.network/schemas/agent-record-v1.json","schemaVersion":"1","id":"ag_ngyezw8b39qs","handle":"mcp-long-context-reader","url":"https://wellknown.network/agents/mcp-long-context-reader","links":{"self":"https://wellknown.network/agents/mcp-long-context-reader/record.json","html":"https://wellknown.network/agents/mcp-long-context-reader","markdown":"https://wellknown.network/agents/mcp-long-context-reader/record.md","api":"https://wellknown.network/api/v1/agents/mcp-long-context-reader","status":"https://wellknown.network/api/v1/agents/mcp-long-context-reader/status","claim":"https://wellknown.network/agents/mcp-long-context-reader/claim","claimApi":"https://wellknown.network/api/v1/claims","claimDescriptor":"https://wellknown.network/agents/mcp-long-context-reader/claim.json","badge":"https://wellknown.network/agents/mcp-long-context-reader/badge.svg","openapi":"https://wellknown.network/openapi.json","history":"https://wellknown.network/api/v1/agents/mcp-long-context-reader/history","tools":"https://wellknown.network/api/v1/agents/mcp-long-context-reader/tools"},"ard":{"identifier":"urn:air::server:mcp-long-context-reader","type":"application/mcp-server-card+json"},"kind":"mcp_server","declared":{"name":"mcp-long-context-reader","summary":"A tool to help agents read and query long documents.","description":"# MCP Long Context Reader\n\n<!-- [![Docs](https://img.shields.io/badge/docs-latest-blue.svg)](./docs/build/html/index.html) -->\n\nMCP Long Context Reader is a Python-based toolkit designed to overcome the context window limitations and high costs associated with Large Language Models (LLMs) processing extensive documents. It provides a FastMCP server with multiple, powerful strategies for an LLM agent to \"read\" and query long documents without needing to load the entire text into its context window.\n\nThis project features an intelligent, filesystem-based caching backend. When a document is processed for the first time with a specific strategy, the expensive work (like generating embeddings) is cached. Subsequent queries on the same document are significantly faster.\n\n## Features\n\nThis toolkit provides five distinct strategies as MCP tools:\n\n1. **`glance`**: Provides a quick look at the beginning of a file, showing the first few thousands characters and total line count.\n2. **`search_with_regex`**: Finds and extracts text snippets using regular expression patterns. Ideal for precise, pattern-based lookups.\n3. **`retrieve_with_rag`**: Uses a Retrieval-Augmented Generation (RAG) pipeline to find the most semantically relevant document chunks based on a natural language question.\n4. **`summarize_with_map_reduce`**: A classic \"divide and conquer\" strategy that summarizes large chunks in parallel and then combines those summaries. Best for getting the gist of a very long document.\n5. **`summarize_with_sequential_notes`**: An advanced strategy where an LLM reads the document sequentially, taking query-aware notes. Best for tasks requiring strict order and detail sensitivity (e.g., \"needle-in-a-haystack\").\n\n## Getting Started\n\n### 1. Prerequisites\n\n- Python 3.10 or newer.\n- `uv` Python package manager. If you don't have it, install it with `pip install uv`.\n- An [OpenAI API Key](https://platform.openai.com/api-keys) for the RAG and LLM-based strategies.\n\n### 2. Environment S…","publisher":null,"homepage":"https://github.com/yuplin2333/mcp-long-context-reader#readme","repository":"https://github.com/yuplin2333/mcp-long-context-reader#readme","version":"0.9.0","license":"MIT","protocols":["mcp"],"tags":["document","llm","long-context","mcp","rag","reader","summarization"],"pricing":null,"endpoints":[{"url":"pypi:mcp-long-context-reader","type":"package_pypi","auth":null,"probeable":false}],"skills":null,"tools":null,"extra":null,"attribution":{"kind":"pypi","name":"pypi","license":"pypi","repoUrl":"pypi","summary":"pypi","version":"pypi","description":"pypi","homepageUrl":"pypi"}},"derived":{"capabilities":[{"slug":"content.writing","name":"Writing & Editing","confidence":1,"provenance":"declared"},{"slug":"data.vector-search","name":"Vector Search","confidence":1,"provenance":"declared"},{"slug":"dev.filesystem","name":"Filesystem","confidence":0.882,"provenance":"derived"}],"categories":["content","data","dev"],"language":"en"},"observed":{"status":"unknown","statusReason":"Distributed as a package to run locally; no network endpoint to check.","lastOkAt":null,"lastProbedAt":null,"statusComputedAt":null,"reliability30d":null,"latestObservations":[],"tools":null,"package":{"name":"mcp-long-context-reader","registry":"pypi","observedAt":"2026-11-03T14:23:51.759Z","publishedAt":"2025-08-22T20:55:29.151655Z","latestVersion":"0.9.0"},"toolSurface":null,"endpointFacts":[]},"verification":{"claimed":false,"claimedAt":null,"proofs":[]},"provenance":{"sources":[{"source":"pypi","key":"mcp-long-context-reader","url":"https://pypi.org/project/mcp-long-context-reader/","firstSeenAt":"2026-09-10T02:23:27.518Z","fetchedAt":"2026-11-03T14:22:04.383Z","normalizedAt":"2026-11-03T14:22:04.383Z"}]},"firstSeenAt":"2026-09-10T02:23:27.518Z","updatedAt":"2026-11-03T14:23:51.759Z"}