How to merge and split PDF files with Claude MCP and Medux

Use Claude and Medux through MCP to merge source PDFs, then extract the required pages into a final document. This guide keeps file roles and constraints in context, reviews the proposed call, and validates the returned result.

Start with one plain-English instruction in Claude.
Start with one plain-English instruction in Claude.

Claude-specific workflow

Run Merge and Split PDF Files as a Claude MCP workflow

Keep the goal, source assets, and constraints together in the conversation. Ask Claude to restate the source PDF files, merge order, and exact pages to extract before proposing the Medux PDF merge and split tools. That context checkpoint makes the file roles and desired outcome easy to correct before any Medux call is approved.

Claude prompt pattern

Using the assets and requirements in this conversation, help me merge and split PDF files with Medux MCP.
Restate which input fulfills each role: the source PDF files, merge order, and exact pages to extract.
Propose the the Medux PDF merge and split tools call and summarize its arguments before asking for approval.
When it finishes, return the final edited PDF with a checklist confirming that the final PDF opens and contains the intended pages in the correct order.

Context checkpoint

Have Claude summarize the intended transformation, identify every source asset by role, and list the important constraints. Review that summary together with the proposed tool arguments; correct the conversation first if a file, order, time range, or setting is ambiguous.

Result verification

Keep the Medux task ID in the conversation while Claude checks progress. When processing ends, ask for the final edited PDF plus a concise validation checklist confirming that the final PDF opens and contains the intended pages in the correct order.

Before you start

You need Claude with the Medux MCP connector enabled, plus the PDF files available in your local project folder.

Input filesFor example, a.pdf and b.pdf.
Output goalOne merged PDF, or a selected page range exported as a new PDF.
Why this workflow is useful: Claude coordinates the steps, while Medux performs the document processing. You avoid writing a separate API client or switching between multiple dashboards.

The workflow

Describe the PDF task
Create upload URLs
Upload local PDFs
Run the Medux tool
Download the result

Step-by-step guide

01

Give Claude a clear instruction

Keep the request direct. Name the files, state the operation, and mention that Medux should be called through MCP.

Use Medux to merge a.pdf and b.pdf into one PDF.
Upload the files with curl, run the merge task,
and save the final result in the current project folder.
Start with one plain-English instruction in Claude.
Start with one plain-English instruction in Claude.
02

Let Claude request upload URLs from Medux

Claude checks the available Medux tools and calls the file-upload helper for each PDF. Medux returns a temporary upload URL and a file ID.

medux_file_create_upload_url
{
  "extension": "pdf",
  "media_type": "DOCUMENT"
}
Claude requests upload URLs from the Medux MCP integration.
Claude requests upload URLs from the Medux MCP integration.
03

Upload the PDF files with curl

Run the generated commands in your own terminal. Long signed URLs are intentionally allowed to wrap inside this page, so the command block never extends beyond the content width.

curl -X PUT   -H "Content-Type: application/pdf"   --data-binary @"/path/to/a.pdf"   "PASTE_THE_UPLOAD_URL_FOR_A_HERE"

curl -X PUT   -H "Content-Type: application/pdf"   --data-binary @"/path/to/b.pdf"   "PASTE_THE_UPLOAD_URL_FOR_B_HERE"

A successful upload normally returns HTTP 200. After both files are uploaded, tell Claude to continue.

Upload both PDFs with the generated curl commands.
Upload both PDFs with the generated curl commands.
04

Run the Medux PDF operation

Claude passes the uploaded file IDs to the appropriate Medux PDF tool. For a merge task, preserve the file order you want in the final document.

Merge these uploaded PDF files in this order:
1. a.pdf
2. b.pdf

Return one combined PDF and save it as merged.pdf.
For PDF splitting: use the same upload flow, then ask Claude to extract a page range. Example: Split pages 10 through 20 from report.pdf and return them as report-pages-10-20.pdf.
05

Download and verify the result

When Medux finishes, Claude retrieves the result URL and downloads the output into the working folder. Open the file and verify the page order, page count, and filename.

curl -L "RESULT_DOWNLOAD_URL"   -o "./merged.pdf"

open "./merged.pdf"
Claude starts the merge and downloads the result after the upload is confirmed.
Claude starts the merge and downloads the result after the upload is confirmed.

Useful prompt variations

Merge several PDFs

Merge contract.pdf, appendix.pdf, and signature.pdf in that exact order.

Extract a page range

Split pages 5 to 12 from handbook.pdf and return a new PDF.

Keep selected pages

Create a new PDF containing pages 1, 3, 7, and 10 from source.pdf.

Reorder pages

Move page 8 to the beginning and save the reordered document as revised.pdf.

One instruction, one MCP connection, one finished PDF

Claude handles the workflow logic, Medux handles the PDF processing, and the final document returns to your local workspace. The same pattern can be reused for merging, splitting, page extraction, and other supported PDF editing tasks.

Explore related workflows

Continue with a nearby Medux workflow or compare how the same task works across Claude MCP and Codex MCP.

Quick answer

How can I merge or split PDF files with Claude MCP?

Claude can use Medux MCP document tools to combine PDFs in a chosen order or split a PDF into separate files. This guide covers uploads, task creation, status checks, and downloads.

What does this Medux tutorial cover?

Claude can use Medux MCP document tools to combine PDFs in a chosen order or split a PDF into separate files. This guide covers uploads, task creation, status checks, and downloads.

Related topics: merge PDFs with Claude MCP · split PDF with Claude · Medux PDF API

Related developer intent

Use AI agents to merge and split PDF files

This tutorial addresses developer workflows for merge and split PDF files API and merge and split PDF files with Codex MCP by making the task repeatable through the Medux API. Codex or Claude can prepare inputs, show the MCP tool arguments for approval, monitor processing, and return an output that can be checked against the original request.

The same Medux MCP pattern applies to document automation: identify the source file, review the API arguments, monitor any asynchronous work, and validate the converted output.

Can Codex or Claude merge and split PDF files through Medux MCP?

Yes. Use the client-specific tab above to prepare the inputs, review the Medux tool call, run the operation, and verify the returned result. The linked API reference remains the source of truth for supported fields and limits.

Production, trust, and developer intent

Use permissioned document automation to merge and split pdf files

This document conversion API for developers lets Codex or Claude merge and split pdf files while keeping the source file, requested operation, task record, and returned document visible. That makes the MCP workflow easier to review and integrate into a larger application.

For a privacy-conscious document workflow, upload only authorized files, avoid exposing credentials in prompts, restrict result access, and define retention and deletion in the calling system.

How do I keep an MCP document workflow auditable?

Record the approved source file, requested conversion, Medux task ID, returned result, and a final content check before the document moves downstream.