quillpdf-mcp
v0.2.0Local-first PDF tools (merge, split, rotate, watermark, Bates, metadata) as MCP server + CLI.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
pdf_merge Merge PDFs
Merge two or more PDF files into one, in the order given. Runs entirely on this machine — the file is read and written locally and never sent anywhere.
| Parameter | Type | Description |
|---|---|---|
inputs * | array | Paths to the input PDFs, in merge order (2 or more) |
output * | string | Path to write the merged PDF |
force | boolean | Replace the output file if it already exists (default: refuse, so existing files are never silently clobbered) |
pdf_split Split / extract PDF pages
Split a PDF by 1-based page ranges (one output file per comma group, e.g. "1-3,5"), or extract specific pages into a single PDF (e.g. "1,3,5"). Provide exactly one of `ranges` or `pages`. Runs entirely on this machine — the file is read and written locally and never sent anywhere.
| Parameter | Type | Description |
|---|---|---|
input * | string | Path to the input PDF |
output * | string | Output path. In range mode with >1 group, files get -1, -2, … suffixes. |
force | boolean | Replace the output file if it already exists (default: refuse, so existing files are never silently clobbered) |
pages | string | 1-based pages for a single combined output, e.g. "1,3,5" |
ranges | string | 1-based ranges, one output per comma group, e.g. "1-3,5,7-9" |
pdf_rotate Rotate PDF pages
Rotate pages by a multiple of 90 degrees. Omit `pages` to rotate every page. Runs entirely on this machine — the file is read and written locally and never sent anywhere.
| Parameter | Type | Description |
|---|---|---|
angle * | integer | Rotation in degrees; must be a multiple of 90 (e.g. 90, 180, -90) |
input * | string | Path to the input PDF |
output * | string | Path to write the rotated PDF |
force | boolean | Replace the output file if it already exists (default: refuse, so existing files are never silently clobbered) |
pages | array | 1-based pages to rotate (default: all) |
pdf_watermark Watermark a PDF
Stamp a text watermark on every page. Runs entirely on this machine — the file is read and written locally and never sent anywhere.
| Parameter | Type | Description |
|---|---|---|
input * | string | Path to the input PDF |
output * | string | Path to write the watermarked PDF |
text * | string | Watermark text |
color | string | Color as #RRGGBB (default #808080) |
fontSize | number | Font size in points (default 48) |
force | boolean | Replace the output file if it already exists (default: refuse, so existing files are never silently clobbered) |
opacity | number | Opacity 0-1 (default 0.15) |
position | string | Placement (default center) |
pdf_bates Bates-number a PDF
Stamp sequential Bates numbers ({prefix}{zero-padded n}) on every page. Runs entirely on this machine — the file is read and written locally and never sent anywhere.
| Parameter | Type | Description |
|---|---|---|
input * | string | Path to the input PDF |
output * | string | Path to write the numbered PDF |
color | string | Color as #RRGGBB (default #000000) |
fontSize | number | Font size in points (default 10) |
force | boolean | Replace the output file if it already exists (default: refuse, so existing files are never silently clobbered) |
padWidth | integer | Zero-pad width (default 6) |
position | string | Corner (default bottom-right) |
prefix | string | Text before the number (default none) |
startNumber | integer | First number (default 1) |
pdf_clean_metadata Clean PDF metadata
Strip document metadata: clears title, author, subject, keywords, creator and the CreationDate/ModDate in the info dictionary, AND deletes the document-level XMP metadata stream (the copy Acrobat/Word/InDesign write). Note: pdf-lib rewrites /Producer with its own signature on save, so that one field is replaced rather than emptied. Runs entirely on this machine — the file is read and written locally and never sent anywhere.
| Parameter | Type | Description |
|---|---|---|
input * | string | Path to the input PDF |
output * | string | Path to write the cleaned PDF |
force | boolean | Replace the output file if it already exists (default: refuse, so existing files are never silently clobbered) |
pdf_page_count Count PDF pages
Return the number of pages in a PDF. Runs entirely on this machine — the file is read and written locally and never sent anywhere.
| Parameter | Type | Description |
|---|---|---|
input * | string | Path to the input PDF |
pdf_organize Organize PDF pages
Rebuild a PDF keeping only the pages you list, in the order you list them. Reordering, deleting and duplicating are all the same operation: a page you omit is dropped, a page you move is reordered, and a page listed twice is duplicated. Runs entirely on this machine — the file is read and written locally and never sent anywhere.
| Parameter | Type | Description |
|---|---|---|
input * | string | Path to the input PDF |
output * | string | Path to write the organized PDF |
pages * | string | Pages to KEEP, in the order wanted, 1-based. e.g. "3,1,5-8". Order matters; repeat a number to duplicate that page. |
force | boolean | Replace the output file if it already exists |
pdf_delete_pages Delete PDF pages
Remove the listed pages, keeping everything else in its current order. Runs entirely on this machine — the file is read and written locally and never sent anywhere.
| Parameter | Type | Description |
|---|---|---|
input * | string | Path to the input PDF |
output * | string | Path to write the result |
pages * | string | Pages to DELETE, 1-based. e.g. "2,5-7" |
force | boolean | Replace the output file if it already exists |
pdf_page_numbers Add page numbers
Stamp readable page numbers on each page. Distinct from Bates numbering: these are a reading aid (centred, optional "of N" total, skippable cover), not a legal evidence-control device. Runs entirely on this machine — the file is read and written locally and never sent anywhere.
| Parameter | Type | Description |
|---|---|---|
input * | string | Path to the input PDF |
output * | string | Path to write the numbered PDF |
color | string | Hex colour #RRGGBB (default: #000000) |
fontSize | number | Point size (default: 10) |
force | boolean | Replace the output file if it already exists |
format | string | "3" | "3 of 12" | "Page 3 of 12" (default: plain) |
position | string | Where to place the number (default: bottom-center) |
skipFirst | boolean | Leave page 1 unstamped, e.g. a cover. Later pages keep their true position (page 2 still reads "2 of 12"). |
startNumber | integer | Number for the first page (default: 1) |
pdf_crop Crop PDF margins
Trim the visible area of each page by the given margins, in points (72 = 1 inch). This sets the CropBox, so the trimmed content is HIDDEN, not removed — it stays in the file and anyone can restore it. Cropping is not redaction. Runs entirely on this machine — the file is read and written locally and never sent anywhere.
| Parameter | Type | Description |
|---|---|---|
input * | string | Path to the input PDF |
output * | string | Path to write the cropped PDF |
bottom | number | Points to trim from the bottom (default: 0) |
force | boolean | Replace the output file if it already exists |
left | number | Points to trim from the left (default: 0) |
right | number | Points to trim from the right (default: 0) |
top | number | Points to trim from the top (default: 0) |
pdf_flatten Flatten PDF form
Paint filled form values onto the page as static content. Afterwards the answers are still readable but can no longer be edited, cleared, or extracted as form data. Runs entirely on this machine — the file is read and written locally and never sent anywhere.
| Parameter | Type | Description |
|---|---|---|
input * | string | Path to the input PDF |
output * | string | Path to write the flattened PDF |
force | boolean | Replace the output file if it already exists |
pdf_from_images Images to PDF
Build a PDF from PNG and/or JPEG images, one image per page, in the order given. Runs entirely on this machine — the file is read and written locally and never sent anywhere.
| Parameter | Type | Description |
|---|---|---|
inputs * | array | Paths to the images, in page order |
output * | string | Path to write the PDF |
force | boolean | Replace the output file if it already exists |
pageSize | string | "fit" sizes each page to its image; a4/letter centres it on a fixed page (default: a4) |
pdf_protect Password-protect a PDF
Encrypt a PDF with AES-256 so it cannot be opened without the password. Only AES-256 is offered — 40-bit and 128-bit are classed as weak crypto. The password is used locally and never transmitted; it also cannot be recovered, so it must be stored somewhere safe. Runs entirely on this machine — the file is read and written locally and never sent anywhere.
| Parameter | Type | Description |
|---|---|---|
input * | string | Path to the input PDF |
output * | string | Path to write the protected PDF |
password * | string | Password required to open the document |
force | boolean | Replace the output file if it already exists |
noCopy | boolean | Disallow text/graphic extraction (accessibility extraction stays permitted) |
noModify | boolean | Disallow editing and form filling |
noPrint | boolean | Disallow printing (enforced by the reader, not the encryption) |
pdf_unlock Remove a PDF password
Decrypt a password-protected PDF you know the password for, so it opens without prompting. This does NOT recover, guess, or brute-force a forgotten password. Runs entirely on this machine — the file is read and written locally and never sent anywhere.
| Parameter | Type | Description |
|---|---|---|
input * | string | Path to the protected PDF |
output * | string | Path to write the unlocked PDF |
password * | string | The document's current password |
force | boolean | Replace the output file if it already exists |