PDF Reader MCP logo

PDF Reader MCP

Reads, searches, outlines, and inspects PDFs with Markdown output and page-level evidence for citations.

Install PDF Reader MCP

Run the project’s own setup commands, in order.

Setup steps from the project

PDF Reader MCP installs with its own commands rather than a config we can generate, so these are copied as-is. Run them in order in a terminal. Source: github.com

  1. 1. Add to your MCP client
    npx -y @sylphx/anymd setup              # add anymd to every MCP client on this machine
    
  2. 2. Run
    npx -y @sylphx/anymd setup     # --dry-run to preview, --remove to undo
    
  3. 3. Add to Claude Code
    claude mcp add anymd -- npx -y @sylphx/anymd
    
  4. 4. Add to Codex
    codex mcp add anymd -- npx -y @sylphx/anymd
    
  5. 5. Add to VS Code
    code --add-mcp '{"name":"anymd","command":"npx","args":["-y","@sylphx/anymd"]}'
    
  6. 6. Install
    npm install -g @sylphx/anymd     # or run it once with: npx -y @sylphx/anymd <file>
    

Overview

PDF Reader MCP exposes local document and web content handling through MCP, with PDF reading, search, outlining, rendering, OCR, and evidence inspection. It returns clean Markdown with page markers, supports bounded reads with continuation cursors, and reports search hits with file and page locations. Use it when an agent needs to answer questions from PDFs or compare document sources while retaining citeable page and bounding-box evidence. The server also reads Word, PowerPoint, spreadsheet, EPUB, HTML, image, audio, and video formats.

Use cases

  • Read research papers with page-level citation markers
  • Search a directory of PDFs for exact passages or ranked matches
  • Compare two PDF versions page by page
  • Extract text from scanned PDF regions with OCR
  • Retrieve a specific document section from its outline node

Key features

  • Convert PDFs and other document formats to cited Markdown
  • Search files, directories, and URLs
  • Inspect PDF pages, metadata, geometry, and structure
  • Render pages and extract bounding-box regions
  • Run OCR and region analysis
  • Compare PDF sources with page-level diffs

Tools4

What PDF Reader MCP lets your agent do. Expand a tool for its parameters.

Verified live~3.5k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

49/53 checks healthy over the last 91d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 7d ago via OSV.dev

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1.1kStargazers on the source repository.
Last commit1d agoMost recent push to the default branch.
Tools exposed4Callable tools this server registers over MCP.
Directory activity12 viewsConfig copies, upvotes, and views on AllMCPs.

How PDF Reader MCP works

What PDF Reader MCP does

PDF Reader MCP gives MCP-compatible agents a document ingestion and evidence workflow centered on PDFs. search finds text across one file, multiple files, recursive directories, or URLs and returns the matching location with a highlighted snippet.

The server also exposes document structure and page-level inspection. outline builds a heading tree with stable node IDs, title paths, ranges, and Markdown byte positions. inspect can return PDF metadata and page facts, render pages to PNG, crop bounding-box regions, run OCR or region analysis, produce document structure JSON, and compare two PDF sources page by page.

How it works

The server runs locally over MCP stdio and can be launched with the @sylphx/anymd package. It accepts paths, directories, and URLs through its tools. Reading can be limited with a page selector such as 1-5,8, while large outputs stop at a token limit and return a cursor for continuation. Directory searches recurse while respecting .gitignore, and a glob such as *.pdf can narrow the files considered.

Search uses an automatic mode by default: it looks for the exact phrase and falls back to BM25-ranked passages when no exact match is found. Literal and ranked modes force one of those search strategies. For structured retrieval, an agent can first call outline, then pass a returned node ID to read to fetch a specific section.

Setup and configuration

Node.js 18 or newer is required. The standard setup command is:

Terminal
npx -y @sylphx/anymd setup

A manual MCP configuration runs npx -y @sylphx/anymd as the command. The package provides setup examples for Claude Desktop, Claude Code, Codex, Cursor, VS Code, Windsurf, Zed, Cline, and Gemini CLI. The server can be restricted to a directory with --allow-dir=/path/to/docs.

The local mode does not require an API key. OCR uses explicitly enabled local document-vision models or Tesseract, and local audio transcription uses ffmpeg with the bundled Qwen3-ASR model; these model or transcription downloads require opt-in.

Tools and capabilities

  • read: Convert PDF, DOCX, PPTX, XLSX/XLS/ODS, CSV, EPUB, HTML, Markdown, text, images, audio, and video into readable output.
  • search: Search files, directories, collections of files, or URLs with exact, literal, or BM25-ranked matching.
  • outline: Return document headings, section ranges, stable IDs, and paths across supported document types.
  • inspect: Examine PDF facts and metadata, render pages, crop regions, run OCR or analysis, return structure data, and compare PDF sources.
  • render_page, extract_regions, ocr_pages, analyze_regions, and compare: Perform focused PDF evidence and layout operations.
  • video_timeline, render_frame, and cite_check: Provide bounded media evidence or check whether a quote is supported at a cited location; these are part of anymd Pro.

Limitations and notes

Long reads are bounded by max_tokens, which defaults to 20,000, so agents must follow the returned cursor for additional content. OCR and audio transcription depend on explicitly installed or downloaded local components. cite_check verifies quote and location support rather than semantic truth. The package was formerly named pdf-reader-mcp, while the current executable and npm package use anymd.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about PDF Reader MCP

PDF Reader MCP is an MCP server that connects AI clients to local files, directories, and web URLs, with read, search, outline, and inspect tools. It returns cited Markdown, finds passages across supported formats, exposes page evidence, renders pages, extracts regions, and compares PDF sources.

Run `npx -y @sylphx/anymd setup` with Node.js 18 or newer. You can also configure an MCP client manually to launch `npx -y @sylphx/anymd`; the package includes instructions for Claude Desktop, Claude Code, Codex, Cursor, VS Code, Windsurf, Zed, Cline, and Gemini CLI.

Yes, `search` can search multiple files, recursive directories, or URLs. Directory searches respect `.gitignore`, and a glob such as `*.pdf` can limit the search set. Results include the file, page or other document location, and a snippet with the match highlighted.

It limits `read` output with `max_tokens`, which defaults to 20,000, and returns a cursor when more content is available. Agents can continue from that cursor or request selected pages with a range such as `1-5,8`.

Yes, Cursor is a supported client. Configure its MCP server to run `npx -y @sylphx/anymd`, or use the provided Cursor installation link and configuration format.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPDF Reader MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/pdf-reader-mcp?style=directory)](https://allmcps.com/mcp/pdf-reader-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/pdf-reader-mcp"><img src="https://allmcps.com/api/badge/pdf-reader-mcp?style=directory" alt="PDF Reader MCP on AllMCPs" /></a>