# NanoPDF [Health: Active]

**Category:** 🏢 Workplace & Productivity  
**Repository:** https://github.com/R09722akaBennett/nano-pdf-mcp  
**GitHub Stars:** 1  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/nanopdf

## Description
AI-powered PDF editing and generation MCP server using Gemini Pro.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/R09722akaBennett/nano-pdf-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
brew install poppler tesseract
```

2. Install:

```sh
sudo apt-get install poppler-utils tesseract-ocr
```

3. Run:

```sh
cd mcp-server
```

4. Install:

```sh
uv sync
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/nanopdf/readme_

