filetopdf avatar

FileToPDF

filetopdf/filetopdf-mcp

Wraps the FileToPDF API so Claude and other MCP clients can convert documents, spreadsheets, presentations, images, HTML, and Markdown to PDF through natural language. Exposes four tools: check account credits, convert from public URL (DOCX, XLSX, PPTX, images), render raw HTML to PDF via Chromium, and render Markdown to PDF. Returns both metadata and the actual PDF as a base64 resource that clients can save. Supports layout options like landscape, custom page sizes, margins, and password protection on paid tiers. Available as a local stdio server via npx or as a hosted streamable HTTP endpoint at api.filetopdf.dev/mcp. Requires your own API key from filetopdf.dev, which gives you 10 free conversions to start.

GitHub stars
2
tools
4
auth
Secret needed
transport
STDIO, HTTP
env var
1
last updated
Jun 10, 2026

Install

From registry metadata
$ npx add-mcp https://api.filetopdf.dev/mcp --name filetopdf-mcp --header 'x-api-key: ${X_API_KEY}'

Run in your terminal. add-mcp asks which agents to add it to, then asks for each value it needs. Add -g to install it for every project.

Review the command, arguments and environment values before installing. MCP servers run with your local permissions.

Other ways

Claude Code

$ claude mcp add --transport http filetopdf-mcp https://api.filetopdf.dev/mcp --header 'x-api-key: YOUR_X_API_KEY'

Run in your terminal. Add --scope user to make it available in every project.

Tools

Verified live · 4 tools

Verified live against the running server on Nov 6, 2026.

get_accountCheck the FileToPDF API key and return the plan, remaining conversion credits, and subscription status. Free — costs no credits. Use this to verify the connection works.

Check the FileToPDF API key and return the plan, remaining conversion credits, and subscription status. Free — costs no credits. Use this to verify the connection works.

No parameters. Call it with no arguments.

convert_fileConvert a file fetched from a public URL into a PDF. Auto-detects the engine from the extension: Office docs (DOCX, XLSX, PPTX, ODT, RTF, TXT, CSV…), images (PNG, JPG, WebP…), HTML, Markdown, or an existing PDF (passthrough). Costs 1 credit on success. Returns the PDF as an em...9 params

Convert a file fetched from a public URL into a PDF. Auto-detects the engine from the extension: Office docs (DOCX, XLSX, PPTX, ODT, RTF, TXT, CSV…), images (PNG, JPG, WebP…), HTML, Markdown, or an existing PDF (passthrough). Costs 1 credit on success. Returns the PDF as an em...

Parameters* required
landscapeboolean
Render in landscape orientation. (Pro/Scale/trial only.)
nativePageRangesstring
Page ranges to include, e.g. "1-3".
ownerPasswordstring
Owner password controlling permissions on the resulting PDF.
passwordstring
Password to open a protected source document.
pdfastring
PDF/A conformance level, e.g. "PDF/A-2b". (Pro/Scale/trial only.)
pdfuaboolean
Produce an accessible PDF/UA document.
save_pathstring
Optional absolute path to also write the PDF to on disk.
url*string
Public http(s) URL of the file to download and convert.
userPasswordstring
Password required to open the resulting PDF.
convert_htmlRender a raw HTML string to a PDF using Chromium, with optional CSS and layout options. Costs 1 credit on success. Returns the PDF as an embedded resource.18 params

Render a raw HTML string to a PDF using Chromium, with optional CSS and layout options. Costs 1 credit on success. Returns the PDF as an embedded resource.

Parameters* required
cssstring
Optional CSS, injected into the document <head>.
html*string
The HTML markup to render.
landscapeboolean
Render in landscape orientation. (Pro/Scale/trial only.)
marginBottomstring
Bottom margin in inches.
marginLeftstring
Left margin in inches.
marginRightstring
Right margin in inches.
marginTopstring
Top margin in inches.
nativePageRangesstring
Page ranges to include, e.g. "1-3,5".
ownerPasswordstring
Owner password controlling permissions on the resulting PDF.
paperHeightstring
Paper height in inches.
paperWidthstring
Paper width in inches, or with a unit e.g. "210mm".
pdfastring
PDF/A conformance level, e.g. "PDF/A-2b". (Pro/Scale/trial only.)
pdfuaboolean
Produce an accessible PDF/UA document.
preferCssPageSizeboolean
Use the page size declared in CSS @page rules.
printBackgroundboolean
Print background graphics/colors.
save_pathstring
Optional absolute path to also write the PDF to on disk.
scalestring
Render scale, 0.1–2.0.
userPasswordstring
Password required to open the resulting PDF.
convert_markdownRender a raw Markdown string to a PDF, with optional CSS and layout options. A sensible default stylesheet is applied when no CSS is given. Costs 1 credit on success. Returns the PDF as an embedded resource.18 params

Render a raw Markdown string to a PDF, with optional CSS and layout options. A sensible default stylesheet is applied when no CSS is given. Costs 1 credit on success. Returns the PDF as an embedded resource.

Parameters* required
cssstring
Optional CSS to style the rendered Markdown (overrides the default stylesheet).
landscapeboolean
Render in landscape orientation. (Pro/Scale/trial only.)
marginBottomstring
Bottom margin in inches.
marginLeftstring
Left margin in inches.
marginRightstring
Right margin in inches.
marginTopstring
Top margin in inches.
markdown*string
The Markdown content to render.
nativePageRangesstring
Page ranges to include, e.g. "1-3,5".
ownerPasswordstring
Owner password controlling permissions on the resulting PDF.
paperHeightstring
Paper height in inches.
paperWidthstring
Paper width in inches, or with a unit e.g. "210mm".
pdfastring
PDF/A conformance level, e.g. "PDF/A-2b". (Pro/Scale/trial only.)
pdfuaboolean
Produce an accessible PDF/UA document.
preferCssPageSizeboolean
Use the page size declared in CSS @page rules.
printBackgroundboolean
Print background graphics/colors.
save_pathstring
Optional absolute path to also write the PDF to on disk.
scalestring
Render scale, 0.1–2.0.
userPasswordstring
Password required to open the resulting PDF.

Sponsors

Configuration

FILETOPDF_API_KEY*secret

Your FileToPDF API key (sk_live_...). Get one free in one click at https://filetopdf.dev.

Readme

FileToPDF MCP server

npm smithery badge Install MCP Server

A Model Context Protocol server for FileToPDF. It lets any MCP client — Claude Desktop, Claude Code, Cursor, Cline, VS Code, ChatGPT, n8n, Make, or your own agent — convert files, HTML, and Markdown to PDF through natural language: invoices, reports, documentation, DOCX/XLSX/PPTX, images, web pages, and more.

Bring your own API key — get one free, in one click, at https://filetopdf.dev (10 free conversions, no signup required).

Tools


View the full README on GitHub

Details

Repository
github.com/filetopdf/filetopdf-mcp
Website
filetopdf.dev
Category
Documents & Knowledge
Package
filetopdf-mcp
Transport
STDIO, HTTP
Auth
Required
Registry
MCP registry, active
Tools verified
Nov 6, 2026

Related Documents & Knowledge MCP servers

View all
1pstryder avatarTablaCognitapstryder/tablacognitaMCP-native collaborative markdown editor with real-time AI document editing2stars
2cflorczyk9 avatarMarginscflorczyk9/marginsUse your Claude Pro/Max subscription on your Obsidian vault. Reads markdown, proposes writes.1stars
3shan-zhu avatarshuck-convertshan-zhu/shuck-convertConvert between document formats — DOCX/PDF to Markdown, Markdown to DOCX.1stars
4adelaidasofia avatarFastMCP server for Obsidian wikilink suggestions from a pre-computed knowledge gadelaidasofia/graph-autotagger-mcpFastMCP server for Obsidian wikilink suggestions from a pre-computed knowledge graph (graphify…0stars
5auteng avatarAutEng Docs — Agent Document Workspace & Publishingai.auteng/docsAgent document workspace with wallet auth. Create, update and share markdown docs. By AutEng.ai0stars
6caravaca-labs avatarPageTranslatecaravaca-labs/pagetranslate-mcpTranslate PDF, scanned PDF, DOCX and EPUB files into 70+ languages with the layout kept.0stars