lightpdf-aipdf-mcp

v0.1.187
lightpdf-aipdf-mcp Checked 1 day ago Published 2 days ago

MCP Server for LightPDF AI-PDF

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

convert_document Convert Document

Document format conversion tool supporting various file formats including PDFs, Office documents, images, and text files. **FROM PDF - Supported output formats when converting from PDF:** - Documents: DOCX/DOC, XLSX/XLS, PPTX/PPT, HTML, TXT, CSV, MD (Markdown), RTF, TEX (LaTeX), ODT, EPUB, AZW3 (Kindle eBook) - Images: JPG, JPEG, PNG, GIF, BMP, WMF, EMF, TIFF/TIF, SVG - Archival: PDF/A (use format='pdfa' or 'pdf/a') **TO PDF - Supported input formats that can be converted to PDF:** - Documents: DOC/DOCX, XLS/XLSX, PPT/PPTX, HTML/HTM, TXT, MD, RTF, ODT, TEX (LaTeX), AZW3 (Kindle eBook) - Imag…

ParameterTypeDescription
files *arrayList of files to convert, each containing path and optional password
format *stringTarget output format. NOTE: supported conversions depend on input file type (by extension). Direct image-to-image conversions are NOT generally supported (e.g. PNG↔JPG/JPEG will fail), except: HEICâ…
has_formulabooleanIndicates if the source PDF contains mathematical formulas. When set to true, applies formula-aware conversion optimization. Only effective when converting PDF to Word (docx) or PowerPoint (pptx) form…
image_qualityImage quality setting (0-200). Higher values = better quality but larger file size. Only effective when converting PDF to image formats (jpg, jpeg, png, gif, bmp, wmf, emf, tiff, tif, svg). If not spe…
merge_allintegerSpecial merge option (0 or 1). Only effective in specific scenarios: PDF→Image (1=merge all pages into one long image), Image→PDF (1=merge all images into single PDF), PDF→Excel (1=merge all pag…
one_page_per_sheetbooleanOnly effective when converting Excel to PDF. If true, each sheet fits into single PDF page
pdfa_formatOnly effective when format is 'pdfa' (or 'pdf/a'). PDF/A profile selector (0-7). Mapping: 0=pdf/a-1a, 1=pdf/a-1b, 2=pdf/a-2a, 3=pdf/a-3a, 4=pdf/a-2b, 5=pdf/a-2u, 6=pdf/a-3b, 7=pdf/a-3u

add_page_numbers Add Page Numbers

Add sequential page numbers to PDF documents. This tool automatically adds page numbers to each page of the PDF at the specified position with customizable starting number, position, and margin. Use cases: - When submitting academic papers or legal documents that require numbered pages for reference - When preparing multi-section reports where readers need to navigate between different parts - When printing large documents that may get mixed up and need proper ordering - When creating training manuals or handbooks where page citations are essential Note: This adds new page numbers to the doc…

ParameterTypeDescription
files *arrayList of PDF files to add page numbers to
marginintegerPage number margin distance from page edges in points (pt). Options: 10=close, 30=medium, 60=far
positionstringPage number position: 1(top-left), 2(top-center), 3(top-right), 4(bottom-left), 5(bottom-center), 6(bottom-right)
start_numintegerStarting page number

remove_watermark Remove Watermark

Remove watermarks from PDF files. This tool uses specialized algorithms to detect and remove overlay elements such as text or image watermarks. Use cases: - When you need to remove "DRAFT", "SAMPLE", or company watermarks before sharing documents - When reusing templates or documents that contain outdated branding or watermarks - When preparing clean versions of documents for professional presentation or redistribution - When processing scanned documents that have unwanted background text or stamps Note: This is specifically for watermarks and overlay elements, not regular document text. For…

ParameterTypeDescription
files *arrayList of PDF files to remove watermarks from

compress_pdf Compress Pdf

Reduce PDF file size by optimizing images and removing redundant data. This tool compresses PDF files to make them smaller for easier sharing, faster uploading, and reduced storage usage. Use cases: - When email systems reject your PDF attachments due to size limits (typically 25MB or less) - When uploading documents to online platforms with strict file size restrictions - When sending documents to clients in regions with slow internet connections - When storing large volumes of documents on limited server space or cloud storage Note: Compression is lossy for images but lossless for text.…

ParameterTypeDescription
files *arrayList of PDF files to compress
image_quantityintegerImage quality, 1-100, lower values result in higher compression

merge_pdfs Merge Pdfs

Merge multiple PDF files into a single PDF file. You must provide at least two files in the 'files' array, otherwise the operation will fail. Use cases: - When combining multiple documents for email sharing or easier file management - When collecting reports from different departments for a unified presentation - When consolidating invoices, receipts, or contracts for accounting or record keeping - When creating project portfolios or complete documentation packages

ParameterTypeDescription
files *arrayList of PDF files to merge (must be at least two)

package_files Package Files

Package multiple output files into a single ZIP file and return one download URL. Use this when a workflow generates multiple files and you want to deliver a single zip to the user. Note: If FileObject.name is provided, it will be used to set custom filenames inside the zip (custom_filenames).

ParameterTypeDescription
files *arrayList of files to package into a single zip (must be at least two)
filenameOptional zip filename, e.g. 'packaged'

remove_image_watermark Remove Image Watermark

Remove watermarks from images. This tool removes common overlay elements such as text watermarks, stamps, or unwanted marks from pictures. Use cases: - When you need to clean product photos or social media images before publishing - When removing "SAMPLE", "DRAFT", or branding overlays from images - When preparing images for presentations, documentation, or printing - When cleaning scanned photos that contain stamps or overlaid marks Note: This is for removing watermark-like overlays. For PDF watermark removal, use remove_watermark instead.

ParameterTypeDescription
files *arrayList of image files to remove watermarks from

remove_image_sticker Remove Image Sticker

Remove stickers from images. Use cases: - When cleaning photos with emojis, stickers, or decorative overlays - When restoring a clean version for printing or archiving - When preparing product images that contain promotional stickers Note: Large stickers that cover key details may not be fully restorable.

ParameterTypeDescription
files *arrayList of image files to remove stickers from

remove_image_text Remove Image Text

Remove text from images. Use cases: - When removing captions, subtitles, or embedded text from screenshots - When cleaning scanned documents or photos that contain unwanted labels - When preparing images for reuse without annotations Note: If text overlaps complex backgrounds, results may vary.

ParameterTypeDescription
files *arrayList of image files to remove text from

add_text_watermark Add Text Watermark

Add custom text watermarks to PDF documents for branding, copyright protection, or document identification. This tool overlays text on PDF pages with full control over appearance and positioning. Use cases: - When adding company branding or contact information to everyday business documents - When marking documents with "DRAFT", "CONFIDENTIAL", or copyright notices for sharing - When adding tracking identifiers or version numbers for document management - When branding presentation materials or reports before client meetings Note: This adds visible text overlays to the document. For invisibl…

ParameterTypeDescription
files *arrayList of PDF files to add text watermarks to
text *stringWatermark text content
font_colorFont color, e.g. '#ff0000' for red
font_familyFont family name, e.g. 'Arial', 'Times New Roman', 'Helvetica'. If not specified, uses system default
font_sizeFont size in points (pt), e.g. 12, 18, 24. If not specified, uses automatic sizing
layoutstringLayout position: on top of content(on) or under content(under)
opacitynumberOpacity, 0.0-1.0
positionstringText watermark position
rangestringPage range to apply watermark. Format: '1,3,5-7' for specific pages, '1-10' for range, or empty string for all pages

add_image_watermark Add Image Watermark

Add image watermarks (logos, stamps, signatures) to PDF documents for professional branding or document authentication. This tool overlays images on PDF pages with precise positioning and transparency control. Use cases: - When branding company documents with logos before sending to external clients or partners - When adding official seals or stamps to certificates, licenses, or formal approvals - When inserting signature images to authorize documents without physical signing - When marking quality control documents with inspection badges or compliance stamps Note: Image must be accessible v…

ParameterTypeDescription
files *arrayList of PDF files to add image watermarks to
image_url *stringComplete URL of the watermark image. Must include protocol (http:// or https://). Supports common formats: JPG, PNG, GIF, BMP, SVG
layoutstringLayout position: on top of content(on) or under content(under)
opacitynumberOpacity, 0.0-1.0
positionstringImage watermark position
rangestringPage range to apply watermark. Format: '1,3,5-7' for specific pages, '1-10' for range, or empty string for all pages

unlock_pdf Unlock Pdf

Remove password protection from PDF files to make them freely accessible. This tool decrypts password-protected PDFs. Use cases: - When you need to access your own password-protected files but frequently forget the passwords - When archiving old company documents that have various passwords from different periods - When integrating protected PDFs into automated systems that cannot handle password prompts - When consolidating documents from multiple sources that each require different access credentials Note: Only use this tool on documents you own or have explicit permission to unlock. Origi…

ParameterTypeDescription
files *arrayList of PDF files to decrypt, each must contain password

protect_pdf Protect Pdf

Add password protection to PDF files. This sets a user password required to open and view the PDF document. Use cases: - When sharing sensitive business documents or reports that require access control - When sending confidential files via email to prevent unauthorized viewing - When distributing internal HR documents or employee information within the organization - When complying with industry regulations that require password protection for certain document types Note: This is different from restrict_printing which allows viewing but restricts specific actions like printing. Use protect_p…

ParameterTypeDescription
files *arrayList of PDF files to encrypt
password *stringNew password to set

split_pdf Split Pdf

Split PDF documents to extract specific pages or page ranges. You can split by individual pages, page ranges, or document bookmarks. Use cases: - When you need to share only specific pages from a large document via email - When creating samples or previews from larger documents for clients or colleagues - When removing confidential sections before sharing documents externally - When organizing documents by extracting relevant sections for different purposes Note: This extracts and keeps specified pages. For permanently removing unwanted pages from the original document, use delete_pdf_pages…

ParameterTypeDescription
files *arrayList of PDF files to split
split_type *stringSplit type: 'every' (split each page into a separate file), 'page' (split by page ranges), or 'bookmark' (split by PDF bookmarks/outlines/table of contents/headings)
merge_allintegerWhether to merge results into a single PDF file: 1=yes, 0=no (will return a zip package of multiple files). Only valid when split_type is 'page'
pagesstringPage ranges to extract when split_type='page'. Format: '1,3,5-7' for specific pages, '1-10' for range. Leave empty for all pages. Required and only valid when split_type is 'page'

rotate_pdf Rotate Pdf

Rotate PDF pages by specified angles to correct orientation or adjust viewing angle. Simple usage: Just provide angle (90/180/270/-90) and pages ('all' or '1-3') parameters. Advanced usage: Use rotates parameter for applying different rotations to different page ranges. Use cases: - When you receive scanned documents where some pages are sideways or upside down - When combining documents with mixed orientations that need to be standardized - When preparing documents for specific printing or viewing requirements - When fixing scanning errors where pages were fed incorrectly into the scanner…

ParameterTypeDescription
files *arrayList of PDF files to rotate
angleintegerRotation angle in degrees. 90=clockwise 90°, -90=counter-clockwise 90°, 180=flip upside down, 270=counter-clockwise 90° (same as -90)
pagesstringPage range to rotate. Use 'all' for all pages, or specify like '1-3', '1,3,5'
rotatesAdvanced option: List of rotation operations for different page ranges. If provided, overrides angle/pages parameters. Each dict must contain: {'angle': 90|180|270|-90, 'pages': 'all'|'1-3'|...}. Exam…

translate_pdf Translate Pdf

Translate only the text in a PDF file into a specified target language and output a new PDF file. All non-text elements (such as images, tables, and layout) will remain unchanged. Use cases: - When expanding business to international markets and need localized documentation - When submitting research papers to foreign journals or conferences - When collaborating with overseas partners who require documents in their native language - When complying with local regulations that mandate documents in specific languages

ParameterTypeDescription
files *arrayList of PDF files to translate
target *stringTarget language. Must be specified
output_typestringOutput type: 'mono' for target language only, 'dual' for source/target bilingual output
sourcestringSource language. Supports 'auto' for automatic detection

ocr_document Ocr Document

Perform OCR (Optical Character Recognition) on documents and images to recognize and extract text into various output formats. Supported input file types: - Documents: PDF, PPT, PPTX, XLS, XLSX, DOC, DOCX - Images: JPEG, JPG, PNG, GIF, BMP Supported output formats: - Documents: PDF, DOCX, PPTX, XLSX - Plain Text: TXT Use cases: - When you receive scanned documents whose text needs to be recognized or copied into an editable output - When converting image-based PDFs to searchable and editable text documents - When processing printed receipts, invoices, or forms for digital record keeping - W…

ParameterTypeDescription
files *arrayList of files to be recognized. Supports: PDF, PPT, PPTX, XLS, XLSX, DOC, DOCX, JPEG, JPG, PNG, GIF, BMP
formatstringOutput format, supports pdf/docx/pptx/xlsx/txt, default is pdf
languagestringLanguages/types to recognize, separated by commas. Available options include: English, ChinesePRC, ChineseTraditional, Japanese, Korean, French, German, Spanish, Portuguese, Russian, Arabic, Digits, S…

summarize_document Summarize Document

Summarize the content of documents and generate a concise abstract based on the user's prompt. The tool extracts and condenses the main ideas or information from the document(s) according to the user's requirements. Use cases: - When you need quick overviews of lengthy reports or documents for meetings or reviews - When creating executive summaries from detailed business reports or proposals - When processing multiple documents and need to extract key information quickly - When preparing meeting agendas or abstracts based on extensive documentation

ParameterTypeDescription
files *arrayList of files to summarize
language *stringThe language in which the summary should be generated
prompt *stringUser's requirement or instruction for the summary

create_pdf Create Pdf

Generate PDF documents from text-only instructions or descriptions. The tool creates PDFs based on written prompts such as 'create a business report', 'generate meeting minutes', etc. Only accepts plain text input - no file uploads or multimedia content supported. Use cases: - When you need to quickly create professional documents like reports, proposals, or letters - When generating meeting minutes, project plans, or business documentation from written notes - When creating standardized documents or templates for repeated business use - When producing training materials or documentation base…

ParameterTypeDescription
filename *stringThe filename for the generated PDF
language *stringThe language for the generated PDF content
prompt *stringA text-only description or instruction of what PDF content to generate
enable_web_searchbooleanWhether to enable web search to gather additional information for content generation
is_long_text_modebooleanWhether to generate long-form content (longer, more detailed document)
use_advanced_modelbooleanWhether to use advanced AI model for higher quality content generation. Advanced model produces better results but may take longer

create_word Create Word

Generate editable Word documents from text descriptions. This tool creates DOCX files with structured content, formatting, and layouts based on your written instructions. Use cases: - When you need collaborative documents that team members can edit and comment on - When creating document templates that will be customized for different clients or projects - When producing draft documents that require extensive revision and track changes - When generating structured documents with complex formatting for further development

ParameterTypeDescription
filename *stringThe filename for the generated Word document
language *stringThe language for the generated Word document content
prompt *stringA text-only description or instruction of what Word document content to generate
enable_web_searchbooleanWhether to enable web search to gather additional information for content generation
use_advanced_modelbooleanWhether to use advanced AI model for higher quality content generation. Advanced model produces better results but may take longer

create_excel Create Excel

Generate Excel spreadsheets with data tables, formulas, and charts from text descriptions. This tool creates XLSX files optimized for data analysis and calculations. Use cases: - When you need data analysis spreadsheets with formulas and calculations for financial modeling - When creating inventory tracking systems or budget templates from written specifications - When generating charts and graphs for presentations based on data requirements - When producing automated calculation templates for recurring business processes

ParameterTypeDescription
filename *stringThe filename for the generated Excel document
language *stringThe language for the generated Excel document content
prompt *stringA text-only description or instruction of what Excel document content to generate
enable_web_searchbooleanWhether to enable web search to gather additional information for content generation
use_advanced_modelbooleanWhether to use advanced AI model for higher quality content generation. Advanced model produces better results but may take longer

remove_margin Remove Margin

Remove white margins and empty spaces from PDF pages by automatically cropping to content boundaries. This tool intelligently detects and removes unnecessary white space around the actual document content. Use cases: - When scanned documents have excessive white borders that waste screen space on mobile devices - When preparing documents for printing on different paper sizes to maximize content area - When optimizing PDFs for e-readers or tablets where screen real estate is limited - When reducing file sizes by eliminating unnecessary white space around content Note: This tool crops white sp…

ParameterTypeDescription
files *arrayList of PDF files to remove margins from

extract_images Extract Images

Extract embedded image resources from PDF files. This tool finds and extracts actual image files (photos, logos, graphics) that are embedded within the PDF document, saving them as separate image files. Use cases: - When updating websites or marketing materials and need to extract logos or graphics from PDFs - When building presentations and need to reuse images, charts, or diagrams from existing documents - When creating marketing materials and need product photos or graphics from PDF catalogs - When preparing reports and need to extract specific images or charts from source documents Note:…

ParameterTypeDescription
files *arrayList of PDF files to extract images from
formatstringExtracted image format

flatten_pdf Flatten Pdf

Flatten PDF files (convert editable elements such as form fields, annotations, and layers into non-editable static content). This preserves the visual appearance while making interactive elements non-functional. Use cases: - When finalizing contract forms that should no longer be editable after completion - When archiving interactive documents where form functionality is no longer needed - When preparing PDFs for printing systems that don't handle form fields properly - When securing documents by preventing further modifications to interactive elements Note: For converting text characters to…

ParameterTypeDescription
files *arrayList of PDF files to flatten

repair_pdf Repair Pdf

Repair corrupted or damaged PDF files to restore readability and functionality. Use cases: - When important documents become corrupted during file transfer or storage system failures - When legacy PDFs from old systems no longer open in modern PDF viewers - When recovering critical business documents from damaged storage media - When fixing PDFs that display incorrectly due to missing fonts or broken formatting Note: This tool attempts to fix structural corruption and basic display issues. It cannot recover completely destroyed content or fix complex formatting problems. For removing unwante…

ParameterTypeDescription
files *arrayList of PDF files to repair

curve_pdf Curve Pdf

Convert PDF text characters to vector curves (outlines), making text unselectable and unsearchable while maintaining exact visual appearance. This is commonly used for font protection and preventing text extraction. Use cases: - When sending design files to printing companies that require font outlines for accurate reproduction - When protecting proprietary fonts from being extracted or copied by competitors - When creating final artwork files where text should not be accidentally edited - When preparing documents for professional publication where font licensing is a concern Note: This spec…

ParameterTypeDescription
files *arrayList of PDF files to convert to curves

double_layer_pdf Double Layer Pdf

Convert scanned PDF to double-layer PDF, adding a text layer beneath the original image while preserving exact visual appearance. This makes scanned documents searchable and selectable without changing how they look. Use cases: - When digitizing historical documents for archives that need to be searchable but preserve original appearance - When processing scanned contracts or legal documents that must remain visually identical but searchable - When creating accessible versions of image-based PDFs for screen readers and search engines - When building digital libraries where scanned books need…

ParameterTypeDescription
files *arrayList of PDF files to convert to double layer
language *stringLanguage of the text in the document using ISO 639-1 standard language codes (e.g., 'en' for English, 'zh' for Chinese, 'ja' for Japanese, 'es' for Spanish)

delete_pdf_pages Delete Pdf Pages

Delete unwanted pages from PDF files. Use this when you want to permanently remove specific pages from the document. Use cases: - When scanned documents contain blank pages that waste storage space and confuse readers - When removing confidential sections from reports before sharing with external parties - When cleaning up multi-page documents that have duplicate or error pages from scanning - When preparing documents for printing where certain pages should not be included Note: This is different from split_pdf which extracts and keeps wanted pages. Use delete_pdf_pages when you know which p…

ParameterTypeDescription
files *arrayList of PDF files to delete pages from
range *stringPage range to delete. Format: '1,3,5-7' for specific pages and ranges, '1-10' for continuous range, '5' for single page

restrict_printing Restrict Printing

Restrict PDF printing permissions while allowing viewing. This sets an owner password that prevents users from printing the document. Use cases: - When sharing copyrighted training materials that should be viewed but not printed for distribution - When sending confidential business plans for review where hard copies pose security risks - When distributing digital-only content that loses value if printed and shared physically - When complying with licensing agreements that restrict printing of certain materials Note: This is different from protect_pdf which requires a password to open the doc…

ParameterTypeDescription
files *arrayList of PDF files to restrict printing
password *stringNew permission password to set

resize_pdf Resize Pdf

Resize PDF pages. You can specify the target page size (a0/a1/a2/a3/a4/a5/a6/letter) and/or the image resolution (dpi, e.g., 72). If not set, the corresponding property will not be changed. Use cases: - When preparing documents for printing on specific paper sizes required by clients or printers - When optimizing PDFs for mobile viewing by adjusting page dimensions and image quality - When meeting publication requirements that specify exact page dimensions or resolution - When standardizing document collections that have mixed page sizes from different sources Note: This changes the actual p…

ParameterTypeDescription
files *arrayList of PDF files to resize
page_sizeTarget page size. Standard sizes: 'a0', 'a1', 'a2', 'a3', 'a4', 'a5', 'a6', 'letter', 'legal', 'tabloid'. Custom size: 'width,height' in points (e.g., '595,842' for A4). If not set, page size will not…
resolutionImage resolution (dpi), e.g., 72. If not set, resolution will not be changed

replace_text Replace Text

Replace, edit, or delete native PDF text objects in ordinary PDF files. Use this tool only when the target is confirmed to be native text and the source/replacement are known; it preserves editable text. Do not use it for visible text inside scanned/page images, even if OCR makes that text searchable. This server currently has no tool for editing visible content inside scanned/page images. When new_text is empty, the specified text will be permanently deleted. Use cases: - When correcting typos, dates, or contact information in existing documents - When updating company names, addresses, or o…

ParameterTypeDescription
files *arrayPDF files containing native text objects to replace. Use only when the target is confirmed to be native PDF text. If the file is scanned or its content type is unclear, this tool cannot edit it safely…
new_text *stringThe replacement text. If empty, the old_text will be deleted
old_text *stringThe text to be replaced or deleted

extract_pdf_tables Extract Pdf Tables

Extract all tables from PDF files and convert them to Excel format. This tool identifies table structures within PDF documents and converts them to structured Excel spreadsheets, preserving the original table layout and data. Use cases: - When analyzing financial reports where data needs to be processed in spreadsheet applications - When converting research paper tables into editable format for meta-analysis or data compilation - When processing invoices or receipts where tabular data needs to be imported into accounting systems - When extracting survey results or form data from PDFs for stat…

ParameterTypeDescription
files *arrayList of PDF files to extract tables from