JSPM

@pdfbroker/mcp-server

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 210
  • Score
    100M100P100Q8688F
  • License MIT

PdfBroker.io MCP server — generate PDFs from HTML with AI agents

Package Exports

  • @pdfbroker/mcp-server
  • @pdfbroker/mcp-server/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@pdfbroker/mcp-server) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@pdfbroker/mcp-server

Generate PDFs from HTML using AI agents via PdfBroker.io.

This package connects Claude Desktop, Cursor, and other MCP clients to the PdfBroker.io cloud PDF generation API.

Setup

  1. Sign up at pdfbroker.io
  2. Go to Members → API Credentials and copy your Client ID and Client Secret
  3. Add to your Claude Desktop config (Settings → Developer → Edit Config):
{
  "mcpServers": {
    "pdfbroker": {
      "command": "npx",
      "args": ["-y", "@pdfbroker/mcp-server"],
      "env": {
        "PDFBROKER_CLIENT_ID": "pb_cid_your_id_here",
        "PDFBROKER_CLIENT_SECRET": "pb_sec_your_secret_here"
      }
    }
  }
}
  1. Restart Claude Desktop

Available Tools

  • html_to_pdf — Convert HTML/CSS to PDF using WeasyPrint (PDF/A, PDF/UA support)
  • html_to_pdf_wk — Convert HTML to PDF using wkhtmltopdf (JS support, free tier)

Example

Ask Claude: "Create a PDF invoice for Acme Corp with 3 line items"

Claude will generate HTML, call the html_to_pdf tool, and return a download link for the PDF.

Cursor / VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "pdfbroker": {
      "command": "npx",
      "args": ["-y", "@pdfbroker/mcp-server"],
      "env": {
        "PDFBROKER_CLIENT_ID": "pb_cid_your_id_here",
        "PDFBROKER_CLIENT_SECRET": "pb_sec_your_secret_here"
      }
    }
  }
}

Claude Code

Claude Code supports direct HTTP connections — no wrapper needed:

claude mcp add-json pdfbroker '{
  "type": "http",
  "url": "https://mcp.pdfbroker.io/",
  "headers": {
    "X-PdfBroker-ClientId": "pb_cid_your_id_here",
    "X-PdfBroker-ClientSecret": "pb_sec_your_secret_here"
  }
}'

Requirements

  • Node.js 18+
  • PdfBroker.io account with API credentials

Environment Variables

Variable Required Description
PDFBROKER_CLIENT_ID Yes Your Client ID from pdfbroker.io
PDFBROKER_CLIENT_SECRET Yes Your Client Secret from pdfbroker.io
PDFBROKER_MCP_URL No Override server URL (default: https://mcp.pdfbroker.io/)