Skip to main content
Glama
pdfdotco

PDF.co MCP Server

Official
by pdfdotco

pdf_to_image

Convert PDF files and scanned images to JPG, PNG, WebP, or TIFF formats for easier viewing, sharing, or editing.

Instructions

Convert PDF and scanned images to various image formats (JPG, PNG, WebP, TIFF). Ref: - https://developer.pdf.co/api-reference/pdf-to-image/jpg.md - https://developer.pdf.co/api-reference/pdf-to-image/png.md - https://developer.pdf.co/api-reference/pdf-to-image/webp.md - https://developer.pdf.co/api-reference/pdf-to-image/tiff.md

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL to the source file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files.
httpusernameNoHTTP auth user name if required to access source url. (Optional)
httppasswordNoHTTP auth password if required to access source url. (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)
unwrapNoUnwrap lines into a single line within table cells when lineGrouping is enabled. Must be true or false. (Optional)
rectNoDefines coordinates for extraction (e.g., '51.8,114.8,235.5,204.0'). (Optional)
langNoLanguage for OCR for scanned documents. Default is 'eng'. See PDF.co docs for supported languages. (Optional, Default: 'eng')eng
line_groupingNoEnables line grouping within table cells when set to '1'. (Optional)0
passwordNoPassword of the PDF file. (Optional)
nameNoFile name for the generated output. (Optional)
typeNoType of image to convert to. (jpg, png, webp, tiff) (Optional)jpg
api_keyNoPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)

Latest Blog Posts

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