
Pdf4vllm
io.github.PyJudgePublished by GitHub account PyJudgev1.0.2Updated Oct 24, 2026
PDF reader for vision LLMs. Auto-detects text corruption and switches to image mode.
Overview
Reads local PDF files and returns their content as ordered text, table, and image blocks, switching to image mode when text is corrupted.
- What you can do
- A local MCP server that extracts PDF content for vision-capable language models. It offers list_pdfs to find files by glob pattern, read_pdf to return page content as ordered blocks (text, tables, images), and grep_pdf to search text inside PDFs. Extraction modes include auto (try text, fall back to images when corruption is detected), text_only, and image_only. It preserves reading order, limits pages to avoid context overflow, and filters out logos, lines, and headers or footers.
- When to use it
- Useful when an assistant needs to read local PDFs that may have broken encoding or messy layouts, and you want either clean text or page images depending on quality. Also handy for searching across PDFs or feeding scanned pages to a vision model without exploding token usage.
- Requirements
- Runs locally as a Python package (pdf4vllm-mcp) via pip or uvx, or from a cloned source directory configured in the client. The grep_pdf tool additionally requires the pdfgrep program installed on the system. No accounts, API keys, or network access are declared; optional settings such as PDF_MAX_PAGES and PDF_PAGE_IMAGE_DPI can be set by environment variable or config.json.
Installation
In SourceWeft
- Open Pdf4vllm in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
pdf4vllm
[License: MIT] [Python 3.10+] [PyPI] [Open in Gitpod]
PDF reading MCP server optimized for vision LLMs.
한국어
문제
해결
pdf4vllm은 PDF가 지저분하다고 가정합니다.
- 텍스트 손상 자동 감지 → 이미지로 자동 전환
- 읽기 순서 보존 (텍스트 → 표 → 이미지 블록 순서대로)
- 페이지 제한으로 컨텍스트 오버플로우 방지
- 불필요한 이미지 자동 필터링 (로고, 선, 헤더/푸터)
설치
Claude Desktop 설정
또는 직접 설정 (~/Library/Application Support/Claude/claude_desktop_config.json):
도구
추출 모드
Problem
Solution
pdf4vllm assumes PDFs are messy.
- Auto-detects text corruption → switches to image automatically
- Preserves reading order (text → table → image blocks in sequence)
- Page limits prevent context overflow
- Filters unnecessary images (logos, lines, headers/footers)
Install
Claude Desktop Setup
Or manually edit ~/Library/Application Support/Claude/claude_desktop_config.json:
Claude Code Setup
Create .mcp.json in your project:
Tools
Extraction Modes
Output Format
When text is corrupted:
Configuration
config.json or environment variables:
Test Server
License
MIT
Source: README.md at commit 0ea75c6
Tools
0Version history
1- v1.0.2LatestSep 16, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.