AI-powered PDF editing and generation MCP server using Gemini Pro.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
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
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/nanopdf)<a href="https://allmcps.com/mcp/nanopdf"><img src="https://allmcps.com/api/badge/nanopdf?style=directory" alt="NanoPDF on AllMCPs" /></a>