Html2pdfconverter

io.github.html2pdfconverterPublished by GitHub account html2pdfconverterv1.0.5Updated Oct 24, 2026

MCP server for HTML2PDF Converter

Overview

AI-generated overview

Converts a URL or raw HTML string into a PDF file through the HTML2PDF Converter service.

What you can do
This local MCP server exposes a single tool, generate_pdf, which takes a URL or an HTML string and converts it into a PDF document. The resulting PDF is saved to a temporary file, and the tool returns the file path so the assistant can refer to it. Conversion is performed by the HTML2PDF Converter service rather than locally.
When to use it
Useful when you want an assistant to turn web pages or HTML snippets into PDF files without leaving the chat, for example to archive a page or produce a shareable document. It is not needed if you only work with local documents or already have a PDF pipeline.
Requirements
Runs locally as an npm package via npx, so Node.js 18 or newer is required. An HTML2PDF Converter API key is needed, supplied through the HTML2PDF_API_KEY environment variable. Network access is required to reach the conversion service.
Before you install
The server requires an API key (HTML2PDF_API_KEY) that is passed in plain text in client configuration; treat it as a secret. The URL or HTML you submit is sent to the third-party HTML2PDF Converter service for processing, so avoid sending confidential content. The tool writes a PDF file to a temporary location on your machine.

Installation

In SourceWeft

  1. Open Html2pdfconverter in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

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:

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

bash
# Install dependenciesnpm install
# Buildnpm run build
# Run locally (requires HTML2PDF_API_KEY env var)HTML2PDF_API_KEY=your_key npm start

Source: README.md at commit 3bd1728

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v1.0.5LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts