pdf-toolkit-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| --dir | No | Folder the server is allowed to read from and write to. Repeat the flag to allow multiple folders (e.g. --dir ~/Documents --dir ~/Downloads). With no --dir the server uses the folder it was started in. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Everyday PDF tasks. Start with pdf_info (page count, text layer, bookmarks), then read_pdf for text (it truncates by token budget and tells you which pages to ask for next), search_pdf to find pages, extract_tables for tables. merge_pdfs, split_pdf, extract_pages, rotate_pages and extract_images write new files and never overwrite unless overwrite=true. All paths must be inside the allowed folders (relative paths start at the first one). Page ranges are 1-based like '1-3,5,7-'. Encrypted PDFs need the password parameter. Scanned (image-only) pages have no text and need OCR, which this server does not do; the tools say so when they see one.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| pdf_infoA | Summarise a PDF: page count, metadata, whether it is encrypted, whether it has a text layer (a scanned PDF does not), page sizes, and the outline/bookmarks with page numbers. Call this first to decide how to read the file. path: PDF file inside an allowed folder (absolute, or relative to the first allowed folder). password: only for encrypted PDFs. Without it an encrypted file just reports that it is locked. |
| read_pdfA | Read the text of a PDF, page by page, each page headed '--- Page N of M ---'. Output is capped at roughly max_tokens. When it is cut off, the last line says exactly which pages= value to pass to continue. Pages without a text layer (scanned images) are reported as such instead of coming back empty; there is no OCR. pages: 1-based ranges like '1-3,5,7-' ('7-' = page 7 to the end). Empty = all pages. layout: true keeps the visual column layout (better for forms and statements; wider output). max_tokens: output budget, about 4 characters per token. |
| search_pdfA | Find text in a PDF. Returns each match as 'Page N: ...context...' plus the list of pages hit. Use it to locate the right pages, then read_pdf with pages=. A plain query matches across line breaks and ignores case; set regex=true for a regular expression. pages: optional 1-based ranges like '1-3,5,7-' to limit the search. context_chars: characters of surrounding text on each side of a match. max_results: snippets to return (the total match count is always reported). |
| extract_tablesA | Extract tables from a PDF as markdown or CSV text, labelled with page number and size. strategy 'lines' (default) finds tables drawn with ruling lines; use 'text' for borderless tables aligned by whitespace (less precise). Scanned PDFs have no tables to find. Output is capped at roughly max_tokens with a continue hint, like read_pdf. pages: 1-based ranges like '2-4,9'. Limiting pages is much faster on big files. |
| merge_pdfsA | Concatenate PDFs in the order given into one new file (bookmarks are kept). output_path: must end in .pdf. Default: merged.pdf next to the first input. overwrite: replace the output if it exists. Default false: an existing file is an error. password: if any input is encrypted (one password for all; the output is not encrypted). |
| split_pdfA | Split a PDF into several files. Each comma-separated part of ranges becomes one file, e.g. '1-3,5,7-' makes three files (pages 1-3, page 5, page 7 to the end). Files are named _part_p.pdf. The original is untouched. All names are checked before anything is written, so a conflict never leaves a half-done split. output_dir: default is the input's folder. Created if missing. overwrite: replace existing outputs. Default false. |
| extract_pagesA | Copy selected pages into one new PDF, in the order written ('3,1,2' reorders; '2,2' repeats). output_path: must end in .pdf. Default: _extracted.pdf next to the input. overwrite: replace the output if it exists. Default false. |
| rotate_pagesA | Rotate pages and save a new PDF. degrees is a multiple of 90, clockwise (90, 180, 270, or -90 for counter-clockwise). pages empty = every page. output_path: must end in .pdf. Default: _rotated.pdf next to the input. To rotate a file in place, pass its own path as output_path together with overwrite=true. |
| extract_imagesA | Save the images embedded in a PDF (photos, scans, logos) as files named p., in their original format where possible. Lists the files written. Vector drawings and text are not images and are not extracted. output_dir: default _images next to the input. Created if missing. max_images: safety cap; the call fails (writing nothing) if more are found. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 9 tools
Each tool has a distinct action on PDFs: inspecting, reading text, searching, extracting tables/images/pages, merging, splitting, and rotating. The only close pair is split_pdf versus extract_pages, but the descriptions clearly separate multi-file splitting from reordering/repeating pages into one file.
Most names follow a consistent verb_noun pattern (read_pdf, search_pdf, merge_pdfs, split_pdf, extract_tables, extract_pages, rotate_pages, extract_images). The outlier is pdf_info, which is noun_noun and breaks the otherwise predictable convention.
Nine tools is well-scoped for a PDF toolkit, with each tool covering a meaningful operation. There is no obvious redundancy or excessive breadth.
The surface covers common PDF workflows: inspect, read, search, extract tables/images/pages, merge, split, and rotate. Some gaps remain, such as creating PDFs from images/text, encryption/decryption changes, compression, or form filling, but core lifecycle operations are well covered.