PDF Parser MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
PDF Parser MCP Server
A Model Context Protocol (MCP) server that extracts text from PDF files, with optional OCR support for scanned documents.
Features
Text extraction from PDF files using
pypdfWord Document support - read
.docxfiles with formatting (headers, tables)OCR support via Tesseract for scanned/image-based PDFs and DOCX images
URL support - read documents directly from HTTP/HTTPS URLs
Page selection - extract specific pages or ranges (PDF only)
Password protection - decrypt protected PDFs
Related MCP server: Document Reader MCP Server
Prerequisites
For OCR support (highly recommended), install Tesseract OCR:
Windows: Download from UB-Mannheim or run
choco install tesseractDefault path:
C:\Program Files\Tesseract-OCR\tesseract.exe
Installation & Setup
Option 1: Automatic (Windows)
No manual setup required. The included start_server.bat script will automatically create a virtual environment and install all dependencies the first time you run it.
Option 2: Manual (Mac/Linux/Custom)
python -m venv .venv
source .venv/bin/activate # or .venv\Scripts\activate on Windows
pip install -r requirements.txtConfiguration
1. Gemini CLI
Method A: Using Batch Script (Recommended for Windows)
gemini mcp add pdf-parser "C:\Path\To\LLM-PDF-Parser\start_server.bat"Method B: Using Python Directly
gemini mcp add pdf-parser "python" --args "C:\Path\To\LLM-PDF-Parser\server.py"2. Claude Desktop & Other MCP Clients
Add the following to your MCP configuration file (e.g., claude_desktop_config.json or VS Code settings).
Method A: Using Batch Script (Recommended for Windows) Ensures dependencies are managed automatically.
{
"mcpServers": {
"pdf-parser": {
"command": "C:\\Path\\To\\LLM-PDF-Parser\\start_server.bat",
"args": [],
"env": {
"PYTHONIOENCODING": "utf-8"
}
}
}
}Method B: Using Python Directly Requires you to handle the virtual environment and dependencies manually.
{
"mcpServers": {
"pdf-parser": {
"command": "python",
"args": ["C:\\Path\\To\\LLM-PDF-Parser\\server.py"],
"env": {
"PYTHONIOENCODING": "utf-8"
}
}
}
}Tool: read_pdf
Parameter | Type | Required | Description |
| string | Yes | Absolute path to PDF or URL (http/https) |
| string | No | Page selection: |
| string | No | Password for encrypted PDFs |
| boolean | No | Enable Tesseract OCR for images (default: true) |
Tool: read_docx
Parameter | Type | Required | Description |
| string | Yes | Absolute path to DOCX or URL (http/https) |
| boolean | No | Enable Tesseract OCR for embedded images (default: true) |
Examples
# Read entire PDF
read_pdf("C:/docs/report.pdf")
# Read specific pages from PDF
read_pdf("C:/docs/report.pdf", pages="0,2-5")
# Read DOCX file (preserves headers and tables)
read_docx("C:/docs/notes.docx")
# Read from URL
read_pdf("https://example.com/document.pdf")
read_docx("https://example.com/meeting.docx")
# Disable OCR (enabled by default)
read_pdf("C:/docs/scanned.pdf", ocr=False)
# Decrypt protected PDF
read_pdf("C:/docs/protected.pdf", password="secret")Requirements
Python 3.10+
pypdf- PDF text extractionpython-docx- Word document extractionpytesseract- OCR wrapper (optional)Pillow- Image processing (optional)requests- URL downloadsmcp- MCP server framework
Notes
Uses pure Python
pypdfinstead ofpymupdffor ARM64 compatibilityOCR requires Tesseract to be installed on the system
Page numbers are 0-indexed in the
pagesparameter
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
PDF, DOCX and image URLs to clean, LLM-ready Markdown or text, with OCR for scanned pages.
Extract text, pages and metadata from PDFs in bulk, with OCR for scanned files.
Convert PDF, Word, Excel and scanned documents to Markdown, tables and RAG chunks. OCR.
Document conversion and OCR for AI agents: PDF, Office docs, images to text.
Related MCP Servers
- AlicenseAqualityAmaintenanceExtract content from URLs, documents, videos, and audio files using intelligent auto-engine selection. Supports web pages, PDFs, Word docs, YouTube transcripts, and more with structured JSON responses.2186MIT
- AlicenseNot gradedqualityDmaintenanceEnables reading and processing various document formats including Word, PDF, RTF, and text files. Supports extracting media elements like images and links, with features for PDF page range selection and automatic text encoding detection.8MIT
- FlicenseAqualityDmaintenanceEnables reading and extracting content from PDF documents including text (as Markdown), images, tables, and metadata from both local files and URLs, with OCR support for scanned documents.2-
- FlicenseNot gradedqualityDmaintenanceEnables local, read-only extraction of text and structure from PDF, DOCX, PPTX, SVG, and PNG files, including OCR for images, directory tree and metadata reporting, with strict path isolation and audit logging.-