Pdf ReaderSAFE
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
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: [email protected] GitHub: https://github.com/trafflux
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-mcp
- Build 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-reader
Replace /path/to/pdfs with the actual path to your PDF files directory.
If not using local PDF files:
docker run -i --rm mcp/pdf-reader
MCP 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_pdf
- Purpose: Read text content from a local PDF file
- Input:
{
"path": "/pdfs/document.pdf"
}- Output:
{
"success": true,
"data": {
"text": "Extracted content..."
}
}read_pdf_url- Purpose: Read text content from a PDF URL
- In
d197572d38f5OBSERVED · 2026-10-08Exposed tools (2)
2 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
read_local_pdf | read | Read text content from a local PDF file. |
read_pdf_url | read | Read text content from a PDF URL. |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (1 observation(s))
- Network
- declared (1 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (2)
PyPDF2, requests
Gates applied: no_behavioural_pass, no_license.
d197572d38f5full audit observations/trust-audit/mcp-server/trafflux__pdf-reader.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | d197572d38f5 | SAFE | B | 89 | first audit |
Questions
What tools does Pdf Reader expose?
2 in total: 2 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Pdf Reader safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Pdf Reader need?
No credential environment variables were found in its source, so it appears to need none.
How current is this page?
The grade is for one exact copy of the source (d197572d38f5), read on 2026-10-08. The repository is watched and re-audited when it changes.