pdf_reader_mcp
Syncs PDF highlights, comments, page notes, and Q&A pairs into Markdown note files, grouped by page while preserving the user's handwritten summary block.
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.
🌐 Works Natively Across Three Agent Ecosystems
Host | Visual Reader Experience | MCP & Skill Integration | One-Step Install |
Google Antigravity | Docked right-hand sidecar pane ( |
|
|
Claude Desktop (+ Claude Code) | Local standalone | One-click | Double-click |
DeepSeek Harness ( | Local standalone | Cordis plugin ( |
|
Related MCP server: benspdf
✨ Key Features
Immersive
pdf.js5.4 Reader + Night Mode (Dark Pages): Smooth continuous reading with an auto-hiding frosted top bar, byte-range streaming for multi-hundred-MB textbooks, one-click Dark Pages (Night Mode) (🌙), per-book zoom memory, and automatic resume at your last-read page.4-Color Semantic Highlighter & Page Notes: Mark passages as 🟨 Key Point, 🟥 Hard, 🟩 Concept, or 🟦 Question, attach inline comments, or press
Hfor Highlighter Pen Mode (drag-select to highlight immediately, with full⌘Z/⌘⇧Zundo & redo).One-Click Ask, Explain, Translate & Formula Crop:
Select text or drag a Crop box around dense equations, figures, or tables.
In Antigravity: Sends directly into the active chat pane and auto-syncs the agent's reply from the session transcript.
In Claude Desktop & DeepSeek Harness: Queues the question + cropped PNG in
pdf_current().pending_qaand copies the structured prompt to your clipboard (⌘V) — when the agent callspdf_save_answer, its reply appears live in the Reader's Q&A tab and Markdown notes!
Live Markdown & Typora Sync: Every highlight, comment, page note, and Q&A pair syncs atomically into
~/Documents/PDF Notes/<Title>.md, grouped by page while preserving your own handwritten summary block (<!-- My Notes:start ... -->). Click Open in Typora (☰or⋯) anytime.11-Tool MCP Server (
pdf_reader_mcp): Gives any MCP-capable agent live awareness of your open PDF, current page, active text selection, high-DPI page renders (pdf_page_image), full-text search, and direct PDF highlighting.
🚀 Installation
Prerequisites (All Hosts)
Node.js >= 18 (zero
npm installneeded — uses built-in Node APIs only)Python 3 with
mcpandpymupdf(oruvinstalled — the launcher auto-detects conda, Homebrew, system Python, oruv run):pip install -r requirements.txt
Quick Install (Any or All Hosts)
Clone the repository anywhere and run the unified installer (automatically backs up existing configs before merging):
git clone https://github.com/Aludel/antigravity-pdf-reader
cd antigravity-pdf-reader
pip install -r requirements.txt
# Install for all three hosts at once:
bash bin/install.sh --target all
# Or target a single host:
bash bin/install.sh --target antigravity
bash bin/install.sh --target claude-desktop
bash bin/install.sh --target deepseek-harnessHost-Specific Setup Details
1. Claude Desktop (One-Click .mcpb Extension)
Download
pdf-reader-v1.1.0.mcpbfrom Releases.Double-click
pdf-reader-v1.1.0.mcpb— or open Claude Desktop → Settings → Extensions → Advanced settings → Install Extension… and select the.mcpbfile.Ask Claude: "Open
~/Downloads/paper.pdfon page 4 with PDF Reader" — your browser opens the interactive reader side-by-side with Claude Desktop!
(Manual claude_desktop_config.json template is also provided in integrations/claude-desktop/claude_desktop_config.example.json.)
2. DeepSeek Harness (dsh)
bash bin/install.sh --target deepseek-harness sets up everything automatically:
Copies
SKILL.mdinto~/.dsh/skills/pdf-reader/SKILL.mdand~/.agents/skills/pdf-reader/SKILL.md(and.agents/skills/pdf-reader/SKILL.mdis bundled in-repo for workspace auto-discovery).Registers
pdf_reader_mcpvia@deepseek-ai/dsh-mcp-clientin~/.dsh/cordis.patch.yml( exposingmcp__pdf_reader_mcp__pdf_open,mcp__pdf_reader_mcp__pdf_current, etc.) and writes~/.dsh/mcp.json.Also exports a native Cordis plugin entry (
integrations/deepseek-harness/index.mjsvia rootpackage.json). Seeintegrations/deepseek-harness/cordis.patch.ymlfor manual profile patching (~/.dsh/profiles/web/cordis.patch.yml).
3. Google Antigravity
# Option A: agy CLI
agy plugin install https://github.com/Aludel/antigravity-pdf-reader
# Option B: Release zip
mkdir -p ~/.gemini/config/plugins
unzip pdf-reader-v1.1.0.zip -d ~/.gemini/config/plugins/⌨️ Controls & Shortcuts
Action | Shortcut / Gesture |
Previous / Next page, Jump to page | Scroll, |
Zoom & Fit mode |
|
Night Mode ( | Top-right |
Highlight selected text | Select text → click 🟨 Key Point, 🟥 Hard, 🟩 Concept, or 🟦 Question |
Highlighter Pen Mode | Click the pen icon or press |
Edit / Recolor / Delete / Follow up | Click any existing highlight on the page to open its popover |
Add a page note | Press |
Undo / Redo annotations |
|
Ask / Explain / Translate selection | Select text → Ask, Explain, or Translate |
Crop equation / figure & ask | Press |
Open synced notes in Typora |
|
🛠️ MCP Tools (pdf_reader_mcp)
Tool | Description |
| Returns active PDF, current/visible pages, text selection, |
| Opens a local PDF in Antigravity's sidecar pane or launches the standalone |
| Extracts text for a page spec ( |
| Whitespace- and hyphen-tolerant full-text search with context snippets |
| Reads PDF metadata and built-in bookmark hierarchy |
| Renders any page to PNG (returned as an MCP |
| Lists highlights, comments, page notes, and Q&A items |
| Adds a page note or draws a colored highlight directly onto the PDF |
| Updates a note's comment/color or deletes it |
| Archives the agent's answer into the PDF's Q&A tab and synced Markdown file |
| Syncs the Markdown note file ( |
📂 Repository Layout
plugin.json Antigravity plugin manifest
manifest.json Claude Desktop .mcpb extension manifest
package.json DeepSeek Harness (dsh) / Cordis package manifest
.claude-plugin/plugin.json Claude Code plugin manifest
.agents/skills/pdf-reader/ DeepSeek Harness workspace auto-discovered skill
mcp_config.json Antigravity MCP server config
bin/mcp-launcher.mjs Cross-platform Python/uv auto-discovery stdio launcher
bin/run-mcp-server.sh POSIX shell launcher & CLI tool runner
bin/install.sh Safe multi-host installer (--target antigravity|claude-desktop|deepseek-harness|all)
server/mcp_server.py FastMCP server + standalone reader supervisor + Markdown store
sidecars/reader/ Dual-mode pdf.js reader (Antigravity sidecar + standalone HTTP server)
integrations/ Ready-to-use configs for Claude Desktop & DeepSeek Harness (cordis.patch.yml)
skills/pdf-reader/SKILL.md Cross-host agent skill instructions
rules/AGENTS.md Always-on rule for <PDF_READER_REQUEST> prompts
assets/ Logo (logo.svg, icon.png) & 5-act camera-tracked showcase (demo.svg)📄 License
Plugin source code is licensed under the MIT License. Vendored pdf.js (5.4.624) remains under its original Apache-2.0 license — see THIRD_PARTY_NOTICES.md and CHANGELOG.md.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Add PDFs from a link, ask questions with page citations, and read summaries
Read, search, cite, and inspect figures from your personal PDF and EPUB books.
PDF and image tools for AI agents: compress, merge, split, OCR, sign. Runs locally, never uploads.
Convert PDFs, Office docs, websites and audio into AI-ready Markdown, then search and ask your docs.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to efficiently process large local and online PDFs through selective extraction of text, images, and metadata. It provides tools for content search and document outline navigation to optimize context window usage.716ISC
- AlicenseAqualityBmaintenanceEnables AI agents to inspect and work with PDF files entirely on the local machine, covering page counts, metadata, layout, encryption permissions, scan-vs-text detection, and page rendering. Generated results land in a temporary workspace as short artifact ids that can be chained between tools and exported to real folders on request.1224 PyPI1Apache 2.0
- AlicenseAqualityBmaintenanceEnables a conversational workflow to read local PDFs, propose exact word-level passages, apply colored highlights, and inspect saved annotated copies, plus recolor or remove existing highlights. All PDF and image I/O stays confined to a single workspace directory, with fingerprint verification and atomic saves so originals are never overwritten.10MIT
- AlicenseNot gradedqualityBmaintenanceEnables native multimodal reading of PDF documents through local or OpenAI-compatible vision-language models, converting pages into grounded Markdown with tables, equations, charts, and page-cited synthesis.MIT