pdflince-mcp
v1.1.1Privacy-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).
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Absolute 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.
| Parameter | Type | Description |
|---|---|---|
filePaths * | array | List of file paths of PDFs to merge in order |
outputPath * | string | Destination file path where the merged PDF will be saved |
addPageDividers | boolean | Whether to insert blank divider pages between merged documents |
metadata | object | Custom 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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Path to the PDF file to split |
outputDirectory * | string | Directory where the split PDF chunks will be saved |
bundleAsZip | boolean | Whether to also bundle all split PDF files into a .zip archive in outputDirectory |
outputPrefix | string | Custom file name prefix for the generated chunks (defaults to original filename without extension) |
pagesPerFile | integer | Number of pages per split file (default: 1, which extracts every page) |
preserveMetadata | boolean | Whether 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").
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Path to the source PDF file |
outputPath * | string | Destination 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]) | |
preserveMetadata | boolean | Whether 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]).
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Path to the source PDF file |
outputPath * | string | Destination path where the reordered PDF will be saved |
pageOrder * | array | Desired page order as an array of 1-indexed page numbers (e.g. [3, 1, 2]) |
preserveMetadata | boolean | Whether 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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Path to the source PDF file |
outputPath * | string | Destination path where the rotated PDF will be saved |
pages | Pages to rotate (e.g. "1, 3" or [1, 3] or "all"). If omitted, all pages are rotated | |
preserveMetadata | boolean | Whether to retain document metadata in the rotated PDF |
rotationDegrees | Degrees 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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Path to the PDF file to crop |
margins * | object | Margin values in points to crop from each page edge |
outputPath * | string | Destination path where the cropped PDF will be saved |
pages | Pages to crop (e.g. "1-2" or [1, 2] or "all"). If omitted, all pages are cropped | |
preserveMetadata | boolean | Whether 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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Path to the source PDF file to compress |
outputPath * | string | Destination path where the compressed PDF will be saved |
compressionLevel | string | Compression 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… |
downscaleImages | boolean | Whether to downscale and optimize embedded images. Defaults to false for low and true for medium/high |
downscaleImagesDpi | integer | Target DPI for embedded image downscaling (e.g. 150 or 72). Defaults to 150 for medium and 72 for high |
imageQuality | number | JPEG compression quality (0.1 to 1.0) when optimizing embedded images (default: 0.82) |
preserveMetadata | boolean | Whether to retain document metadata (author, title, etc). Defaults to true for low/medium and false for high |
stripAnnotations | boolean | Whether 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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Path to the source PDF file to convert into images |
outputDirectory * | string | Directory where the rendered page images (and optional ZIP archive) will be saved |
bundleAsZip | boolean | Whether to also bundle all exported images into a .zip archive in outputDirectory |
dpi | integer | Render resolution in DPI (UI presets: 72 for screen, 144 for standard, 300 for print; default: 144) |
format | string | Output image format: png (lossless) or jpeg (smaller file size). Default: png |
outputPrefix | string | Custom file name prefix for the exported image files (defaults to source filename without extension) |
pages | Pages to render (e.g. "1-3, 5", [1, 2, 3], or "all"). Defaults to all pages | |
quality | number | JPEG 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.
| Parameter | Type | Description |
|---|---|---|
imagePaths * | array | List of image file paths (PNG, JPEG/JPG, WebP, TIFF/TIF) to convert into a PDF |
outputPath * | string | Destination file path where the generated PDF will be saved |
backgroundColor | string | Background color in hex format (e.g. #ffffff) |
imageFit | string | How the image should fit on the page: contain (preserves aspect ratio) or cover (fills entire page) |
pageMarginPoints | number | Page margin in points (default: 18 pt) |
pageOrientation | string | Page orientation: auto (calculated from image dimensions), portrait, or landscape |
pageSize | string | Page size: auto (matches image dimensions), a4, or letter |