Labsco
MCP SERVER

FileToPDF

by FileToPDF

Turn a URL, a raw HTML string or Markdown into a PDF with print-level layout control, PDF/A conformance and password protection.

Document Conversion, PDF & TranslationVerified
Summary
The only local part of this is where the file lands: rendering happens on FileToPDF's service and is metered per conversion.

That trade buys a real Chromium renderer and PDF/A conformance without a headless browser or a TeX stack on your machine, and get_account is honest enough about the meter to be free and to be the recommended first call after a failure. It also sets the boundary. Every document you convert leaves the machine, and convert_file needs its source at a public URL, so an internal wiki page or a file behind a VPN has to come in through convert_html or convert_markdown as a string instead. The key can be had at filetopdf.dev with 10 free conversions and no signup, which is enough to find out whether the output matches your template before any of that matters.

What it is

A hosted conversion server, exposing 4 tools that render a public URL, an HTML string or a Markdown string into a PDF and write it to a path you choose.

What you get
  • Input shapes resolved by one engine selection: convert_file takes a public URL and picks the converter from the file extension, covering Office documents such as DOCX, XLSX, PPTX, ODT, RTF, TXT and CSV, images such as PNG, JPG and WebP, web pages and HTML files, Markdown files, and existing PDFs which pass through unchanged.
  • Rendering from strings rather than files: convert_html renders raw HTML through a real Chromium engine, with optional css injected into the document head; convert_markdown renders a Markdown string and applies a default stylesheet unless CSS is supplied.
  • Print-level layout on the string inputs: paperWidth and paperHeight, marginTop, marginRight, marginBottom and marginLeft, landscape, scale, preferCssPageSize, printBackground and nativePageRanges.
  • Output that has to satisfy someone else: pdfa and pdfua conformance flags, and userPassword with ownerPassword for encryption, on the conversion tools.
  • A local landing place: save_path decides where the rendered PDF is written.
  • Accounting you can check for free: get_account returns the plan, the conversion credits left and subscription status, never costs a credit, and is the call that tells you whether a failed conversion simply ran out.
Requirements

A FileToPDF API key, supplied as FILETOPDF_API_KEY, and credits on the account behind it — get_account reports the plan and what is left. convert_file additionally needs the source document to be reachable at a public URL.

Setup effort

One command plus a key — claude mcp add filetopdf -e FILETOPDF_API_KEY=sk_live_YOUR_API_KEY -- npx -y filetopdf-mcp, then supply credentials