pdf-suite-mcp

v2.2.0
io.github.beepboop2025/pdf-suite-mcp Checked 18 hours ago Published 8 days ago

37 tools to read, create, merge, split, watermark, fill, redact and search PDFs.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

pdf_read_text

Extract text content from a PDF file. Can extract from all pages or specific pages. Works with text-based PDFs (not scanned images).

ParameterTypeDescription
filePath *stringAbsolute or relative path to the PDF file
pagesarraySpecific page numbers to extract (1-indexed). If omitted, extracts all pages.

pdf_info

Get detailed information about a PDF: page count, file size, metadata (title, author, dates), form field count, and page dimensions in points and inches. Encrypted PDFs are not supported and return an error.

ParameterTypeDescription
filePath *stringAbsolute or relative path to the PDF file

pdf_create

Create a new PDF from text. Supports auto word-wrapping, pagination, bold/italic, configurable fonts, margins, page sizes. Lines starting with "# " render as bold headings.

ParameterTypeDescription
content *stringText content. Use \n for line breaks. Lines starting with "# " become bold headings. Text auto-wraps and paginates.
outputPath *stringPath where the PDF will be saved
authorstringDocument author (metadata)
fontstringFont family (default: Helvetica)
fontSizenumberFont size in points (default: 12)
lineSpacingnumberLine spacing multiplier (default: 1.4)
marginnumberPage margin in points (default: 50)
pageSizestringPage size (default: A4)
titlestringDocument title (metadata)

pdf_images_to_pdf

Convert one or more images (PNG/JPG) into a PDF. Each image becomes a page, scaled to fit while maintaining aspect ratio.

ParameterTypeDescription
imagePaths *arrayArray of image file paths (PNG or JPG)
outputPath *stringPath where the PDF will be saved
marginnumberMargin around image in points (default: 0)
pageSizestring"FitImage" sizes each page to match the image (default: A4)

pdf_merge

Merge multiple PDF files into a single PDF. Pages are combined in the order listed.

ParameterTypeDescription
filePaths *arrayPDF file paths to merge in desired order (min 2)
outputPath *stringOutput path for the merged PDF

pdf_split

Split a PDF into multiple files: one file per page, or one file per custom page range.

ParameterTypeDescription
filePath *stringPDF file to split
outputDir *stringDirectory for output files
rangesarrayPage ranges. If omitted, splits into individual pages.

pdf_rotate

Rotate pages by 90, 180, or 270 degrees clockwise.

ParameterTypeDescription
filePath *stringPDF file path
outputPath *stringOutput path
rotation *stringClockwise rotation degrees
pagesarrayPages to rotate (1-indexed). Omit for all pages.

pdf_delete_pages

Remove specific pages from a PDF.

ParameterTypeDescription
filePath *stringPDF file path
outputPath *stringOutput path
pages *arrayPage numbers to delete (1-indexed)

pdf_extract_pages

Extract specific pages into a new PDF.

ParameterTypeDescription
filePath *stringSource PDF path
outputPath *stringOutput path
pages *arrayPage numbers to extract (1-indexed)

pdf_reorder

Reorder pages. Can also duplicate pages by repeating numbers in the order array.

ParameterTypeDescription
filePath *stringPDF file path
outputPath *stringOutput path
pageOrder *arrayNew page order (1-indexed). Example: [3, 1, 2] puts page 3 first.

pdf_insert_pages

Insert pages from one PDF into another at a specific position. Useful for adding cover pages, appendices, or inserting content mid-document.

ParameterTypeDescription
insertAfter *numberInsert after this page number (0 = insert at beginning, use page count for end)
outputPath *stringOutput path
sourcePath *stringPDF to take pages from
targetPath *stringPDF to insert pages into
sourcePagesarrayWhich pages to take from source (1-indexed). Omit for all source pages.

pdf_reverse

Reverse the page order of a PDF. Useful for fixing scan order or printing back-to-front.

ParameterTypeDescription
filePath *stringPDF file path
outputPath *stringOutput path

pdf_blank_pages

Insert blank pages into a PDF at specified positions. Useful for adding separator pages or ensuring chapters start on odd pages.

ParameterTypeDescription
afterPages *arrayInsert a blank page after each of these page numbers (1-indexed). Use 0 to add at the beginning.
filePath *stringPDF file path
outputPath *stringOutput path
pageSizestring"MatchPrevious" matches the size of the preceding page (default)

pdf_crop

Crop pages by setting the visible area (crop box). Trims margins or isolates a region. Coordinates are in points from bottom-left.

ParameterTypeDescription
filePath *stringPDF file path
height *numberHeight of crop area in points
outputPath *stringOutput path
width *numberWidth of crop area in points
x *numberLeft edge of crop area (points from left)
y *numberBottom edge of crop area (points from bottom)
pagesarrayPages to crop (1-indexed). Omit for all pages.

pdf_overlay_pdf

Overlay one PDF on top of another. The overlay PDF is drawn on top of the base PDF pages. Perfect for adding letterheads, templates, or watermark PDFs.

ParameterTypeDescription
basePath *stringBase PDF (background)
outputPath *stringOutput path
overlayPath *stringOverlay PDF (drawn on top)
overlayPagenumberWhich page of the overlay PDF to use (1-indexed, default: 1)
pagesarrayWhich base pages to apply the overlay to (1-indexed). Omit for all pages.

pdf_page_layout

Arrange multiple PDF pages onto single sheets in N-up layouts. Puts 2 or 4 source pages onto each output page side-by-side. Useful for printing handouts, saving paper, or creating thumbnail sheets.

ParameterTypeDescription
filePath *stringSource PDF file path
layout *string"2-up" = 2 pages per sheet side-by-side, "4-up" = 4 pages per sheet in a 2x2 grid
outputPath *stringOutput path
pageSizestringOutput page size (default: Letter)

pdf_watermark

Add a diagonal text watermark across PDF pages. The text is properly centered regardless of rotation angle.

ParameterTypeDescription
filePath *stringPDF file path
outputPath *stringOutput path
text *stringWatermark text (e.g. "CONFIDENTIAL", "DRAFT")
colorstringColor as a hex code (#ff0000), a short hex code (#f00) or a name (red, navy and others). Default: #888888
fontSizenumberFont size in points (default: 60)
opacitynumberOpacity 0-1 (default: 0.15)
pagesarrayPages to watermark (1-indexed). Omit for all.
rotationnumberRotation in degrees (default: 45)

pdf_page_numbers

Add page numbers to every page. Supports various positions, custom prefix/suffix, and starting number.

ParameterTypeDescription
filePath *stringPDF file path
outputPath *stringOutput path
colorstringColor (default: dark gray)
fontSizenumberFont size (default: 10)
marginnumberEdge distance in points (default: 30)
positionstringPosition (default: bottom-center)
prefixstringPrefix text (e.g. "Page ")
startNumbernumberStarting number (default: 1)
suffixstringSuffix text (e.g. " of 50")

pdf_add_text

Add text at a specific position on a PDF page. Supports multi-line text (use \n). Coordinates are in points from bottom-left.

ParameterTypeDescription
filePath *stringPDF file path
outputPath *stringOutput path
page *numberPage number (1-indexed)
text *stringText to add. Use \n for multiple lines.
x *numberX from left edge (points)
y *numberY from bottom edge (points). For multi-line, this is the top line position.
colorstringColor (default: black)
fontstringFont (default: Helvetica)
fontSizenumberFont size (default: 12)
lineSpacingnumberLine spacing multiplier for multi-line text (default: 1.4)

pdf_add_image

Add an image (PNG/JPG) at a position on a page. Aspect ratio is preserved when only width or height is given.

ParameterTypeDescription
filePath *stringPDF file path
imagePath *stringImage file (PNG or JPG)
outputPath *stringOutput path
page *numberPage number (1-indexed)
x *numberX from left edge (points)
y *numberY from bottom edge (points)
heightnumberHeight in points (scales proportionally if width omitted)
opacitynumberOpacity 0-1 (default: 1)
widthnumberWidth in points (scales proportionally if height omitted)

pdf_stamp

Apply a styled business stamp (like a rubber stamp) to PDF pages. Pre-configured styles for common stamps, or create custom ones. Draws a bordered rectangle with text inside, slightly rotated for authenticity.

ParameterTypeDescription
filePath *stringPDF file path
outputPath *stringOutput path
type *stringStamp type. Use CUSTOM with customText for your own stamp.
customTextstringCustom stamp text (only used when type is CUSTOM)
opacitynumberOpacity (default: 0.75)
pagesarrayPages to stamp (1-indexed). Omit for all.
positionstringStamp position (default: top-right)
rotationnumberRotation in degrees for rubber-stamp look (default: -15)

pdf_sign

Add a signature image (PNG or JPG) to a PDF page at a preset position along the bottom edge, scaled to a chosen width with proportional height. A simpler, signing-focused form of general image placement.

ParameterTypeDescription
filePath *stringPDF file path
imagePath *stringPath to signature image (PNG or JPG)
outputPath *stringOutput path
marginnumberDistance from page edge (default: 50)
pagenumberPage to sign (1-indexed). Default: last page.
positionstringSignature position (default: bottom-right)
widthnumberSignature width in points (default: 150). Height scales proportionally.

pdf_redact

VISUAL-ONLY redaction: draws opaque rectangles over regions on PDF pages. WARNING: this does NOT remove the underlying text or data from the PDF; it only covers it visually, and the original content can still be extracted programmatically. It is not suitable for sanitizing confidential documents. True redaction needs software that rewrites the PDF content stream, such as Adobe Acrobat Pro.

ParameterTypeDescription
filePath *stringPDF file path
outputPath *stringOutput path
regions *arrayRegions to redact
colorstringRedaction color (default: black)

pdf_highlight

Add translucent highlight boxes over regions on PDF pages, like a highlighter pen. Useful for marking important sections.

ParameterTypeDescription
filePath *stringPDF file path
highlights *arrayRegions to highlight
outputPath *stringOutput path
opacitynumberHighlight opacity (default: 0.35)

pdf_draw

Draw shapes on PDF pages: rectangles (filled or outlined), lines, and circles/ellipses. Useful for annotations, diagrams, or marking up documents.

ParameterTypeDescription
filePath *stringPDF file path
outputPath *stringOutput path
shapes *arrayShapes to draw

pdf_form_read

Read all form fields from a PDF. Returns each field's name, type (Text, CheckBox, Dropdown, OptionList, RadioGroup), current value, and available options: the exact names and option values that form filling expects. Encrypted PDFs are not supported and return an error.

ParameterTypeDescription
filePath *stringPath to the PDF file with form fields

pdf_form_fill

Fill form fields in a PDF by name. Supports text fields, checkboxes ("true"/"false"), dropdowns, option lists, and radio groups. Field names must match the form exactly; reading the form first lists them with their types. Optionally flattens the form to make it non-editable. Encrypted PDFs are not supported and return an error.

ParameterTypeDescription
fields *objectObject mapping field names to values. For checkboxes: "true" or "false". For dropdowns/radio: the option value string.
filePath *stringPath to the PDF file with form fields
outputPath *stringPath where the filled PDF will be saved
flattenbooleanIf true, flattens the form making fields non-editable (default: false)

pdf_set_metadata

Set or update PDF document metadata fields: title, author, subject, keywords, creator, and producer. Only specified fields are changed; others remain untouched.

ParameterTypeDescription
filePath *stringPath to the PDF file
outputPath *stringPath where the modified PDF will be saved
authorstringDocument author
creatorstringCreator application name
keywordsarrayDocument keywords as an array of strings
producerstringProducer application name
subjectstringDocument subject/description
titlestringDocument title

pdf_decrypt

Save an unprotected copy of an encrypted PDF, given the code that opens it. Current limitation: the bundled PDF engine (pdf-lib 1.17) cannot decrypt, so encrypted input returns an error and no file is written. Input that is not encrypted is re-saved as a copy.

ParameterTypeDescription
filePath *stringPath to the encrypted PDF file
outputPath *stringPath where the unprotected copy will be saved
unlockCodestringCode that opens the encrypted PDF, if one is set. Leave it out for files that open without one.

pdf_compare

Compare the text content of two PDFs page by page. Reports which pages are identical, which differ, and shows a summary of differences. Useful for verifying document versions.

ParameterTypeDescription
filePath1 *stringFirst PDF file path
filePath2 *stringSecond PDF file path

pdf_flatten

Flatten the form in a PDF: converts every form field into static page content, so fields become non-editable. Useful for finalizing documents before distribution.

ParameterTypeDescription
filePath *stringPDF file path
outputPath *stringOutput path

pdf_compress

Attempt to reduce PDF file size by rebuilding the document structure. Copies all pages to a fresh PDF (dropping orphaned objects), and optionally strips metadata. Results vary; works best on PDFs with accumulated edits or orphaned data.

ParameterTypeDescription
filePath *stringPDF file path
outputPath *stringOutput path
flattenFormsbooleanFlatten form fields to reduce size (default: false)
stripMetadatabooleanRemove title, author, subject, keywords (default: false)

pdf_validate

Validate a PDF file: checks whether it can be parsed and reports page count, metadata, form fields, and any structural issues. Useful as a health check before processing.

ParameterTypeDescription
filePath *stringPDF file path

pdf_repair

Attempt to repair a damaged or malformed PDF by loading it with lenient parsing, copying all recoverable pages to a clean document, and re-saving. May fix issues like corrupted cross-reference tables or orphaned objects.

ParameterTypeDescription
filePath *stringPath to the damaged PDF
outputPath *stringPath for the repaired PDF

pdf_attach

Embed one or more files as attachments inside a PDF. Attached files travel with the PDF and can be extracted by PDF readers. Useful for bundling source data, receipts, supporting documents, etc.

ParameterTypeDescription
attachments *arrayFiles to attach
filePath *stringPDF file to attach files to
outputPath *stringOutput path