
FileToPDF
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 toolsVerified 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...
landscapebooleannativePageRangesstringownerPasswordstringpasswordstringpdfastringpdfuabooleansave_pathstringurl*stringuserPasswordstringconvert_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.
cssstringhtml*stringlandscapebooleanmarginBottomstringmarginLeftstringmarginRightstringmarginTopstringnativePageRangesstringownerPasswordstringpaperHeightstringpaperWidthstringpdfastringpdfuabooleanpreferCssPageSizebooleanprintBackgroundbooleansave_pathstringscalestringuserPasswordstringconvert_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.
cssstringlandscapebooleanmarginBottomstringmarginLeftstringmarginRightstringmarginTopstringmarkdown*stringnativePageRangesstringownerPasswordstringpaperHeightstringpaperWidthstringpdfastringpdfuabooleanpreferCssPageSizebooleanprintBackgroundbooleansave_pathstringscalestringuserPasswordstringSponsors
Configuration
FILETOPDF_API_KEY*secretYour FileToPDF API key (sk_live_...). Get one free in one click at https://filetopdf.dev.
Readme
FileToPDF 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
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