mcp-pdf-tools
by: hanweg
MCP server for working with PDF files
📌Overview
Purpose: To provide a server-side solution for PDF manipulation operations via the Model Context Protocol, enabling efficient processing by LLMs.
Overview: The MCP PDF Tools Server is designed to facilitate a variety of operations on PDF files, allowing users to merge and extract pages efficiently. It leverages the Model Context Protocol, enhancing the capabilities of language models in handling PDF documents.
Key Features:
-
Merge PDFs: Combines multiple PDF files into one, with the ability to specify the order of documents, making it easy to manage and consolidate files.
-
Extract Pages: Allows the extraction of specific pages from PDF files, providing users with flexibility in content management and retrieval.
-
Related PDF Search: Utilizes text extraction and regex pattern matching to find and merge related PDFs based on a target input PDF, enhancing the relevance of merged content.
MCP PDF Tools Server
An MCP (Model Context Protocol) server that provides PDF manipulation tools, enabling LLMs to perform operations like merging PDFs and extracting pages.
Features
- Merge multiple PDF files into a single PDF
- Specify the order of PDFs during merging
- Extract specific pages from a PDF file
- Search PDFs using filesystem or effective external search tools
- Find and merge related PDFs based on text extraction and regex pattern matching
Installation
- Clone this repository
- Navigate to the project directory:
cd mcp-pdf-tools
- Create and activate a virtual environment:
uv venv .venv\Scripts\activate
- Install the package:
uv pip install -e .
Usage with Claude Desktop
Add the following 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"
]
}
}
}