mcpField
H
html2pdfconverter

html2pdfconverter

Local
github.com/html2pdfconverterProductivity0Updated 7w ago

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

  1. 01Convert URLs to PDF
  2. 02Convert raw HTML to PDF
  3. 03Return a temporary PDF file path

Use cases

  1. 01Create a PDF from a webpage URL
  2. 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.

mcp.json · Universal config
{
"mcpServers": {
"html2pdfconverter": {
"command": "npx",
"args": [
"-y",
"@html2pdfconverter/mcp-server"
],
"env": {
"YOUR_API_KEY": "<YOUR_API_KEY>"
}
}
}
}
Run commandnpx -y @html2pdfconverter/mcp-server
Environment variables to set
YOUR_API_KEYSecretYour API key for the service

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@html2pdfconverter/mcp-server1.0.5

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

HTML2PDF 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

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

Markdown supported

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.