Que pouvez-vous faire avec 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.
Installation
Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).
@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>"
}
}
}
}
Variables d'environnement
YOUR_API_KEYobligatoire secret Your API key for the service
Documentation
Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent 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
Questions fréquentes
Qu'est-ce que io.github.html2pdfconverter/mcp-server ?
MCP server for HTML2PDF Converter
Comment installer io.github.html2pdfconverter/mcp-server ?
Il s'exécute sur votre machine. Dans 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. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.
Faut-il une clé API pour io.github.html2pdfconverter/mcp-server ?
Oui. Il attend YOUR_API_KEY, à renseigner dans sa configuration.
io.github.html2pdfconverter/mcp-server est-il open source ?
Oui. Son code est sur GitHub sous licence MIT.
Qui maintient io.github.html2pdfconverter/mcp-server ?
Il est publié par html2pdfconverter. AI.tn le référence sans le maintenir ni le recommander.
Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.