
Pdf4vllm
Adds three PDF tools to Claude: list_pdfs for finding files with glob patterns, read_pdf for extracting content as ordered blocks, and grep_pdf for text search. The smart bit is corruption detection. It tries text extraction first, then automatically switches to image mode when it hits encoding garbage or mangled output. You can force text_only or image_only modes, configure page limits to avoid token explosions, and it filters out junk images like logos and headers. Returns JSON with page numbers and content blocks in reading order. Install via pip or uvx, then point Claude Desktop at the server.py script. Requires pdfgrep if you want the search tool.
- tools
- 3
- transport
- STDIO
- last updated
- Dec 2, 2025
Tools
3 toolsPublic tool metadata for what this MCP can expose to an agent.
list_pdfsFind PDF files with glob filtering (`name_pattern`)
Find PDF files with glob filtering (`name_pattern`)
No parameter schema in public metadata yet.
read_pdfExtract PDF content as ordered blocks
Extract PDF content as ordered blocks
No parameter schema in public metadata yet.
grep_pdfSearch text in PDFs using pdfgrep (requires `pdfgrep` installed)
Search text in PDFs using pdfgrep (requires `pdfgrep` installed)
No parameter schema in public metadata yet.
Sponsors
Readme
pdf4vllm
PDF reading MCP server optimized for vision LLMs.
한국어
문제
| 방식 | 문제점 |
|---|---|
| 텍스트 추출 | 인코딩 깨짐 → 쓰레기 출력, 이미지-텍스트 순서 뒤섞임 |
| 이미지 변환 | 토큰 폭발 (특히 페이지 많을 때) |
해결
pdf4vllm은 PDF가 지저분하다고 가정합니다.
- 텍스트 손상 자동 감지 → 이미지로 자동 전환
- 읽기 순서 보존 (텍스트 → 표 → 이미지 블록 순서대로)
- 페이지 제한으로 컨텍스트 오버플로우 방지
- 불필요한 이미지 자동 필터링 (로고, 선, 헤더/푸터)
설치
pip install pdf4vllm-mcp
# 또는
uvx pdf4vllm-mcp
Claude Desktop 설정
git clone https://github.com/PyJudge/pdf4vllm-mcp.git
cd pdf4vllm-mcp
python scripts/install_mcp.py
또는 직접 설정 (~/Library/Application Support/Claude/claude_desktop_config.json):
Details
- Repository
- github.com/pyjudge/pdf4vllm-mcp
- Category
- Documents & Knowledge
- Package
pdf4vllm-mcp- Transport
- STDIO
- Registry
- MCP registry, active