pdflince-mcp

v1.1.1
pdflince-mcp Checked 1 day ago Published 1 month ago

Privacy-first client-side PDF toolkit and local Model Context Protocol (MCP) server.

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

pdflince_inspect

Inspects a local PDF file. Returns total page count, dimensions, orientation, and document metadata (author, title, etc).

ParameterTypeDescription
filePath *stringAbsolute or relative path to the PDF file to inspect

pdflince_merge

Merges two or more local PDF files into a single destination PDF file. Can optionally insert divider pages and apply custom metadata.

ParameterTypeDescription
filePaths *arrayList of file paths of PDFs to merge in order
outputPath *stringDestination file path where the merged PDF will be saved
addPageDividersbooleanWhether to insert blank divider pages between merged documents
metadataobjectCustom metadata to apply to the merged document

pdflince_split

Splits a local PDF into multiple files based on page count per file (default 1 page per file), with optional ZIP bundling.

ParameterTypeDescription
filePath *stringPath to the PDF file to split
outputDirectory *stringDirectory where the split PDF chunks will be saved
bundleAsZipbooleanWhether to also bundle all split PDF files into a .zip archive in outputDirectory
outputPrefixstringCustom file name prefix for the generated chunks (defaults to original filename without extension)
pagesPerFileintegerNumber of pages per split file (default: 1, which extracts every page)
preserveMetadatabooleanWhether to retain document metadata (title, author, etc) in the split PDF files

pdflince_extract

Extracts specific pages from a local PDF into a new PDF file. Accepts page numbers as an array or a range string (e.g. "1-3, 5, 8").

ParameterTypeDescription
filePath *stringPath to the source PDF file
outputPath *stringDestination path where the extracted PDF will be saved
pages *Pages to extract. Can be a range string (e.g. "1-3, 5, 8-10") or an array of numbers (e.g. [1, 2, 3])
preserveMetadatabooleanWhether to retain document metadata (title, author, etc) in the extracted PDF

pdflince_reorder

Reorders the pages of a local PDF according to a specified sequence of 1-indexed page numbers (e.g. [3, 1, 2]).

ParameterTypeDescription
filePath *stringPath to the source PDF file
outputPath *stringDestination path where the reordered PDF will be saved
pageOrder *arrayDesired page order as an array of 1-indexed page numbers (e.g. [3, 1, 2])
preserveMetadatabooleanWhether to retain document metadata in the reordered PDF

pdflince_rotate

Rotates pages in a local PDF by a specified angle (90, 180, 270, -90, -180, -270 degrees). Can rotate all pages or specific pages.

ParameterTypeDescription
filePath *stringPath to the source PDF file
outputPath *stringDestination path where the rotated PDF will be saved
pagesPages to rotate (e.g. "1, 3" or [1, 3] or "all"). If omitted, all pages are rotated
preserveMetadatabooleanWhether to retain document metadata in the rotated PDF
rotationDegreesDegrees to rotate clockwise (90, 180, 270) or counter-clockwise (-90, -180, -270)

pdflince_crop

Trims margins (top, bottom, left, right in points) from pages in a local PDF.

ParameterTypeDescription
filePath *stringPath to the PDF file to crop
margins *objectMargin values in points to crop from each page edge
outputPath *stringDestination path where the cropped PDF will be saved
pagesPages to crop (e.g. "1-2" or [1, 2] or "all"). If omitted, all pages are cropped
preserveMetadatabooleanWhether to retain document metadata in the cropped PDF

pdflince_compress

Compresses a local PDF using UI-matching compression presets (low, medium, high), embedded image downscaling (150/72 DPI), structural object stream optimization, annotation stripping, and metadata removal.

ParameterTypeDescription
filePath *stringPath to the source PDF file to compress
outputPath *stringDestination path where the compressed PDF will be saved
compressionLevelstringCompression preset matching the PDFLince UI: low (lossless stream optimization, preserves metadata), medium (balanced, downscales images to 150 DPI), high (maximum reduction, downscales images to 72 D…
downscaleImagesbooleanWhether to downscale and optimize embedded images. Defaults to false for low and true for medium/high
downscaleImagesDpiintegerTarget DPI for embedded image downscaling (e.g. 150 or 72). Defaults to 150 for medium and 72 for high
imageQualitynumberJPEG compression quality (0.1 to 1.0) when optimizing embedded images (default: 0.82)
preserveMetadatabooleanWhether to retain document metadata (author, title, etc). Defaults to true for low/medium and false for high
stripAnnotationsbooleanWhether to remove annotations and comments. Defaults to false for low/medium and true for high

pdflince_pdf_to_images

Renders pages of a local PDF file into PNG or JPEG images at a configurable DPI (72, 144, 300) and quality, with optional ZIP bundling.

ParameterTypeDescription
filePath *stringPath to the source PDF file to convert into images
outputDirectory *stringDirectory where the rendered page images (and optional ZIP archive) will be saved
bundleAsZipbooleanWhether to also bundle all exported images into a .zip archive in outputDirectory
dpiintegerRender resolution in DPI (UI presets: 72 for screen, 144 for standard, 300 for print; default: 144)
formatstringOutput image format: png (lossless) or jpeg (smaller file size). Default: png
outputPrefixstringCustom file name prefix for the exported image files (defaults to source filename without extension)
pagesPages to render (e.g. "1-3, 5", [1, 2, 3], or "all"). Defaults to all pages
qualitynumberJPEG quality from 0.1 to 1.0 when format is jpeg (default: 0.9)

pdflince_images_to_pdf

Converts local image files (PNG, JPG/JPEG, WebP, TIFF) into a formatted PDF document with customizable fit, page size, orientation, margins, and background color.

ParameterTypeDescription
imagePaths *arrayList of image file paths (PNG, JPEG/JPG, WebP, TIFF/TIF) to convert into a PDF
outputPath *stringDestination file path where the generated PDF will be saved
backgroundColorstringBackground color in hex format (e.g. #ffffff)
imageFitstringHow the image should fit on the page: contain (preserves aspect ratio) or cover (fills entire page)
pageMarginPointsnumberPage margin in points (default: 18 pt)
pageOrientationstringPage orientation: auto (calculated from image dimensions), portrait, or landscape
pageSizestringPage size: auto (matches image dimensions), a4, or letter