PDF Reader MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PDF Reader MCP Serverread the PDF at https://example.com/report.pdf"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
Author
Philip Van de Walker
Email: philip.vandewalker@gmail.com
GitHub: https://github.com/trafflux
Related MCP server: PDF Reader MCP Server
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
Installation
Clone the repository:
git clone https://github.com/trafflux/pdf-reader-mcp.git
cd pdf-reader-mcpBuild the Docker image:
docker build -t mcp/pdf-reader .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-readerReplace /path/to/pdfs with the actual path to your PDF files directory.
If not using local PDF files:
docker run -i --rm mcp/pdf-readerMCP Configuration
Add to your MCP settings configuration:
{
"mcpServers": {
"pdf-reader": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-v",
"/path/to/pdfs:/pdfs",
"mcp/pdf-reader"
],
"disabled": false,
"autoApprove": []
}
}
}Without local file PDF files:
{
"mcpServers": {
"pdf-reader": {
"command": "docker",
"args": ["run", "-i", "--rm", "mcp/pdf-reader"],
"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 implementationLicense
Copyright 2025 Philip Van de Walker
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Contact
For questions, issues, or contributions, please contact Philip Van de Walker:
Email: philip.vandewalker@gmail.com
GitHub: https://github.com/trafflux
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceProvides tools for reading and extracting text from PDF files, supporting both local files and URLs.Last updated46
- 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.Last updated2
- Alicense-qualityDmaintenanceEnables comprehensive PDF processing including text extraction, image extraction, and OCR capabilities for reading text within images across multiple languages.Last updated12MIT
- AlicenseAqualityDmaintenanceEnables AI agents to securely read and extract information from PDF files including text content, metadata, and page counts from both local files and URLs within the project context.Last updated12,445MIT
Related MCP Connectors
PDF accessibility checks (veraPDF PDF/UA-1), auto-fix and Markdown conversion. EU-hosted.
Reliable PDF table extraction. Pass a URL, get structured JSON tables with citations.
Turn any PDF into structured JSON via AI + OCR: invoices, bank statements, contracts.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/wfyi-joy/pdf-reader-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server