pdf-suite-mcp
v2.2.037 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).
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Absolute or relative path to the PDF file |
pages | array | Specific 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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Absolute 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.
| Parameter | Type | Description |
|---|---|---|
content * | string | Text content. Use \n for line breaks. Lines starting with "# " become bold headings. Text auto-wraps and paginates. |
outputPath * | string | Path where the PDF will be saved |
author | string | Document author (metadata) |
font | string | Font family (default: Helvetica) |
fontSize | number | Font size in points (default: 12) |
lineSpacing | number | Line spacing multiplier (default: 1.4) |
margin | number | Page margin in points (default: 50) |
pageSize | string | Page size (default: A4) |
title | string | Document 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.
| Parameter | Type | Description |
|---|---|---|
imagePaths * | array | Array of image file paths (PNG or JPG) |
outputPath * | string | Path where the PDF will be saved |
margin | number | Margin around image in points (default: 0) |
pageSize | string | "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.
| Parameter | Type | Description |
|---|---|---|
filePaths * | array | PDF file paths to merge in desired order (min 2) |
outputPath * | string | Output path for the merged PDF |
pdf_split
Split a PDF into multiple files: one file per page, or one file per custom page range.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | PDF file to split |
outputDir * | string | Directory for output files |
ranges | array | Page ranges. If omitted, splits into individual pages. |
pdf_rotate
Rotate pages by 90, 180, or 270 degrees clockwise.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | PDF file path |
outputPath * | string | Output path |
rotation * | string | Clockwise rotation degrees |
pages | array | Pages to rotate (1-indexed). Omit for all pages. |
pdf_delete_pages
Remove specific pages from a PDF.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | PDF file path |
outputPath * | string | Output path |
pages * | array | Page numbers to delete (1-indexed) |
pdf_extract_pages
Extract specific pages into a new PDF.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Source PDF path |
outputPath * | string | Output path |
pages * | array | Page numbers to extract (1-indexed) |
pdf_reorder
Reorder pages. Can also duplicate pages by repeating numbers in the order array.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | PDF file path |
outputPath * | string | Output path |
pageOrder * | array | New 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.
| Parameter | Type | Description |
|---|---|---|
insertAfter * | number | Insert after this page number (0 = insert at beginning, use page count for end) |
outputPath * | string | Output path |
sourcePath * | string | PDF to take pages from |
targetPath * | string | PDF to insert pages into |
sourcePages | array | Which 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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | PDF file path |
outputPath * | string | Output 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.
| Parameter | Type | Description |
|---|---|---|
afterPages * | array | Insert a blank page after each of these page numbers (1-indexed). Use 0 to add at the beginning. |
filePath * | string | PDF file path |
outputPath * | string | Output path |
pageSize | string | "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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | PDF file path |
height * | number | Height of crop area in points |
outputPath * | string | Output path |
width * | number | Width of crop area in points |
x * | number | Left edge of crop area (points from left) |
y * | number | Bottom edge of crop area (points from bottom) |
pages | array | Pages 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.
| Parameter | Type | Description |
|---|---|---|
basePath * | string | Base PDF (background) |
outputPath * | string | Output path |
overlayPath * | string | Overlay PDF (drawn on top) |
overlayPage | number | Which page of the overlay PDF to use (1-indexed, default: 1) |
pages | array | Which 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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Source 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 * | string | Output path |
pageSize | string | Output page size (default: Letter) |
pdf_watermark
Add a diagonal text watermark across PDF pages. The text is properly centered regardless of rotation angle.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | PDF file path |
outputPath * | string | Output path |
text * | string | Watermark text (e.g. "CONFIDENTIAL", "DRAFT") |
color | string | Color as a hex code (#ff0000), a short hex code (#f00) or a name (red, navy and others). Default: #888888 |
fontSize | number | Font size in points (default: 60) |
opacity | number | Opacity 0-1 (default: 0.15) |
pages | array | Pages to watermark (1-indexed). Omit for all. |
rotation | number | Rotation in degrees (default: 45) |
pdf_page_numbers
Add page numbers to every page. Supports various positions, custom prefix/suffix, and starting number.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | PDF file path |
outputPath * | string | Output path |
color | string | Color (default: dark gray) |
fontSize | number | Font size (default: 10) |
margin | number | Edge distance in points (default: 30) |
position | string | Position (default: bottom-center) |
prefix | string | Prefix text (e.g. "Page ") |
startNumber | number | Starting number (default: 1) |
suffix | string | Suffix 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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | PDF file path |
outputPath * | string | Output path |
page * | number | Page number (1-indexed) |
text * | string | Text to add. Use \n for multiple lines. |
x * | number | X from left edge (points) |
y * | number | Y from bottom edge (points). For multi-line, this is the top line position. |
color | string | Color (default: black) |
font | string | Font (default: Helvetica) |
fontSize | number | Font size (default: 12) |
lineSpacing | number | Line 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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | PDF file path |
imagePath * | string | Image file (PNG or JPG) |
outputPath * | string | Output path |
page * | number | Page number (1-indexed) |
x * | number | X from left edge (points) |
y * | number | Y from bottom edge (points) |
height | number | Height in points (scales proportionally if width omitted) |
opacity | number | Opacity 0-1 (default: 1) |
width | number | Width 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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | PDF file path |
outputPath * | string | Output path |
type * | string | Stamp type. Use CUSTOM with customText for your own stamp. |
customText | string | Custom stamp text (only used when type is CUSTOM) |
opacity | number | Opacity (default: 0.75) |
pages | array | Pages to stamp (1-indexed). Omit for all. |
position | string | Stamp position (default: top-right) |
rotation | number | Rotation 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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | PDF file path |
imagePath * | string | Path to signature image (PNG or JPG) |
outputPath * | string | Output path |
margin | number | Distance from page edge (default: 50) |
page | number | Page to sign (1-indexed). Default: last page. |
position | string | Signature position (default: bottom-right) |
width | number | Signature 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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | PDF file path |
outputPath * | string | Output path |
regions * | array | Regions to redact |
color | string | Redaction color (default: black) |
pdf_highlight
Add translucent highlight boxes over regions on PDF pages, like a highlighter pen. Useful for marking important sections.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | PDF file path |
highlights * | array | Regions to highlight |
outputPath * | string | Output path |
opacity | number | Highlight 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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | PDF file path |
outputPath * | string | Output path |
shapes * | array | Shapes 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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Path 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.
| Parameter | Type | Description |
|---|---|---|
fields * | object | Object mapping field names to values. For checkboxes: "true" or "false". For dropdowns/radio: the option value string. |
filePath * | string | Path to the PDF file with form fields |
outputPath * | string | Path where the filled PDF will be saved |
flatten | boolean | If 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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Path to the PDF file |
outputPath * | string | Path where the modified PDF will be saved |
author | string | Document author |
creator | string | Creator application name |
keywords | array | Document keywords as an array of strings |
producer | string | Producer application name |
subject | string | Document subject/description |
title | string | Document 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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Path to the encrypted PDF file |
outputPath * | string | Path where the unprotected copy will be saved |
unlockCode | string | Code that opens the encrypted PDF, if one is set. Leave it out for files that open without one. |
pdf_search
Search for text in a PDF. Returns all matches with page numbers and surrounding context. Supports plain text and regex search.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | PDF file path |
query * | string | Text or regex pattern to search for |
caseSensitive | boolean | Case-sensitive search (default: false) |
contextChars | number | Characters of context around each match (default: 60) |
regex | boolean | Treat query as a regex pattern (default: false) |
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.
| Parameter | Type | Description |
|---|---|---|
filePath1 * | string | First PDF file path |
filePath2 * | string | Second 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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | PDF file path |
outputPath * | string | Output 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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | PDF file path |
outputPath * | string | Output path |
flattenForms | boolean | Flatten form fields to reduce size (default: false) |
stripMetadata | boolean | Remove 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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | PDF 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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Path to the damaged PDF |
outputPath * | string | Path 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.
| Parameter | Type | Description |
|---|---|---|
attachments * | array | Files to attach |
filePath * | string | PDF file to attach files to |
outputPath * | string | Output path |