mcp-pdf-tools
The MCP PDF Tools Server enables PDF manipulation and related file operations for LLMs via the Model Context Protocol.
Merge PDFs: Combine multiple PDFs into a single file
Merge PDFs Ordered: Combine PDFs in a specified order based on patterns or exact names
Extract Pages: Create a new PDF with specific pages from an existing PDF
Search PDFs: Locate PDF files in a directory with optional filename pattern matching
Find Related PDFs: Identify and merge PDFs with similar content based on patterns and common substrings
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-pdf-tools merge these quarterly reports into one PDF"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
WORK IN PROGRESS - USE WITH CAUTION - Windows:
MCP PDF Tools Server
An MCP (Model Context Protocol) server that provides PDF manipulation tools. This server allows LLMs to perform operations like merging PDFs and extracting pages through the Model Context Protocol.
Features
Merge multiple PDF files into a single PDF
Merge multiple PDF files into a single PDF in user specified order
Extract specific pages from a PDF file
Search PDFs filesystem search or Everything search works better than this
Find (and merge) related PDFs based on text extraction and regex pattern matching from a target input PDF
Related MCP server: oxidize-pdf
Installation
Clone this repository
cd mcp-pdf-tools
# Create and activate virtual environment
uv venv
.venv\Scripts\activate
# Install the package
uv pip install -e .Usage with Claude Desktop
Add this to your Claude Desktop configuration file (claude_desktop_config.json):
{
"mcpServers": {
"pdf-tools": {
"command": "uv",
"args": [
"--directory",
"PATH_TO\\mcp-pdf-tools",
"run",
"pdf-tools"
],
"env": {
"PDF_TOOLS_ALLOWED_DIRS": "PATH_TO\\shared\\pdfs"
}
}
}
}PDF_TOOLS_ALLOWED_DIRS is an optional path list (use your OS path separator) that restricts file access for all tools. If not set, the server limits access to its current working directory.
Write tools (merge-pdfs, extract-pages, merge-pdfs-ordered) refuse to overwrite an existing output file unless overwrite: true is provided.
Available Tools
5 toolsextract-pagesB
Extract specific pages from a PDF file
Inputs: input_path (required), output_path (required), pages (required).
merge-pdfsC
Merge multiple PDF files into a single PDF
Inputs: input_paths (required), output_path (required).
merge-pdfs-orderedB
Merge PDFs in a specific order based on patterns or exact names
Inputs: base_path (required), patterns (required), output_path (required), fuzzy_matching.
search-pdfsC
Search for PDF files in a directory with optional pattern matching
Inputs: base_path (required), pattern, recursive.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
There is some overlap between tools like 'merge-pdfs' and 'merge-pdfs-ordered', which could cause confusion as both handle merging but with different ordering approaches. However, other tools like 'extract-pages' and 'search-pdfs' have distinct purposes, and descriptions help clarify the differences between merging variants.
All tool names follow a consistent verb-noun pattern with hyphen separation (e.g., 'extract-pages', 'merge-pdfs'), making them predictable and readable. There are no deviations in naming conventions across the set.
With 5 tools, this server is well-scoped for PDF manipulation tasks, covering extraction, merging, and searching without being overly complex or too sparse. Each tool appears to serve a specific and necessary function in the domain.
The tool set covers key PDF operations like extraction, merging, and searching, with 'find-related-pdfs' adding a unique content-based feature. A minor gap is the lack of tools for PDF creation or editing (e.g., adding text or images), but core workflows are adequately supported for a focused PDF utility server.
Maintenance
Related MCP Connectors
PDF tools + QR over MCP: merge, split, rotate, text, metadata, malicious-content scan.
Privacy-first PDF tools over MCP: merge, split, rotate, delete, compress, protect, inspect.
Merge, split, extract, rotate, reorder and stamp PDF pages, and pull the text out of a PDF.
Document processing over MCP: merge, split and compress PDFs, run OCR, extract document text.
Related MCP Servers
- MIT
- AlicenseAqualityBmaintenanceRust-powered PDF toolkit over MCP: create, read, and analyze PDFs; extract text and entities for RAG; convert to Markdown; split/merge/rotate/reorder pages; manage form fields and annotations; encrypt documents. Runs locally via uvx oxidize-mcp.121,289 PyPI6MIT
- AlicenseNot gradedqualityCmaintenanceA local MCP server that drives PDFium and pypdf to perform comprehensive PDF operations including inspection, assembly, page editing, watermarking, rendering, extraction, form filling, encryption, compression, attachments, bookmarks, and metadata management.MIT
- AlicenseAqualityDmaintenanceWrite and read PDF documents via MCP: generate PDFs from HTML, URLs, or templates, and extract text from PDFs with OCR support.255 npmMIT