NanoPDF logo

NanoPDF

Edit, generate, preview, and version PDF pages through MCP with Gemini 3 Pro, local files, OCR, and undo support.

Install NanoPDF

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

Setup steps from the project

NanoPDF installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    brew install poppler tesseract
    
  2. 2. Install
    sudo apt-get install poppler-utils tesseract-ocr
    
  3. 3. Run
    cd mcp-server
    
  4. 4. Install
    uv sync
    

Overview

NanoPDF MCP server connects an MCP client to PDF editing and generation workflows powered by Google's Gemini 3 Pro model. It opens local PDFs, accepts natural-language page edits, generates new pages, and provides image previews while keeping session files and version history on the local machine. Tesseract OCR preserves searchable text layers for AI-generated pages, and built-in undo supports iterative changes. Reach for it when an MCP client needs to revise or create visually consistent PDF pages rather than only extract document text.

Use cases

  • Edit PDF slides with natural-language instructions
  • Generate a new page after an existing PDF page
  • Preview rendered PDF pages during review
  • Undo experimental document changes
  • Preserve searchable text in generated pages

Key features

  • Natural-language PDF page editing
  • AI-generated PDF pages
  • Rendered page previews
  • Tesseract OCR text-layer preservation
  • Local version history and undo
  • Gemini 3 Pro integration

Security & health

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

ActiveLast checked

Recent health check succeeded.

17/18 checks healthy over the last 111d

Adoption & maintenance

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

GitHub stars1Stargazers on the source repository.
Last commit9mo agoMost recent push to the default branch.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How NanoPDF works

What NanoPDF does

NanoPDF MCP server provides an MCP interface for changing existing PDF pages and creating new ones with natural-language instructions. The workflow is oriented toward page or slide-style documents: an agent opens a PDF, receives a session identifier, and then sends an editing prompt for a selected page. The server can also add a newly generated page after an existing page.

Google's Gemini 3 Pro model supplies the AI editing and generation functionality. The project also renders selected PDF pages as images so an MCP client can inspect visual results. Generated pages retain searchable text through Tesseract OCR, rather than being limited to a visual image layer.

Local storage is part of the design. Session versions, undo history, temporary files, and previews are kept in the machine's local project storage. This supports experimentation with changes while retaining a way to revert versions.

How it works

The NanoPDF MCP server runs as a Python project from the repository's mcp-server directory. Its main entry point is server.py; PDF rendering and OCR are handled by the PDF utility code, while Gemini communication is handled by the AI utility code. A local history manager tracks sessions and versions.

A typical interaction begins by opening a file with open_pdf, for example with a path such as /path/to/document.pdf. The client then uses the returned session with edit_pdf_page, providing a page number and a natural-language prompt. The README identifies these as the core workflow tools. Other documented capabilities include page previews, new-page generation, and undo, although their detailed tool signatures are in the separate usage guide.

Setup and configuration

Install Poppler for PDF rendering and Tesseract for OCR before starting the server. On macOS, the documented Homebrew command is brew install poppler tesseract; Ubuntu and Debian users can install poppler-utils and tesseract-ocr with apt-get.

The NanoPDF MCP server requires the GEMINI_API_KEY environment variable, containing a Google AI Studio API key. Install Python dependencies with uv sync from the mcp-server directory. The documented Claude Desktop configuration launches uv run --directory <absolute-mcp-server-path> server.py; replace the example username and directory with paths on the target machine.

Tools and capabilities

  • Open a PDF and create a working session.
  • Edit an existing page from a natural-language prompt.
  • Generate a new page after an existing page.
  • Render selected pages as high-quality image previews.
  • Preserve searchable text on AI-generated pages with Tesseract OCR.
  • Undo changes through local version history.

Limitations and notes

The server depends on a Gemini API key, so AI operations require access to Google's Gemini service. It also depends on system-level Poppler and Tesseract installations; Python package installation alone is not sufficient. The provided setup instructions specifically document Claude Desktop, and the repository points to USAGE.md for complete tool descriptions and examples.

Although temporary files and version data are stored locally, the AI features use Gemini 3 Pro. Review the document-handling requirements of your environment before sending PDF content for processing. The project is released under the MIT license.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

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

Frequently Asked Questions about NanoPDF

NanoPDF is an MCP server that connects an MCP client to local PDF files and Google's Gemini 3 Pro model. Its main tools open PDFs and edit pages with natural-language prompts, while the project also supports generated pages, rendered previews, OCR-preserved searchable text, and local version history with undo.

Install Poppler and Tesseract, then run `uv sync` from the repository's `mcp-server` directory. Set `GEMINI_API_KEY` to a Google AI Studio API key, and configure the documented `uv run --directory ... server.py` command in Claude Desktop.

Yes, NanoPDF includes Claude Desktop setup instructions. Add an `mcpServers` entry that runs `uv` with `run`, the absolute `mcp-server` directory, and `server.py`, then replace the example username and paths with values from your machine.

The documented core tools are `open_pdf` and `edit_pdf_page`. The server also supports generating pages, rendering page previews, preserving searchable text with OCR, and undoing changes through local version history; consult `USAGE.md` for the complete tool descriptions and signatures.

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 PreviewNanoPDF AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/nanopdf?style=directory)](https://allmcps.com/mcp/nanopdf)
HTML Embed
<a href="https://allmcps.com/mcp/nanopdf"><img src="https://allmcps.com/api/badge/nanopdf?style=directory" alt="NanoPDF on AllMCPs" /></a>