Get the FREE Ultimate OpenClaw Setup Guide →

pdf-generator

A MCP server for generating PDFs using PDFKit and Puppeteer

How to use

The pdf-generator MCP server allows you to create PDFs programmatically using PDFKit and Puppeteer, making it an invaluable tool for developers looking to automate document generation. With its robust capabilities, you can generate complex layouts, incorporate images, and style your PDFs dynamically based on user input or data sources.

Once connected to the pdf-generator MCP server, you can send requests to generate PDFs by specifying the content and layout parameters. You can leverage its ability to handle HTML input, which Puppeteer converts into well-structured PDF documents. For best results, ensure your queries include essential styles and content types that the server can process efficiently.

How to install

Prerequisites

  • Node.js (version 14 or higher recommended)

Option A: Quick start with npx

You can quickly start using the pdf-generator MCP server without installation by running:

npx -y ivarvd-hldng/pdf-generator-mcp-server

Option B: Global install alternative

Alternatively, you can install the server globally by cloning the repository and using npm:

git clone https://github.com/ivarvd-hldng/pdf-generator-mcp-server.git
cd pdf-generator-mcp-server
npm install
npm start

Additional notes

When configuring the pdf-generator server, ensure that you have the necessary environment variables set for Puppeteer to run smoothly, especially if you're using it in a headless environment. Common issues may arise from missing dependencies, so make sure your environment is properly configured to handle the PDF generation process.

Related MCP Servers

Sponsor this space

Reach thousands of developers