Documentation

MCP server

The SmartPDF MCP server gives an AI agent 47 PDF and image operations plus a balance check — the agent picks the operation based on your request. The key and balance are the same as for the REST API.

Connection

URLhttps://mcp.smartpdf.ru/mcp
TransportStreamable HTTP, no sessions
KeyAuthorization: Bearer sk_live_… or X-API-Key: sk_live_…

A key in the URL (?token=) isn’t accepted: the MCP specification forbids it, and URLs end up in logs. The tool list (tools/list) is available without a key; calling a tool without a key returns an error with a link to the dashboard.

Step-by-step guides: Claude Code, Claude Desktop, Cursor, VS Code, Codex CLI, Gemini CLI, Windsurf and Cline, n8n, Make.

How the agent works with files

The tools accept a public link to a file (file_url, up to 100 MB) and return a link to the result (download_url) with an expiry time (expires_at). The agent first uploads a file from your computer via the REST API — see Passing files.

Tools

ToolWhat it doesREST
word_to_pdfWord to PDF/pdf/word-to-pdf
jpg_to_pdfJPG to PDF/pdf/jpg-to-pdf
photo_to_pdfPhoto to PDF/pdf/photo-to-pdf
xlsx_to_pdfExcel to PDF/pdf/xlsx-to-pdf
pptx_to_pdfPowerPoint to PDF/pdf/pptx-to-pdf
djvu_to_pdfDjVu to PDF/pdf/djvu-to-pdf
fb2_to_pdfFB2 to PDF/pdf/fb2-to-pdf
epub_to_pdfEPUB to PDF/pdf/epub-to-pdf
html_to_pdfHTML to PDF/pdf/html-to-pdf
pdf_to_wordPDF to Word/pdf/to-word
pdf_to_jpgPDF to JPG/pdf/to-jpg
pdf_to_pngPDF to PNG/pdf/to-png
pdf_to_excelPDF to Excel/pdf/to-excel
pdf_to_pptxPDF to PowerPoint/pdf/to-pptx
pdf_to_markdownPDF to Markdown/pdf/to-markdown
pdf_to_txtPDF to text/pdf/to-txt
compress_imageCompress image/pdf/compress-image
heic_to_jpgHEIC to JPG/pdf/heic-to-jpg
image_to_textImage to text/pdf/image-to-text
png_to_jpgPNG to JPG/pdf/png-to-jpg
jpg_to_pngJPG to PNG/pdf/jpg-to-png
webp_to_jpgWEBP to JPG/pdf/webp-to-jpg
resize_imageResize image/pdf/resize-image
crop_imageCrop image/pdf/crop-image
rotate_imageRotate image/pdf/rotate-image
word_to_jpgWord to JPG/pdf/word-to-jpg
edit_pdfPDF editor/pdf/edit
compress_pdfCompress PDF/pdf/compress
grayscale_pdfGrayscale PDF/pdf/grayscale
pdf_to_pdfaPDF to PDF/A/pdf/to-pdfa
repair_pdfRepair PDF/pdf/repair
merge_pdfsMerge PDF/pdf/merge
split_pdfSplit PDF/pdf/split
ocr_pdfOCR PDF/pdf/ocr
flatten_pdfFlatten PDF/pdf/flatten
delete_pagesDelete pages/pdf/delete-pages
crop_pdfCrop PDF/pdf/crop
extract_pagesExtract pages/pdf/extract-pages
rotate_pdfRotate pages/pdf/rotate
reorder_pagesReorder pages/pdf/reorder-pages
add_page_numbersAdd page numbers/pdf/add-page-numbers
sign_pdfSign PDF/pdf/sign
protect_pdfProtect PDF/pdf/protect
unlock_pdfUnlock PDF/pdf/unlock
redact_pdfRedact personal data/pdf/redact
find_personal_dataFind personal data/pdf/find-personal-data
watermark_pdfAdd watermark/pdf/watermark
get_balanceAPI balance, spending this month and the request priceGET /v1/api-keys/balance

The agent gets each tool’s parameters from the server — they’re the same as in REST, but with a link to the file instead of file_id.

Pricing

Each tool call is an API request at the same price (Billing). get_balance shows the remaining balance and the request price. If there isn’t enough money, the agent gets an error with an explanation.

Example prompts for the agent

  • “Compress the PDFs at these links and send me links to the results”
  • “Recognize the text in the contract scan and turn it into a Word document”
  • “Merge the three invoices into one PDF and number the pages”
  • “Add a ‘COPY’ watermark to all pages”
  • “How much is left on my SmartPDF balance?”

This page for agents: Markdown · llms.txt