mcp
v0.2.0MCP 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.
| Parameter | Type | Description |
|---|---|---|
category | string | Same as group |
format | string | json returns the same objects as `pdfx list --json`. Default: text lines |
group | string | One of: organize, convert, edit, security, advanced, analysis, filter, forms, attachments |
query | string | Words 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.
| Parameter | Type | Description |
|---|---|---|
tool * | string | Tool 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…
| Parameter | Type | Description |
|---|---|---|
tool * | string | Tool id, e.g. merge; see pdf123_list_tools |
concurrency | integer | How many files of a batch run at once (default 2) |
files | array | Input file paths (absolute, or relative to the server's working directory), in order |
idempotencyKey | string | Replay the first result for 24h instead of running again. A batch sends <key>:<index> for each file |
input_password | string | Password that opens every encrypted input PDF (for the unlock tool, use params.password) |
output | string | File or directory for the result (a directory for a batch, ending in /). Default: next to the first input file |
params | object | Tool 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-… |
passwords | array | Per-file passwords, parallel to files (empty string for an unencrypted file). Falls back to input_password |
timeoutMs | integer | Per-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.
| Parameter | Type | Description |
|---|---|---|
files * | array | Input file paths, in order |
steps * | array | |
idempotencyKey | string | Replay the first result for 24h instead of running again |
input_password | string | Password that opens every encrypted input PDF |
output | string | File or directory for the result. Default: next to the first input file |
passwords | array | Per-file passwords, parallel to files (empty string for an unencrypted file). Each protected file is unlocked separately first |
timeoutMs | integer | Per-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).
| Parameter | Type | Description |
|---|---|---|
target * | string | |
fields | object | Form fields by name |
files | Input file paths for the fileInput part, or an object of multipart field name to path(s) | |
idempotencyKey | string | |
output | string | File or directory for the result. Default: next to the first input file |
timeoutMs | integer |