mcp

v0.2.0
@pdf123/mcp Checked 1 day ago Published 1 month ago

MCP server for PDF123: lets Claude, Cursor and other AI agents merge, split, compress, convert and OCR local PDF files (97 tools)

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

pdf123_list_tools List PDF tools

List the PDF123 tools, one line each: id, group, whether it returns a file or a JSON report, how many input files it takes (1, 1+, 2+), and notes such as filter tools whose no-match result is not an error. Narrow it with group (a category: organize, convert, edit, security, advanced; or a finer group: analysis, filter, forms, attachments) and/or query (words matched against id, name and description). Call pdf123_describe_tool for a tool's fields before running it.

ParameterTypeDescription
categorystringSame as group
formatstringjson returns the same objects as `pdfx list --json`. Default: text lines
groupstringOne of: organize, convert, edit, security, advanced, analysis, filter, forms, attachments
querystringWords that must all appear in the tool's id, name or description, e.g. 'ocr' or 'page number'

pdf123_describe_tool Describe a PDF tool

Show a PDF123 tool's inputs and fields (names, defaults, allowed values, page-selection format, ranges, whether it runs as a batch) so pdf123_run_tool gets valid params.

ParameterTypeDescription
tool *stringTool id, e.g. merge; see pdf123_list_tools

pdf123_run_tool Run a PDF tool

Run one PDF123 tool on local files. The files are uploaded to the PDF123 API (or PDFX_API_BASE), processed, and deleted there; the result is saved locally and its path returned. JSON reports (e.g. get-info) are returned inline. Several files with a single-file tool (compress, rotate, protect, convert, ...) run as a batch: one result per file, saved as each finishes, and one file failing does not stop the others (a batch with any failure comes back as an error with the per-file report attached). A batch of a JSON-report tool returns the reports inline, keyed by input, and writes files only when…

ParameterTypeDescription
tool *stringTool id, e.g. merge; see pdf123_list_tools
concurrencyintegerHow many files of a batch run at once (default 2)
filesarrayInput file paths (absolute, or relative to the server's working directory), in order
idempotencyKeystringReplay the first result for 24h instead of running again. A batch sends <key>:<index> for each file
input_passwordstringPassword that opens every encrypted input PDF (for the unlock tool, use params.password)
outputstringFile or directory for the result (a directory for a batch, ending in /). Default: next to the first input file
paramsobjectTool fields by name (strings, numbers or booleans); file fields take paths. Omit a field or pass an empty string to use its default; an empty string also clears the optional metadata fields of update-…
passwordsarrayPer-file passwords, parallel to files (empty string for an unencrypted file). Falls back to input_password
timeoutMsintegerPer-request timeout in milliseconds (default 300000)

pdf123_server_status Show the server's status and limits

Show which PDF123 server this is talking to: its version, the largest upload (one request, and chunked), how many pages one OCR request may recognize, the installed OCR languages, and the operations that are switched off because a program they need is missing (self-hosted servers). Call it before a large upload or an OCR job.

pdf123_run_pipeline Run a PDF pipeline

Run up to 8 PDF123 tools in one request, each step's output feeding the next (e.g. merge, then watermark, then compress). Steps cannot use tools that need a second file.

ParameterTypeDescription
files *arrayInput file paths, in order
steps *array
idempotencyKeystringReplay the first result for 24h instead of running again
input_passwordstringPassword that opens every encrypted input PDF
outputstringFile or directory for the result. Default: next to the first input file
passwordsarrayPer-file passwords, parallel to files (empty string for an unencrypted file). Each protected file is unlocked separately first
timeoutMsintegerPer-request timeout in milliseconds (default 300000)

pdf123_call Call any PDF endpoint

Send a raw request to any PDF123 endpoint without the tool catalog, for operations newer than this server. target is a tool id, an operation id such as general/merge-pdfs, or an /api/... path. Fields are sent as-is (no validation, no defaults).

ParameterTypeDescription
target *string
fieldsobjectForm fields by name
filesInput file paths for the fileInput part, or an object of multipart field name to path(s)
idempotencyKeystring
outputstringFile or directory for the result. Default: next to the first input file
timeoutMsinteger