What can you do with io.github.html2pdfconverter/mcp-server?
generate_pdf: Converts a URL or raw HTML string into a PDF and saves it to a temporary file, returning the file path.
Install
Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).
@html2pdfconverter/mcp-serverclaude mcp add io-github-html2pdfconverter-mcp-server -e 'YOUR_API_KEY=<your your_api_key>' -- npx -y @html2pdfconverter/mcp-server@1.0.5
{
"mcpServers": {
"io-github-html2pdfconverter-mcp-server": {
"command": "npx",
"args": [
"-y",
"@html2pdfconverter/mcp-server@1.0.5"
],
"env": {
"YOUR_API_KEY": "<your your_api_key>"
}
}
}
}
Environment variables
YOUR_API_KEYrequired secret Your API key for the service
Documentation
From the project's README on GitHub, refreshed weekly. Links open on GitHub.
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
- 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
Frequently asked questions
What is io.github.html2pdfconverter/mcp-server?
MCP server for HTML2PDF Converter
How do I install io.github.html2pdfconverter/mcp-server?
It runs on your machine. In Claude Code: claude mcp add io-github-html2pdfconverter-mcp-server -e 'YOUR_API_KEY=<your your_api_key>' -- npx -y @html2pdfconverter/mcp-server@1.0.5. For other clients, paste the JSON configuration from this page into their MCP settings.
Does io.github.html2pdfconverter/mcp-server need an API key?
Yes. It expects YOUR_API_KEY, which you set in its configuration.
Is io.github.html2pdfconverter/mcp-server open source?
Yes. Its code is on GitHub under the MIT license.
Who maintains io.github.html2pdfconverter/mcp-server?
It is published by html2pdfconverter. AI.tn lists it but does not maintain or endorse it.
From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.