Skip to main content
Glama

PDF.co MCP Server

Official
by pdfdotco
MIT License
1
  • Apple
  • Linux

document_to_pdf

Convert DOC, DOCX, RTF, TXT, XLS, XLSX, CSV, HTML, JPG, PNG, TIFF, and WEBP files into PDF format using a URL or uploaded file source. Adjust page sizing, select specific pages, and customize output file names for streamlined document management.

Instructions

Convert various document types (DOC, DOCX, RTF, TXT, XLS, XLSX, CSV, HTML, JPG, PNG, TIFF, WEBP) into PDF. Ref: https://developer.pdf.co/api-reference/pdf-from-document/doc.md

Input Schema

NameRequiredDescriptionDefault
api_keyNoPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
autosizeNoControls automatic page sizing. If true, page dimensions adjust to content. If false, uses worksheet’s page setup. (Optional)
httppasswordNoHTTP auth password if required to access source url. (Optional)
httpusernameNoHTTP auth user name if required to access source url. (Optional)
nameNoFile name for the generated output. (Optional)
pagesNoComma-separated page indices (e.g., '0, 1, 2-' or '1, 3-7'). Use '!' for inverted page numbers (e.g., '!0' for last page). Processes all pages if None. (Optional)
urlYesURL to the source file (DOC, DOCX, RTF, TXT, XPS). 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" }, "autosize": { "default": false, "description": "Controls automatic page sizing. If true, page dimensions adjust to content. If false, uses worksheet’s page setup. (Optional)", "title": "Autosize", "type": "boolean" }, "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": "File name for the generated output. (Optional)", "title": "Name", "type": "string" }, "pages": { "default": "", "description": "Comma-separated page indices (e.g., '0, 1, 2-' or '1, 3-7'). Use '!' for inverted page numbers (e.g., '!0' for last page). Processes all pages if None. (Optional)", "title": "Pages", "type": "string" }, "url": { "description": "URL to the source file (DOC, DOCX, RTF, TXT, XPS). 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" ], "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