HTML2PDF Converter MCP Server logo

HTML2PDF Converter MCP Server

Convert URLs or raw HTML into PDF files through an MCP tool backed by the HTML2PDF Converter API.

Install HTML2PDF Converter MCP Server

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": {
    "html2pdfconverter-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@html2pdfconverter/mcp-server"
      ],
      "env": {
        "HTML2PDF_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 2 tools correctly ().

Overview

html2pdfconverter/mcp-server MCP server exposes HTML2PDF Converter's PDF generation API through the Model Context Protocol. Its `generate_pdf` tool accepts either a URL or raw HTML, creates a PDF, and returns the temporary file path. Run it with Node.js 18 or newer through `npx` in an MCP-compatible client. Reach for it when an AI workflow needs to turn web content or generated markup into a PDF document.

Use cases

  • Convert a webpage into a PDF
  • Render generated HTML as a PDF
  • Create temporary PDF files from URLs
  • Add PDF generation to an MCP workflow

Key features

  • Convert URLs to PDF
  • Convert raw HTML to PDF
  • Return a temporary PDF file path
  • Authenticate with an HTML2PDF API key
  • Run through npx

Tools2

What HTML2PDF Converter MCP Server lets your agent do. Expand a tool for its parameters.

Verified live~225 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.

12/12 checks healthy over the last 48d

What it can do

From the 2 tools this server returned when we ran it.

Makes network requests · 2Read-only tools · 2
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age84 days
Maintainers1

Observed 2026-11-06 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 15d ago via OSV.dev · @html2pdfconverter/mcp-server (npm)

Adoption & maintenance

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

npm downloads231Package downloads in the last 30 days.
Last commit2mo 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 exposed2Callable tools this server registers over MCP.

How HTML2PDF Converter MCP Server works

What the html2pdfconverter/mcp-server MCP server does

The html2pdfconverter/mcp-server MCP server connects an MCP-compatible client to the HTML2PDF Converter API. It makes one operation available: generate_pdf. That tool converts either a web URL or a supplied HTML string into a PDF and writes the result to a temporary file. The tool response includes the path to that file, allowing the calling workflow to locate the generated document.

This server fits workflows where an AI assistant needs to create PDFs from existing web pages or dynamically produced HTML. It does not describe tools for editing PDFs, reading PDF contents, managing files beyond the generated temporary output, or performing other HTML2PDF account operations.

How it works

The server runs as a Node.js process and communicates with the MCP client using the command-based setup shown in the project documentation. A client starts the package with npx, while the server uses the HTML2PDF_API_KEY environment variable to authenticate requests to HTML2PDF Converter.

When the model invokes generate_pdf, it supplies a URL or raw HTML as the conversion input. The service performs the conversion, saves the PDF to a temporary location, and returns that location through the tool result.

Setup and configuration

Node.js 18 or newer is required. You also need an API key from HTML2PDF Converter and must expose it as HTML2PDF_API_KEY in the server environment.

For a client configuration, use the package through npx:

config.json
{
  "mcpServers": {
    "html2pdf": {
      "command": "npx",
      "args": ["-y", "@html2pdfconverter/mcp-server"],
      "env": {
        "HTML2PDF_API_KEY": "YOUR_API_KEY_HERE"
      }
    }
  }
}

The documented Claude Desktop setup uses this command and environment variable. Cursor can be configured from Settings > MCP Servers by adding a command server with npx -y @html2pdfconverter/mcp-server and the same API key. For local development, install dependencies with npm install, build with npm run build, and start with HTML2PDF_API_KEY=your_key npm start.

Tools and capabilities

The html2pdfconverter/mcp-server MCP server provides:

  • generate_pdf: Converts a URL or raw HTML string to a PDF.
  • Temporary-file output: Returns the path where the generated PDF was saved.
  • API-backed conversion: Sends the conversion request through HTML2PDF Converter using the configured API key.

The README names Claude Desktop and Cursor as supported configuration targets and states that other MCP-compatible clients can run the server.

Limitations and notes

Node.js 18 or later is also required. The available interface contains only generate_pdf, and the documented result is a temporary file path rather than PDF bytes or a user-selected destination.

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 HTML2PDF Converter MCP Server

html2pdfconverter/mcp-server is an MCP server that connects MCP-compatible AI clients to the HTML2PDF Converter API. Its main `generate_pdf` tool accepts a URL or raw HTML, converts it into a PDF, saves the result to a temporary file, and returns the file path to the client.

Run it with `npx -y @html2pdfconverter/mcp-server` rather than installing it globally. Configure that command in your MCP client and provide `HTML2PDF_API_KEY`. Node.js 18 or newer is required.

Add a command server to `claude_desktop_config.json` using `npx` with `-y @html2pdfconverter/mcp-server` as the argument, then set `HTML2PDF_API_KEY` in the server's `env` object.

Yes, it works with Cursor through a command MCP server. Open Settings > MCP Servers, add `npx -y @html2pdfconverter/mcp-server` as the command, and set `HTML2PDF_API_KEY` as an environment variable.

It returns the path to a temporary PDF file after converting a URL or raw HTML string.

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 PreviewHTML2PDF Converter MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/html2pdfconverter-mcp-server?style=directory)](https://allmcps.com/mcp/html2pdfconverter-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/html2pdfconverter-mcp-server"><img src="https://allmcps.com/api/badge/html2pdfconverter-mcp-server?style=directory" alt="HTML2PDF Converter MCP Server on AllMCPs" /></a>