quillpdf-mcp

v0.2.0
io.github.PurpleDirective/quillpdf-mcp Checked 1 day ago Published 2 months ago

Local-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.

ParameterTypeDescription
inputs *arrayPaths to the input PDFs, in merge order (2 or more)
output *stringPath to write the merged PDF
forcebooleanReplace 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.

ParameterTypeDescription
input *stringPath to the input PDF
output *stringOutput path. In range mode with >1 group, files get -1, -2, … suffixes.
forcebooleanReplace the output file if it already exists (default: refuse, so existing files are never silently clobbered)
pagesstring1-based pages for a single combined output, e.g. "1,3,5"
rangesstring1-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.

ParameterTypeDescription
angle *integerRotation in degrees; must be a multiple of 90 (e.g. 90, 180, -90)
input *stringPath to the input PDF
output *stringPath to write the rotated PDF
forcebooleanReplace the output file if it already exists (default: refuse, so existing files are never silently clobbered)
pagesarray1-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.

ParameterTypeDescription
input *stringPath to the input PDF
output *stringPath to write the watermarked PDF
text *stringWatermark text
colorstringColor as #RRGGBB (default #808080)
fontSizenumberFont size in points (default 48)
forcebooleanReplace the output file if it already exists (default: refuse, so existing files are never silently clobbered)
opacitynumberOpacity 0-1 (default 0.15)
positionstringPlacement (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.

ParameterTypeDescription
input *stringPath to the input PDF
output *stringPath to write the numbered PDF
colorstringColor as #RRGGBB (default #000000)
fontSizenumberFont size in points (default 10)
forcebooleanReplace the output file if it already exists (default: refuse, so existing files are never silently clobbered)
padWidthintegerZero-pad width (default 6)
positionstringCorner (default bottom-right)
prefixstringText before the number (default none)
startNumberintegerFirst 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.

ParameterTypeDescription
input *stringPath to the input PDF
output *stringPath to write the cleaned PDF
forcebooleanReplace 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.

ParameterTypeDescription
input *stringPath 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.

ParameterTypeDescription
input *stringPath to the input PDF
output *stringPath to write the organized PDF
pages *stringPages to KEEP, in the order wanted, 1-based. e.g. "3,1,5-8". Order matters; repeat a number to duplicate that page.
forcebooleanReplace 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.

ParameterTypeDescription
input *stringPath to the input PDF
output *stringPath to write the result
pages *stringPages to DELETE, 1-based. e.g. "2,5-7"
forcebooleanReplace 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.

ParameterTypeDescription
input *stringPath to the input PDF
output *stringPath to write the numbered PDF
colorstringHex colour #RRGGBB (default: #000000)
fontSizenumberPoint size (default: 10)
forcebooleanReplace the output file if it already exists
formatstring"3" | "3 of 12" | "Page 3 of 12" (default: plain)
positionstringWhere to place the number (default: bottom-center)
skipFirstbooleanLeave page 1 unstamped, e.g. a cover. Later pages keep their true position (page 2 still reads "2 of 12").
startNumberintegerNumber 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.

ParameterTypeDescription
input *stringPath to the input PDF
output *stringPath to write the cropped PDF
bottomnumberPoints to trim from the bottom (default: 0)
forcebooleanReplace the output file if it already exists
leftnumberPoints to trim from the left (default: 0)
rightnumberPoints to trim from the right (default: 0)
topnumberPoints 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.

ParameterTypeDescription
input *stringPath to the input PDF
output *stringPath to write the flattened PDF
forcebooleanReplace 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.

ParameterTypeDescription
inputs *arrayPaths to the images, in page order
output *stringPath to write the PDF
forcebooleanReplace the output file if it already exists
pageSizestring"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.

ParameterTypeDescription
input *stringPath to the input PDF
output *stringPath to write the protected PDF
password *stringPassword required to open the document
forcebooleanReplace the output file if it already exists
noCopybooleanDisallow text/graphic extraction (accessibility extraction stays permitted)
noModifybooleanDisallow editing and form filling
noPrintbooleanDisallow 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.

ParameterTypeDescription
input *stringPath to the protected PDF
output *stringPath to write the unlocked PDF
password *stringThe document's current password
forcebooleanReplace the output file if it already exists