The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the NanoPDF listing page.
NanoPDF MCP Server is a Model Context Protocol (MCP) implementation that brings AI-powered PDF editing and generation capabilities directly to Claude Desktop. It enables users to modify existing PDF pages or generate new ones using Google's Gemini 3 Pro model, all within a privacy-focused local environment.
The server requires poppler (for PDF rendering) and tesseract (for OCR) installed on your system.
A Google Gemini API key is required to power the AI features.
GEMINI_API_KEY: Your Google AI Studio API key.This project uses uv for lightning-fast Python package management.
Add the NanoPDF server to your Claude Desktop configuration:
Path: ~/Library/Application Support/Claude/claude_desktop_config.json
[!IMPORTANT] Change
usernameto your actual macOS username. Ensure the--directorypath is the absolute path to yourmcp-serverfolder.
For detailed tool descriptions and workflow examples, please refer to the Usage Guide.
open_pdf(pdf_path="/path/to/document.pdf")edit_pdf_page(session_id="...", page_number=1, prompt="...")mcp-server/: Core MCP server implementation.
server.py: Main entry point and tool definitions.mcp_pdf_utils.py: PDF processing, OCR, and rendering logic.mcp_ai_utils.py: Gemini Pro Vision API integration.history_manager.py: Local session and version history tracker.output/: Local storage for sessions and previews.LICENSE: Project license (MIT).USAGE.md: Detailed usage instructions and examples.Based on the original NanoPDF project. Adapted for the Model Context Protocol.
MIT License