Converts HTML strings or URLs into PDF documents using the HTML2PDF Converter API.
Also known as html2pdfconverter/mcp-server, @html2pdfconverter/mcp-server
- Stars
- 0
- Tools
- 1
- Downloads, 30 days
- 185
- Latest version
- 1.0.5
- Last commit
- Sep 9, 2026
- License
- MIT
What is HTML2PDF Converter MCP?
HTML2PDF Converter converts HTML strings or URLs into PDF documents using the HTML2PDF Converter API. It exposes 1 tool, such as generate_pdf.
Summary generated from the project's README
About HTML2PDF Converter MCP server
Converting HTML strings or web URLs into PDF documents directly from your AI chat interface is the primary function of this server. It provides a bridge for models like Claude and Cursor to perform document generation tasks by using the HTML2PDF Converter API. Developers can integrate this into their workflow by running the server via npx in any MCP-compatible client.
Setting up the server requires a valid HTML2PDF Converter API key provided as an environment variable. Once configured in your desktop settings or IDE, the generate_pdf tool allows the AI to transform raw HTML or live web addresses into PDF files. The tool handles the conversion process and returns the local file path where the resulting document is saved temporarily.
What you can do with it
- 1Convert web pages to documentsAsk your AI client to take a specific URL and turn it into a downloadable PDF file.
- 2Generate PDFs from raw HTMLProvide a string of HTML code to the AI and have it rendered into a formal PDF document.
Written from the project's README. Every use case is checked against a quote from it.
How to install HTML2PDF Converter MCP
Formats verified 10 Nov 2026Add to CursorAdd to GooseInstall HTML2PDF Converter MCP in Claude Code
$ claude mcp add --env 'YOUR_API_KEY=<YOUR_YOUR_API_KEY>' mcp-server -- npx -y @html2pdfconverter/mcp-serverInstall HTML2PDF Converter MCP in Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@html2pdfconverter/mcp-server"
],
"env": {
"YOUR_API_KEY": "<YOUR_YOUR_API_KEY>"
}
}
}
}Install HTML2PDF Converter MCP in VS Code
.vscode/mcp.json
{
"servers": {
"mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@html2pdfconverter/mcp-server"
],
"env": {
"YOUR_API_KEY": "<YOUR_YOUR_API_KEY>"
}
}
}
}Install HTML2PDF Converter MCP in VS Code CLI
$ code --add-mcp '{"name":"mcp-server","type":"stdio","command":"npx","args":["-y","@html2pdfconverter/mcp-server"],"env":{"YOUR_API_KEY":"<YOUR_YOUR_API_KEY>"}}'Install HTML2PDF Converter MCP in Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@html2pdfconverter/mcp-server"
],
"env": {
"YOUR_API_KEY": "<YOUR_YOUR_API_KEY>"
}
}
}
}Install HTML2PDF Converter MCP in Codex
$ codex mcp add mcp-server --env 'YOUR_API_KEY=<YOUR_YOUR_API_KEY>' -- npx -y @html2pdfconverter/mcp-serverInstall HTML2PDF Converter MCP in Codex config.toml
~/.codex/config.toml
[mcp_servers.mcp-server] command = "npx" args = ["-y", "@html2pdfconverter/mcp-server"] [mcp_servers.mcp-server.env] YOUR_API_KEY = "<YOUR_YOUR_API_KEY>"
Install HTML2PDF Converter MCP in Gemini CLI
$ gemini mcp add -s user -e 'YOUR_API_KEY=<YOUR_YOUR_API_KEY>' mcp-server npx -- -y @html2pdfconverter/mcp-serverInstall HTML2PDF Converter MCP in Gemini settings.json
~/.gemini/settings.json
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@html2pdfconverter/mcp-server"
],
"env": {
"YOUR_API_KEY": "<YOUR_YOUR_API_KEY>"
}
}
}
}HTML2PDF Converter MCP tools 1
Detected from the READMEgenerate_pdf
| generate_pdf | — |
Configuration
YOUR_API_KEYRequiredSecretYour API key for the service
HTML2PDF_API_KEY
| Name | Description | |
|---|---|---|
| YOUR_API_KEY | Your API key for the service | RequiredSecret |
| HTML2PDF_API_KEY | — |
Automated checks
Ran Nov 15, 2026Full report →Passed our automated checks. That is not a security audit: read the code and give the server the narrowest access it needs. How checks work
- Source repository linked and reachablehtml2pdfconverter/mcp-server is public and reachablegithub.com/html2pdfconverter/mcp-server ↗Pass
- Package names this repository as its sourceNot checked
- Build provenance (Sigstore attestation)No build attestation published for this releaseNot checked
- Open source license (OSI)MITspdx.org/licenses/MIT.html ↗Pass
- Commit or release in the last yearLast commit or release 2026-09-09github.com/html2pdfconverter/mcp-server ↗Pass
- OpenSSF ScorecardNot checked
- Package name not close to a popular packageNo popular package one edit away from @html2pdfconverter/mcp-serverPass
- No critical advisory in the package or its dependencies113 resolved dependencies checked; no critical advisoryosv.dev ↗Pass
- No hidden instructions to the model1 tool description and the README read; no override phrases, credential paths or hidden charactersPass
- Destructive tools are labelledNo tool named like delete, drop or execPass
- Remote endpoint answers the MCP handshakeNot checked
README
View on GitHubHTML2PDF 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
HTML2PDF Converter MCP questions
How do I add HTML2PDF Converter MCP to Claude Code?
Run claude mcp add --env 'YOUR_API_KEY=<YOUR_YOUR_API_KEY>' mcp-server -- npx -y @html2pdfconverter/mcp-server in your terminal. Add --scope user to make it available in every project.
How do I add HTML2PDF Converter MCP to Cursor?
Open ~/.cursor/mcp.json and add the server under mcpServers, using the Cursor config shown in the install section above.
What tools does HTML2PDF Converter MCP provide?
It exposes 1 tool, including generate_pdf.