About html2pdfconverter
html2pdfconverter is an MCP server for converting URLs or raw HTML into PDF files. It is intended for AI clients that need PDF generation through the HTML2PDF Converter API.
Key features
- 01Convert URLs to PDF
- 02Convert raw HTML to PDF
- 03Return a temporary PDF file path
Use cases
- 01Create a PDF from a webpage URL
- 02Turn an HTML string into a PDF document
MCP support
Exposes the `generate_pdf` tool to MCP clients. The tool sends a URL or raw HTML for conversion and returns the temporary file path.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
npx -y @html2pdfconverter/mcp-serverYOUR_API_KEYSecretYour API key for the serviceLocal servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEHTML2PDF Converter MCP Server
An MCP (Model Context Protocol) server for HTML2PDF Converter. This server exposes a generate_pdf tool, allowing AI models like Claude, Cursor, and others to seamlessly convert HTML or URLs to PDF documents on your behalf.
Requirements
- Node.js >= 18
- An HTML2PDF Converter API Key (get one at https://html2pdfconverter.com)
Usage
You can run this MCP server directly via npx in any MCP-compatible client.
Claude Desktop Configuration
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"html2pdf": {
"command": "npx",
"args": ["-y", "@html2pdfconverter/mcp-server"],
"env": {
"HTML2PDF_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
Cursor Configuration
In Cursor, go to Settings > MCP Servers and add a new server:
- Type: command
- Command:
npx -y @html2pdfconverter/mcp-server - Environment Variables:
HTML2PDF_API_KEY=YOUR_API_KEY_HERE
Available Tools
generate_pdf: Converts a URL or raw HTML string into a PDF and saves it to a temporary file, returning the file path.
Development
# Install dependencies
npm install
# Build
npm run build
# Run locally (requires HTML2PDF_API_KEY env var)
HTML2PDF_API_KEY=your_key npm start
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.