Back to Browse

Html2pdfconverter MCP Server

Developer ToolsUse Caution4.0MCP RegistryLocal
Free

Server data from the Official MCP Registry

MCP server for HTML2PDF Converter

About

MCP server for HTML2PDF Converter

Security Report

4.0
Use Caution4.0High Risk

The server properly authenticates with the HTML2PDF Converter API via environment variable and implements appropriate tool access controls. However, there are notable concerns: the API key is transmitted in plaintext in fetch headers without HTTPS verification, the server accepts arbitrary URLs which could enable SSRF attacks or exposure of internal resources, and temporary PDF files are written to a world-readable directory without cleanup guarantees. The dependency on `html2pdfconverter-sdk` pinned to "latest" creates supply chain risk. Supply chain analysis found 2 known vulnerabilities in dependencies (0 critical, 2 high severity). Package verification found 1 issue.

3 files analyzed · 12 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

env_vars

Check that this permission is expected for this type of plugin.

HTTP Network Access

Connects to external APIs or services over the internet.

File System Write

Writes or modifies files on your machine. Check that this is expected for the tool.

File System Read

Reads files on your machine. Normal for tools that analyze or process local data.

What You'll Need

Set these up before or after installing:

Your API key for the serviceRequired

Environment variable: YOUR_API_KEY

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-html2pdfconverter-mcp-server": {
      "env": {
        "YOUR_API_KEY": "your-your-api-key-here"
      },
      "args": [
        "-y",
        "@html2pdfconverter/mcp-server"
      ],
      "command": "npx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub 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

Reviews

No reviews yet

Be the first to review this server!