# PDF Generator API [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/Br0ski777/pdf-generator-x402  
**GitHub Stars:** 0  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/pdf-generator-api

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

## Tools
Capabilities this server exposes over MCP:

- **document_generate_pdf** — Generate a PDF from HTML or Markdown content
- **content** — HTML or Markdown content to convert to PDF
- **format** — Content format: html or markdown (default: html)
- **pageSize** — Page size: A4, Letter, or Legal (default: A4)
- **landscape** — Landscape orientation (default: false)
- **margins** — Custom margins (default: 20mm all sides)

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

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

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/pdf-generator-api/readme_

