PDF Reader 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 Reader MCP Server
A Model Context Protocol (MCP) server that provides tools for reading and extracting text from PDF files, supporting both local files and URLs.
Features
Read text content from local PDF files
Read text content from PDF URLs
Error handling for corrupt or invalid PDFs
Volume mounting for accessing local PDFs
Auto-detection of PDF encoding
Standardized JSON output format
Related MCP server: PDF MCP Server
Installation
Clone the repository:
git clone http://github.com/Frallen/pdf-mcp
cd pdf-mcpBuild the Docker image:
docker build -t mcp/pdf-mcp .Usage
Running the Server
To run the server with access to local PDF files:
docker run -i --rm -v /path/to/pdfs:/pdfs mcp/pdf-mcpReplace /path/to/pdfs with the actual path to your PDF files directory.
If not using local PDF files:
docker run -i --rm mcp/pdf-mcpMCP Configuration
Add to your MCP settings configuration:
{
"mcpServers": {
"pdf-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-v",
"/path/to/pdfs",
"mcp/pdf-mcp"
],
"disabled": false,
"autoApprove": []
}
}
}Without local file PDF files:
{
"mcpServers": {
"pdf-mcp": {
"command": "docker",
"args": ["run", "-i", "--rm", "mcp/pdf-mcp"],
"disabled": false,
"autoApprove": []
}
}
}Available Tools
read_local_pdfPurpose: Read text content from a local PDF file
Input:
{ "path": "/pdfs/document.pdf" }Output:
{ "success": true, "data": { "text": "Extracted content..." } }
read_pdf_urlPurpose: Read text content from a PDF URL
Input:
{ "url": "https://example.com/document.pdf" }Output:
{ "success": true, "data": { "text": "Extracted content..." } }
Error Handling
The server handles various error cases with clear error messages:
Invalid or corrupt PDF files
Missing files
Failed URL requests
Permission issues
Network connectivity problems
Error responses follow the format:
{
"success": false,
"error": "Detailed error message"
}Dependencies
Python 3.11+
PyPDF2: PDF parsing and text extraction
requests: HTTP client for fetching PDFs from URLs
MCP SDK: Model Context Protocol implementation
Project Structure
.
├── Dockerfile # Container configuration
├── README.md # This documentation
├── requirements.txt # Python dependencies
└── src/
├── __init__.py # Package initialization
└── server.py # Main server implementationTool 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
Read the text of any public PDF, page by page, plus page count and metadata. Free, no key.
Extract text, pages and metadata from PDFs in bulk, with OCR for scanned files.
Turn any PDF into structured JSON via AI + OCR: invoices, bank statements, contracts.
Extract text, Markdown and metadata from PDF URLs or uploads via Apify, per document or per page.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceProvides tools for reading and extracting text from PDF files, supporting both local files and URLs.47-
- FlicenseNot gradedqualityDmaintenanceEnables processing and analysis of large PDF files through text extraction, search functionality, and intelligent chunking strategies. Provides comprehensive PDF operations including metadata retrieval, page-range text extraction, and content search with contextual results.-
- FlicenseNot gradedqualityDmaintenanceEnables reading and extracting text content from PDF files, supporting both local file system access and remote PDF URLs with automatic encoding detection.2-
- AlicenseNot gradedqualityDmaintenanceEnables comprehensive PDF processing including text extraction, image extraction, and OCR capabilities for reading text within images across multiple languages.13MIT