mcp pdf tools

Local 2025-08-31 23:42:52 0

mcp using PyPDF2 to:
• merge-pdfs
• extract-pages
• search-pdfs
• merge-pdfs-ordered (merge in user spec. order)
• find-related-pdfs (regex extracted text for related PDF files)


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.

mcp-pdf-tools MCP server

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

Installation

  1. Clone this repository
  2. cd mcp-pdf-tools
    
    # Create and activate virtual environment
    uv venv
    .venvScriptsactivate
    
    # 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_TOmcp-pdf-tools",
                "run",
                "pdf-tools"
            ]
        }
    }
}