Skip to main content
Glama

PDF.co MCP Server

Official
by pdfdotco
MIT License
1
  • Apple
  • Linux

pdf_split

Extract specific pages or ranges from a PDF into separate files. Use page indexes or ranges to split documents for focused content or distribution.

Instructions

Split a PDF into multiple PDF files using page indexes or page ranges. Ref: https://developer.pdf.co/api-reference/pdf-split/by-pages.md

Input Schema

NameRequiredDescriptionDefault
api_keyNoPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
httppasswordNoHTTP auth password if required to access source url. (Optional)
httpusernameNoHTTP auth user name if required to access source url. (Optional)
nameNoBase file name for the generated output files. (Optional)
pagesYesComma-separated indices of pages (or page ranges) that you want to use. The first-page index is 1. For example: '1,3,5-7' or '1-2,4-'. Use '*' to split every page into separate files.
passwordNoPassword of the PDF file. (Optional)
urlYesURL to the source PDF file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files.

Input Schema (JSON Schema)

{ "properties": { "api_key": { "default": null, "description": "PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)", "title": "Api Key", "type": "string" }, "httppassword": { "default": "", "description": "HTTP auth password if required to access source url. (Optional)", "title": "Httppassword", "type": "string" }, "httpusername": { "default": "", "description": "HTTP auth user name if required to access source url. (Optional)", "title": "Httpusername", "type": "string" }, "name": { "default": "", "description": "Base file name for the generated output files. (Optional)", "title": "Name", "type": "string" }, "pages": { "description": "Comma-separated indices of pages (or page ranges) that you want to use. The first-page index is 1. For example: '1,3,5-7' or '1-2,4-'. Use '*' to split every page into separate files.", "title": "Pages", "type": "string" }, "password": { "default": "", "description": "Password of the PDF file. (Optional)", "title": "Password", "type": "string" }, "url": { "description": "URL to the source PDF file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files.", "title": "Url", "type": "string" } }, "required": [ "url", "pages" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pdfdotco/pdfco-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server