What are the required dependencies?
Python 3.11+ and the packages mcp>=1.2.0, pypdf2>=3.0.1, pytesseract>=0.3.10, Pillow>=10.0.0, pydantic>=2.10.1,<3.0.0, and pymupdf>=1.24.0.
@xraywu
Basic information
MCP server to extract contents from a PDF file
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-pdf-extraction-server": {
"command": "python",
"args": [
"-m",
"venv",
"venv"
]
}
}
}Extract contents from a local PDF file
The PDF Extraction MCP Server (Claude Code Fork) is an MCP server that extracts text content from PDF files. It is a fork of the original server with critical fixes for installing and running with Claude Code CLI.
Clone the repository, install in development mode with pip install -e ., then find the installed command path and add it to Claude Code using claude mcp add pdf-extraction /full/path/to/pdf-extraction. Once added, start a new Claude session and use /mcp to confirm connection; then ask Claude to extract content from a local PDF by specifying the file path and optionally a comma-separated list of pages (e.g., "1-3,-1").
python -m pdf_extractionPython 3.11+ and the packages mcp>=1.2.0, pypdf2>=3.0.1, pytesseract>=0.3.10, Pillow>=10.0.0, pydantic>=2.10.1,<3.0.0, and pymupdf>=1.24.0.
After installing, run `which pdf-extraction` to get the full path, then execute `claude mcp add pdf-extraction /full/path/to/pdf-extraction`.
No, this fork is specifically for Claude Code CLI. For Claude Desktop, refer to the original repository.
It requires a `pdf_path` string (local file path
The SSE version of the MCP service is modified from the Filesystem MCP server
📄 The PDF intelligence layer for AI agents — Agent Document Twin, evidence-first extraction, visual crops, OCR provenance, trust reports, and benchmark-gated releases. MCP server for Claude, Cursor, VS Code, and any MCP client.
MCP Workspace Server: A secure Model Context Protocol server providing file, git, and GitHub tools for AI assistants within a sandboxed project directory.
Storacha MCP storage server - self-sovereign data for your AI applications.
Comments