API & MCP
Everything a person can do on PDF Merge, Split & Reorder, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://pdfmergesplitreorder.usefulweb.site/api/v1/calculate– run PDF Merge, Split & ReorderGET https://pdfmergesplitreorder.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
PDF Merge, Split & Reorder
Combines several PDFs into one in the order you choose, splits a PDF every N pages or by page ranges (download as a ZIP), and rearranges pages with a simple page syntax such as "1-3,5,8-end", "odd" or "reverse". Shows page counts before and after and a preview of the first page.
| Field | Type | Default | Description |
|---|---|---|---|
mode | select (merge, split-every, split-ranges, pages, remove, rotate) | "merge" | What to do |
file (required) | file | — | PDF. Max 100 MB in total. |
file2 | file | — | PDF 2 (merge only). Optional additional PDF for merging. |
file3 | file | — | PDF 3 (merge only). Optional additional PDF for merging. |
file4 | file | — | PDF 4 (merge only). Optional additional PDF for merging. |
file5 | file | — | PDF 5 (merge only). Optional additional PDF for merging. |
zip | file | — | ZIP with more PDFs (merge only). Optional: up to 25 PDFs in total, added after the single files in file-name order. |
order | text | — | File order (merge). Numbers of the files in the order to merge, e.g. "2,1,3". Files not listed follow in upload order. Empty = upload order. |
pages | text | — | Pages. For select/reorder, remove and rotate. Page numbers start at 1. Examples: "1-3,5,8-end", "odd", "even", "reverse", "10-1" (descending), "1-9:odd". Leave empty for all pages. For select/reorder, repeated pages are duplicated. |
everyN | integer | 1 | Pages per part (split every N pages) |
ranges | textarea | — | Ranges (split by ranges). One part per range, separated by ";" or new lines. Each range uses the page syntax above. |
angle | select (90, 180, 270) | "90" | Rotation (clockwise) |
password | text | — | PDF password (only if the file is protected). Used only to open the file for this conversion; it is written to a private temporary file, never to a command line, and deleted with the job. |
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://pdfmergesplitreorder.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
pdf_merge_split_reorder - Local stdio connector:
node src/mcp-stdio.ts --tool=pdf-merge-split-reorder
{
"mcpServers": {
"pdf-merge-split-reorder": { "type": "http", "url": "https://pdfmergesplitreorder.usefulweb.site/mcp" }
}
}