Skip to content
MCP server

MCP Server

MCP server that lets AI clients turn HTML or URLs into PDF files via an API key

Runs locallyStatus and history
Install
Platforms
CLI, API
Runs
Locally
Version
1.0.5
Listing updated
today

Similar MCP servers

About MCP Server

MCP Server is an MCP server for files and documents. It runs locally on your machine and is started by your AI client.

The README describes this as a Model Context Protocol server that wraps the HTML2PDF Converter service, so AI assistants such as Claude Desktop or Cursor can request PDF output on a user's behalf. Its single exposed tool accepts either a URL or a raw HTML string and writes the resulting PDF to a temporary file, returning the file path to the client.

Setup runs through npx with the npm package @html2pdfconverter/mcp-server, which requires Node.js 18 or newer. The service itself needs an HTML2PDF Converter API key, passed as an environment variable; the registry marks that key as required and secret. Configuration snippets for Claude Desktop and Cursor are included in the README.

It suits developers and teams who already use an MCP-capable assistant and want document generation from HTML inside that workflow rather than through a separate web interface.

Install

Run in a terminal

claude mcp add mcp-server --env YOUR_API_KEY='<YOUR_API_KEY>' -- npx -y @html2pdfconverter/mcp-server

Add to claude_desktop_config.json

{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@html2pdfconverter/mcp-server"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@html2pdfconverter/mcp-server"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@html2pdfconverter/mcp-server"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@html2pdfconverter/mcp-server"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@html2pdfconverter/mcp-server"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • YOUR_API_KEYYour API key for the serviceRequired

Tools this server provides (1)

Taken from the project documentation; the running server may differ.

generate_pdf
Converts a URL or raw HTML string into a PDF and saves it to a temporary file, returning the file path.

What it does

Single PDF generation tool
Exposes a generate_pdf tool that converts a URL or raw HTML into a PDF.
URL or HTML input
Accepts either a web address or an HTML string as the source for the document.
Temporary file output
Saves the generated PDF to a temporary file and returns its path to the client.
npx-based installation
Runs directly through npx with no local install step beyond Node.js 18+.
API key configuration
Reads the HTML2PDF Converter API key from an environment variable, marked as secret in the registry.

Good for

  • Letting an AI assistant export a web page or HTML snippet as a PDF during a conversation
  • Automating PDF creation of reports or invoices written as HTML from within an MCP client
  • Converting a live URL to PDF as part of a multi-step assistant workflow

MCP Server FAQ

What tool does the server expose?

The README lists one tool, generate_pdf, which converts a URL or raw HTML string into a PDF saved to a temporary file.

What do I need to run it?

Node.js 18 or newer and an HTML2PDF Converter API key, which the README says is obtained from the service's website.

Which AI clients are covered?

The README gives configuration steps for Claude Desktop and Cursor and says it works with other MCP-compatible clients.

How do I add MCP Server to Claude Code?

Run this command in your terminal: claude mcp add mcp-server --env YOUR_API_KEY='<YOUR_API_KEY>' -- npx -y @html2pdfconverter/mcp-server

What are the best alternatives to MCP Server?

The closest alternatives to MCP Server are Api2Pdf MCP by usefulapi, MCP Server, DocRaptor MCP by usefulapi, Anvil MCP by usefulapi and Mindlm MCP.

Where this comes from

  • Description: written from the project's README and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers