P
Pdf MCP Server
by @Angelqixi
MCP server by Angelqixi
Created 5/17/2026
Updated about 4 hours ago
README
Repository documentation and setup instructions
pdf-mcp-server
An MCP server for intelligent PDF reading and retrieval from an Obsidian vault. Solves the problem of large PDFs exceeding context window limits by providing chunked, searchable access.
Features
- List PDFs — Discover all PDFs in your vault
- PDF Info — Get metadata (pages, author, title)
- Table of Contents — Extract TOC/bookmarks for structure-aware reading
- Read by Pages — Read specific page ranges (1–20 pages per call)
- Search — Find keywords with surrounding context snippets
- Read by Chapter — Navigate TOC chapters automatically
Setup
pip install -r requirements.txt
Configuration
Set the vault path via environment variable:
export PDF_MCP_VAULT_PATH="D:\claude code\Angel"
Or it defaults to D:\claude code\Angel.
MCP Config (Claude Code)
{
"mcpServers": {
"pdf-reader": {
"type": "stdio",
"command": "python",
"args": ["-m", "src.server"],
"cwd": "D:\\claude code\\pdf-mcp-server",
"env": {
"VAULT_PATH": "D:\\claude code\\Angel"
}
}
}
}
Usage
- Call
list_pdfsto see available PDFs - Call
get_pdf_tocto understand document structure - Use
read_pdf_chapterfor section-based reading - Use
search_pdfto find specific topics - Use
read_pdf_pagesfor precise page ranges
Quick Setup
Installation guide for this server
Install Package (if required)
uvx pdf-mcp-server
Cursor configuration (mcp.json)
{
"mcpServers": {
"angelqixi-pdf-mcp-server": {
"command": "uvx",
"args": [
"pdf-mcp-server"
]
}
}
}