PDF Generator API logo

PDF Generator API

Creates formatted PDFs from HTML or Markdown with configurable page size, orientation, and margins through MCP.

Install PDF Generator API

Pick your client, then add it in one click or paste the config.

Streamable HTTP (Remote)
Server URL
https://pdf-generator.api.klymax402.com/mcp

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Overview

The PDF Generator API MCP server converts HTML or Markdown into PDF documents with configurable page size, orientation, and margins. It exposes a single `document_generate_pdf` tool over a hosted MCP endpoint and returns a binary PDF. Requests use x402 pay-per-call payments in USDC on Base L2 rather than an API key. Use it for reports, invoices, proposals, contracts, and other generated documents, but not for webpage capture or screenshots.

Use cases

  • Generate invoices from HTML or Markdown
  • Create PDF reports from structured content
  • Render proposals as downloadable PDFs
  • Format contracts into PDF documents

Key features

  • HTML-to-PDF conversion
  • Markdown-to-PDF conversion
  • A4, Letter, and Legal page sizes
  • Portrait or landscape orientation
  • Custom page margins
  • x402 USDC pay-per-call access

Tools6

What PDF Generator API lets your agent do. Expand a tool for its parameters.

Self-reported~79 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

24/26 checks healthy over the last 111d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit2mo agoMost recent push to the default branch.
Tools exposed6Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How PDF Generator API works

What the PDF Generator API MCP server does

The PDF Generator API MCP server turns supplied HTML or Markdown into a downloadable PDF. Its single MCP tool, document_generate_pdf, accepts the document content and optional presentation settings, then returns binary data with an application/pdf content type.

The service is suited to generated documents whose source content is already available to an agent or application. Typical inputs include report text, invoice markup, proposal content, and contract documents. It is not intended to capture a live webpage, create screenshots, or apply CSS themes to Markdown; those use cases are identified separately in the project documentation.

How it works

The PDF Generator API MCP server is available through the hosted MCP URL at https://pdf-generator.api.klymax402.com/mcp. An MCP client can add that URL to its server configuration and invoke the exposed tool. The underlying HTTP generation endpoint is /api/generate.

Each request supplies a required content string. The optional format field selects html or markdown, with HTML as the default. pageSize accepts A4, Letter, or Legal, and defaults to A4. Set landscape to true for landscape orientation; otherwise, the document uses portrait orientation. The margins object controls page margins and defaults to 20 mm on all sides.

Setup and configuration

Configure the hosted MCP endpoint in a compatible client rather than installing a local process. The endpoint is a standard remote MCP URL, so the client must support connecting to remote MCP servers.

Calls are paid through x402. The documented network is Base L2 (eip155:8453), and the payment asset is USDC. The service states that requests do not require an API key or account signup. An x402-aware HTTP client can handle the payment challenge and retry sequence; the documented examples include @x402/fetch, x402-agent-tools, and ATXP. The listed price is $0.015 per generation call.

Tools and capabilities

document_generate_pdf provides these inputs:

  • content: Required HTML or Markdown source.
  • format: html or markdown; defaults to html.
  • pageSize: A4, Letter, or Legal; defaults to A4.
  • landscape: Boolean orientation switch; defaults to false.
  • margins: Custom margin settings; defaults to 20 mm on every side.

The result is a binary PDF rendered with the selected formatting. This makes the PDF Generator API MCP server appropriate when an agent needs to turn structured or generated text into a file that can be downloaded or passed to another workflow.

Limitations and notes

The service requires x402 payment handling for calls, using USDC on Base L2. The README distinguishes this tool from webpage-to-PDF capture, screenshot generation, and Markdown rendering with CSS themes, so those should not be treated as supported capabilities here.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about PDF Generator API

PDF Generator API is an MCP server that connects AI clients to a hosted PDF generation API. Its main tool, `document_generate_pdf`, converts HTML or Markdown into a binary PDF and supports page size, landscape orientation, and custom margins. Calls use x402 payments in USDC on Base L2 without an API key.

Add the hosted MCP URL to your client configuration; no local installation is documented. Use `https://pdf-generator.api.klymax402.com/mcp` as the server URL, as shown for Claude Desktop and Cursor. Calls also require an x402-aware payment flow using USDC on Base L2.

Yes, the README provides Cursor as an MCP client configuration example. Add the hosted endpoint `https://pdf-generator.api.klymax402.com/mcp` to Cursor, then invoke `document_generate_pdf` with HTML or Markdown content and any supported formatting options.

Each documented generation call costs $0.015. Payment uses the x402 protocol with USDC on Base L2 (`eip155:8453`), and the service documentation identifies Coinbase CDP as the primary facilitator and PayAI as a fallback.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPDF Generator API AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/pdf-generator-api?style=directory)](https://allmcps.com/mcp/pdf-generator-api)
HTML Embed
<a href="https://allmcps.com/mcp/pdf-generator-api"><img src="https://allmcps.com/api/badge/pdf-generator-api?style=directory" alt="PDF Generator API on AllMCPs" /></a>