PDF Generator API

io.github.Br0ski777Published by GitHub account Br0ski777v1.1.0Updated Oct 24, 2026

Generate PDF from HTML or Markdown with custom pages, margins, layout. x402.

Overview

AI-generated overview

A remote MCP server that turns HTML or Markdown into formatted PDF documents, paid per call with USDC via the x402 protocol.

What you can do
Generate a PDF document from HTML or Markdown content, returned as a binary PDF file with custom formatting.
When to use it
Useful when an assistant needs to produce a downloadable, formatted PDF such as a report, invoice, proposal or contract from content it already has. Not intended for capturing live web pages, screenshots or themed Markdown rendering.
Requirements
A remote SSE endpoint; no local runtime, account or API key. Payment is per call in USDC on the Base L2 network through the x402 protocol, so an x402-capable client and a funded wallet are needed. Network access to the endpoint is required.
Before you install
Each PDF generation costs $0.015 in USDC, charged through a crypto wallet, so spending is real money and the wallet must be funded. Content sent for conversion goes to a third-party service. The README also points to a broader marketplace of paid APIs.

Installation

In SourceWeft

  1. Open PDF Generator API in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via SSE. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.Br0ski777%2Fpdf-generator/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "pdf-generator-api": {
      "type": "sse",
      "url": "https://pdf-generator.api.klymax402.com/mcp"
    }
  }
}

README

PDF Generator API

[MCP Server] [x402] [License: MIT]

Generate PDF documents from HTML or Markdown. Custom page size, margins, headers. Ideal for reports and invoices. Pay-per-call via x402 (USDC on Base L2) -- no API key, no signup, no rate-limit wall.

Part of the klymax402 marketplace -- 100 x402 micropayment APIs for AI agents, one wallet, USDC on Base.

Quickstart -- MCP

Add to your MCP client config (Claude Desktop, Cursor, ElizaOS, etc.):

json
{  "mcpServers": {    "pdf-generator": {      "url": "https://pdf-generator.api.klymax402.com/mcp"    }  }}

Quickstart -- HTTP (x402)

bash
curl -X POST "https://pdf-generator.api.klymax402.com/api/generate" \  -H "Content-Type: application/json" \  -d '{"content":"..."}'# -> 402 Payment Required, with an x402 payment challenge in the response body

Any x402-aware client (@x402/fetch, x402-agent-tools, ATXP) handles the 402 -> sign -> retry cycle automatically.

Tools

ToolMethodPathPriceDescription
document_generate_pdfPOST/api/generate$0.015Generate a PDF from HTML or Markdown content

document_generate_pdf

Use this when you need to create a PDF document from HTML or Markdown content. Returns binary PDF with custom formatting.

Parameters

NameTypeRequiredDescription
contentstringyesHTML or Markdown content to convert to PDF
formatstringnoContent format: html or markdown (default: html)
pageSizestringnoPage size: A4, Letter, or Legal (default: A4)
landscapebooleannoLandscape orientation (default: false)
marginsobjectnoCustom margins (default: 20mm all sides)

Example response:

json
binary PDF with Content-Type application/pdf, rendered from "<h1>Invoice #42</h1><p>Total: $1,200</p>" into a formatted A4 document.

When to use: generating reports, invoices, proposals, contracts, or any formatted document from structured data. Essential when you have data/content and need a downloadable PDF.

Not for: capturing a live web page as PDF (use webpage_to_pdf), screenshots (use capture_screenshot), rendering markdown with CSS themes (use text_render_markdown).

Example agent prompts

  • "Create a PDF document from HTML or Markdown content"

Payment

  • Protocol: x402 -- HTTP-native pay-per-call, no signup, no API key
  • Network: Base L2 (eip155:8453)
  • Asset: USDC
  • Facilitator: Coinbase CDP (primary), PayAI (fallback)
  • Also reachable via ATXP (OAuth-wrapped x402, RFC 9728 protected-resource metadata)

Part of klymax402

100 x402 micropayment APIs for AI agents -- one wallet, USDC on Base, zero signup.

License

MIT

Source: README.md at commit d1d6a75

Tools

0
SourceWeft has not read this server's tools yet.

Version history

1
  1. v1.1.0LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declaredRequired10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts