MCP server to extract contents from PDF files, with fixes for Claude Code CLI installation.
This fork includes critical fixes for installing and running the server with Claude Code (the CLI version).
- Added
__main__.py- Enables the package to be run as a module withpython -m pdf_extraction - Claude Code specific instructions - Clear installation steps that work with Claude Code CLI
- Tested installation process - Verified working with
claude mcp addcommand
The server implements one tool:
- extract-pdf-contents: Extract contents from a local PDF file
- Takes
pdf_pathas a required string argument (local file path) - Takes
pagesas an optional string argument (comma-separated page numbers, supports negative indexing like-1for last page) - Supports both PDF text extraction and OCR for scanned documents
- Takes
- Python 3.11 or higher
- pip or conda
- Claude Code CLI installed (
claudecommand)