pdf-tools-mcp-server

v1.0.48
@mcp-apps/pdf-tools-mcp-server Checked 1 day ago Published 2 months ago

MCP server for interacting with PDF documents

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

extract_text

This tool extracts text content from a PDF document. The result is a JSON array containing the extracted text from each page, with page numbers. Each page's text is represented as a separate object with 'page' number and 'text' content. Inputs: - filePath: Path to the PDF file or file:// URL - pageNumbers (optional): Array of specific page numbers to extract text from (1-based indexing) If pageNumbers is not provided, the tool extracts text from all pages in the document. Note: For extracting tables, use the 'extract_tables' tool. Note: For getting document metadata,…

ParameterTypeDescription
filePath *stringThe path to the PDF file or file:// URL
pageNumbersarraySpecific page numbers to extract text from (1-based indexing)

fill_pdf_form

This tool fills form fields in a PDF document. It can set text values for form fields, check/uncheck checkboxes, and select radio buttons. Inputs: - inputFilePath: Path to the input PDF file or file:// URL - outputFilePath: Path where the filled PDF will be saved - formFields: Object containing field names as keys and field values as values Example formFields: { "name": "John Doe", "email": "john@example.com", "agreeToTerms": true, "selectedOption": "Option B" } The tool returns information about which fields were successfully filled and any fields…

ParameterTypeDescription
formFields *objectObject containing field names and values to fill in the form
inputFilePath *stringThe path to the input PDF form file or file:// URL
outputFilePath *stringThe path where the filled PDF form will be saved

get_pdf_form_elements

This tool finds all form elements in a PDF document and returns their names and types. It can identify text fields, checkboxes, radio buttons, dropdown menus, and option lists. Inputs: - filePath: Path to the PDF file or file:// URL The tool returns information about all form elements found in the PDF including: - Name of each form element - Type of each form element (TextField, CheckBox, RadioGroup, Dropdown, OptionList) - Additional properties when available (like options for dropdowns and radio groups) Note: This tool only works with PDF forms that have defined form…

ParameterTypeDescription
filePath *stringThe path to the PDF form file or file:// URL