mcp-pdf-utils
mcp-pdf-utils
MCP-Server für die PDF-Bearbeitung. Zusammenführen, Teilen, Drehen, Wasserzeichen hinzufügen, Text extrahieren und mehr.
Funktioniert mit Claude Desktop, Cursor, VS Code, ChatGPT und jedem MCP-kompatiblen Client.
Warum
Die PDF-Bearbeitung ist eine der häufigsten Aufgaben für Entwickler, dennoch gibt es keinen guten MCP-Server dafür. Die bestehenden Optionen haben 1 Stern. Dieser hier funktioniert tatsächlich.
Alles läuft lokal. Keine API-Schlüssel. Keine Cloud-Dienste. Ihre PDFs verlassen niemals Ihren Rechner.
Related MCP server: PDF MCP Server
Tools
Tool | Beschreibung |
| Metadaten, Seitenzahl, Dateigröße abrufen |
| Textinhalt von Seiten extrahieren |
| Mehrere PDFs zu einem kombinieren |
| PDF in einzelne Seitendateien aufteilen |
| Seitenbereich in ein neues PDF extrahieren |
| Seiten um 90°, 180° oder 270° drehen |
| Text-Wasserzeichen hinzufügen (z. B. DRAFT, CONFIDENTIAL) |
| Bestimmte Seiten entfernen |
| Seitenreihenfolge ändern |
| Titel, Autor, Betreff, Schlüsselwörter festlegen |
| Neues PDF aus reinem Text erstellen |
Schnellstart
Claude Desktop
Fügen Sie dies zu Ihrer claude_desktop_config.json hinzu:
{
"mcpServers": {
"pdf-tools": {
"command": "npx",
"args": ["-y", "mcp-pdf-utils"]
}
}
}Das war's. Starten Sie Claude Desktop neu und bitten Sie es, mit PDFs zu arbeiten.
Claude Code
claude mcp add pdf-tools -- npx -y mcp-pdf-utilsCursor
Fügen Sie dies zu Ihren Cursor-MCP-Einstellungen hinzu:
{
"mcpServers": {
"pdf-tools": {
"command": "npx",
"args": ["-y", "mcp-pdf-utils"]
}
}
}VS Code
Fügen Sie dies zu Ihrer VS Code-MCP-Konfiguration hinzu:
{
"mcp": {
"servers": {
"pdf-tools": {
"command": "npx",
"args": ["-y", "mcp-pdf-utils"]
}
}
}
}Anwendungsbeispiele
Sobald die Verbindung hergestellt ist, sprechen Sie einfach natürlich mit Ihrer KI:
"Führe invoice_jan.pdf und invoice_feb.pdf zu combined.pdf zusammen"
"Extrahiere die Seiten 3-7 aus report.pdf"
"Füge ein CONFIDENTIAL-Wasserzeichen zu contract.pdf hinzu"
"Wie viele Seiten hat presentation.pdf?"
"Drehe alle Seiten in scan.pdf um 90 Grad"
"Entferne Seite 5 aus meinem Dokument"
"Extrahiere den gesamten Text aus diesem PDF"
"Ändere die Seitenreihenfolge: Seite 3 zuerst, dann 1, dann 2"
Entwicklung
git clone https://github.com/zekovdev/mcp-pdf-utils.git
cd mcp-pdf-utils
npm install
npm run devTesten mit dem MCP Inspector
npm run inspectDies öffnet den offiziellen MCP Inspector, in dem Sie jedes Tool visuell testen können.
Funktionsweise
Der Server verwendet pdf-lib für die PDF-Bearbeitung und pdf-parse für die Textextraktion. Beides läuft lokal ohne externe Abhängigkeiten – keine API-Schlüssel, keine Netzwerkaufrufe, keine Cloud-Dienste.
Die Kommunikation erfolgt über den MCP-Stdio-Transport, was bedeutet, dass der Server als lokaler Prozess läuft, den Ihr KI-Client startet und mit dem er über stdin/stdout kommuniziert.
Roadmap
[ ] PDF-Komprimierung (Dateigröße reduzieren)
[ ] Bildextraktion aus PDFs
[ ] PDF zu Bildern (Seitenvorschaubilder)
[ ] Seitenzahlen hinzufügen
[ ] PDF-Verschlüsselung / Passwortschutz
[ ] PDF-Formularfelder ausfüllen
[ ] OCR für gescannte PDFs (via Tesseract)
[ ] Bild-zu-PDF-Konvertierung
Mitwirken
Pull Requests sind willkommen. Führen Sie npm run inspect aus, um Ihre Änderungen vor dem Einreichen zu testen.
Lizenz
MIT
Available Tools
11 toolspdf_add_watermarkC
Add a text watermark to all or specific pages of a PDF.
Inputs: file (required), output (required), text (required), fontSize, +3 more.
pdf_createC
Create a new PDF document from plain text content.
Inputs: output (required), text (required), title, fontSize.
pdf_delete_pagesC
Delete specific pages from a PDF.
Inputs: file (required), output (required), pages (required).
pdf_extract_pagesB
Extract a range of pages from a PDF into a new PDF file.
Inputs: file (required), output (required), startPage (required), endPage (required).
pdf_extract_textC
Extract text content from a PDF file. Optionally specify page range.
Inputs: file (required), startPage, endPage.
pdf_infoB
Get PDF metadata: page count, title, author, creator, creation date, file size.
Inputs: file (required).
pdf_mergeC
Merge multiple PDF files into a single PDF.
Inputs: files (required), output (required).
pdf_reorderB
Reorder pages of a PDF. Provide the desired page order.
Inputs: file (required), output (required), order (required).
pdf_rotateB
Rotate pages of a PDF by 90, 180, or 270 degrees.
Inputs: file (required), output (required), angle (required), pages.
pdf_set_metadataC
Set or update PDF metadata (title, author, subject, keywords, creator).
Inputs: file (required), output (required), title, author, +3 more.
pdf_splitA
Split a PDF into separate files. Extract specific pages or split into individual page files.
Inputs: file (required), outputDir (required), pages.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool has a clearly distinct purpose with no significant overlap. For example, pdf_extract_pages creates a new PDF from a range, while pdf_split divides into separate files, and pdf_delete_pages removes pages without creating new files. The descriptions specify unique actions on PDFs, making misselection unlikely.
All tool names follow a consistent verb_noun pattern with the prefix 'pdf_' (e.g., pdf_add_watermark, pdf_extract_text). This uniform snake_case naming makes the set predictable and easy to understand, enhancing usability for agents.
With 11 tools, the count is well-scoped for PDF manipulation tasks. It covers a comprehensive range of operations without being overwhelming, including creation, editing, extraction, merging, and metadata handling, which aligns perfectly with the server's purpose.
The tool set provides complete coverage for PDF manipulation, including CRUD-like operations (create, modify, delete pages), metadata management, and advanced features like watermarking and rotation. There are no obvious gaps; agents can perform all common PDF tasks without dead ends.
Related MCP Connectors
Privacy-first PDF tools over MCP: merge, split, rotate, delete, compress, protect, inspect.
MCP server for detecting and redacting PII (Personally Identifiable Information) in PDF documents.
PDF tools + QR over MCP: merge, split, rotate, text, metadata, malicious-content scan.
MCP server for the PDFGate API. Generate PDFs, manage documents and handle e-signatures.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP server that provides comprehensive PDF processing capabilities including text extraction, image extraction, table detection, annotation extraction, metadata retrieval, page rendering, and document structure analysis.-
- AlicenseNot gradedqualityBmaintenanceAn MCP server for PDF form filling, basic editing, and OCR text extraction. It enables users to merge, rotate, annotate, and sign PDFs, while also supporting text extraction from both searchable and scanned image-based documents.15Apache 2.0
- FlicenseNot gradedqualityDmaintenanceAn MCP server that provides tools for reading, writing, and manipulating PDF files, including text extraction, metadata retrieval, and merging or splitting documents. It also enables users to create PDFs from plain text and convert specific pages or entire documents into images.1-
- AlicenseAqualityBmaintenanceA comprehensive MCP server with 37 tools for PDF operations including reading, searching, creating, merging, splitting, watermarking, form filling, and more, built on open-source libraries.3742 npm2MIT