Purpose
pdf-tools-mcp is a set of PDF operation tools built on the Model Context Protocol (MCP) framework, used to provide practical capabilities such as PDF download, viewing, and processing through the MCP protocol. It is suitable for scenarios that require reading, converting, and integrating PDFs programmatically or through a protocol.
Main Capabilities
Local PDF Operations
- Display: Render PDF pages as images.
- Merge: Merge multiple pages into a single long page.
- Metadata: Extract document metadata.
- Text: Extract text blocks and detailed text information.
- Snippets: Create free-form or full-width snippets from PDF pages.
- Fuse: Merge pages from multiple documents into a single document.
Remote PDF Operations
- Display: Render remote PDF pages as images.
- Download: Fetch a PDF from a URL and save it to local storage.
Usage
PDF Tools can be automatically installed for Claude Desktop via Smithery. Manual installation is also supported: after starting the MCP server, the server provides PDF operation endpoints through the MCP protocol.
Technical Notes and Limitations
- Requires Python 3.12 or later.
- Uses the MCP framework for tool registration.
- PDF documents are stored with UUID4 filenames to ensure security.
- Uses aiohttp/aiofiles for asynchronous operations and python-magic-bin for file type detection.
- The project uses the MIT License; see LICENSE for details.
Other specific installation commands, configuration details, and usage steps are not yet provided in the materials.