Filetopdf MCP logo

Filetopdf MCP

by FileToPDF

Converts public files, HTML, and Markdown into PDFs through MCP, returning embedded PDFs or saving them to disk.

Install Filetopdf MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "filetopdf-filetopdf-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "filetopdf-mcp"
      ],
      "env": {
        "FILETOPDF_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Automated check passed— started and listed 4 tools correctly ().

Overview

FileToPDF/filetopdf-mcp MCP server converts public files, raw HTML, and Markdown into PDFs through the FileToPDF API. It exposes MCP tools for account checks and three conversion paths, returning PDFs as embedded application/pdf resources or optionally writing them to disk. Use it for reports, invoices, documentation, office documents, images, web pages, and other generated documents. A FileToPDF API key is required, with a free allowance available from the FileToPDF website.

Use cases

  • Convert a public DOCX invoice into a PDF
  • Render generated HTML reports with custom CSS
  • Turn Markdown documentation into shareable PDFs
  • Check remaining conversion credits before processing documents

Key features

  • Convert office files and images from public URLs
  • Render raw HTML and Markdown as PDFs
  • Return PDFs as embedded application/pdf resources
  • Save conversion results to disk
  • Support PDF/A and password-protected output
  • Check account status and remaining credits

Tools4

What Filetopdf MCP lets your agent do. Expand a tool for its parameters.

Verified live~1.6k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 112d

What it can do

From the 4 tools this server returned when we ran it; 4 declare their own safety hints.

Writes files · 3Handles credentials · 3Makes network requests · 4Read-only tools · 1
Network at startup3 connections
Files written at startupNone
Install scriptsprepare
npm provenanceNot published
Package age158 days
Maintainers1

Observed 2026-11-15 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8d ago via OSV.dev · filetopdf-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
npm downloads289Package downloads in the last 30 days.
Last commit5mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed4Callable tools this server registers over MCP.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Filetopdf MCP works

What FileToPDF/filetopdf-mcp MCP server does

FileToPDF/filetopdf-mcp MCP server gives MCP clients access to FileToPDF document conversion. It can turn publicly accessible office files, images, HTML pages, Markdown, and existing PDFs into PDF output. Supported source examples include DOCX, XLSX, PPTX, ODT, RTF, TXT, CSV, PNG, JPG, and WebP files.

The server is suited to agents that need to produce shareable documents from generated content or convert an existing resource available at a public URL. Common outputs include invoices, reports, receipts, certificates, letters, summaries, and documentation.

How it works

The server communicates with the FileToPDF API using an API key. For a file URL, the conversion engine is selected from the source file extension. Raw HTML and Markdown use dedicated tools so the agent can provide the content directly instead of hosting it first.

Successful conversion calls return metadata together with the PDF as an embedded application/pdf resource. A client that supports embedded resources can save the result, and the caller can also provide save_path to write the PDF locally. The FILETOPDF_OUTPUT_DIR environment variable can be used to configure an output directory.

HTML and Markdown rendering use a Chromium-based engine. Both formats accept optional CSS and document layout settings, including paper dimensions, margins, landscape orientation, scaling, page ranges, background printing, PDF/A output, and password protection. Markdown receives a default stylesheet when custom CSS is not supplied.

Setup and configuration

For a local stdio deployment, run the package with npx -y filetopdf-mcp and provide FILETOPDF_API_KEY in the MCP client environment. The repository documents configuration for Claude Desktop, Cline, Cursor, VS Code, and Claude Code. The API key can be obtained from FileToPDF, which provides 10 free conversions without signup.

A hosted Streamable HTTP endpoint is also available at https://api.filetopdf.dev/mcp. Remote clients can authenticate with an x-api-key header, an Authorization: Bearer header, or an apiKey query parameter. The project also documents self-hosting its HTTP mode with npm run build && npm run start:http; the service listens on the PORT value, defaulting to 8080, and serves /mcp.

Tools and capabilities

FileToPDF/filetopdf-mcp MCP server exposes four tools:

  • get_account checks the API key and reports the plan, remaining conversion credits, and subscription status. This check does not consume credits.
  • convert_file converts a document at a public URL. Existing PDFs pass through the conversion service, while other supported formats are converted according to their extensions.
  • convert_html renders a supplied HTML string, with optional CSS and PDF layout controls.
  • convert_markdown renders a supplied Markdown string, with optional CSS and PDF layout controls.

Limitations and notes

An API key is required for the FileToPDF service. Each successful conversion consumes one credit, while failed conversions do not. The free allowance covers 10 conversions; the documentation also references Starter, Basic, Pro, and Scale plans. Advanced layout settings are available on the free trial and Pro or Scale plans, but return an upgrade error on Starter and Basic.

The convert_file tool requires a public URL, so it is not the direct route for private local files. Use convert_html or convert_markdown when the source is a raw string. The repository is licensed under MIT.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Filetopdf MCP

Run it as a local stdio server with `npx -y filetopdf-mcp` and configure the `FILETOPDF_API_KEY` environment variable in your MCP client.

Yes. The README provides Claude Desktop configuration using the local `npx -y filetopdf-mcp` command.

The `convert_file` tool accepts a file at a public URL. For source content already available as text, use `convert_html` or `convert_markdown`.

FileToPDF provides 10 free conversions without signup. Successful conversions use one credit, while failed conversions are free.

Yes. Pass `save_path` to a conversion tool or configure `FILETOPDF_OUTPUT_DIR`; the PDF is also returned as an embedded resource.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewFiletopdf MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/filetopdf-filetopdf-mcp?style=directory)](https://allmcps.com/mcp/filetopdf-filetopdf-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/filetopdf-filetopdf-mcp"><img src="https://allmcps.com/api/badge/filetopdf-filetopdf-mcp?style=directory" alt="Filetopdf MCP on AllMCPs" /></a>