pdf_merge
Merge multiple files (PDF, DOC, XLS, images, ZIP) into a single PDF document using URLs or uploaded files.
Instructions
Merge PDF from two or more PDF, DOC, XLS, images, even ZIP with documents and images into a new PDF.
Ref: https://developer.pdf.co/api-reference/merge/various-files.md
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URLs to the source files as a comma-separated list. Supports PDF, DOC, DOCX, RTF, TXT, XLS, XLSX, CSV, images, and more. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. | |
| httpusername | No | HTTP auth user name if required to access source url. (Optional) | |
| httppassword | No | HTTP auth password if required to access source url. (Optional) | |
| name | No | File name for the generated output. (Optional) | |
| api_key | No | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
Implementation Reference
- pdfco/mcp/services/pdf.py:18-19 (helper)The 'merge_pdf' helper function that the handler calls - makes an API request to the 'pdf/merge2' endpoint with the given ConversionParams and optional api_key.
async def merge_pdf(params: ConversionParams, api_key: str | None = None) -> BaseResponse: return await request("pdf/merge2", params, api_key=api_key)