pretext-pdf

media MCP Server

Generate PDFs from JSON — declarative, serverless, no Chromium. TypeScript-first with professional typography.

VerifiedInstall Ready
mediamediatypescript
4 views0 stars0 forksv1.3.6MIT

Why This Matters

Discovered via github-topic:mcp and last synced 3mo ago.

VerifiedInstall Ready
Source
github-topic:mcp
Stars
0
Last synced
3mo ago
Install
Instructions detected

Install

1. Install the package

npx pretext-pdf

2. Add to claude_desktop_config.json

{
  "mcpServers": {
    "pretext-pdf": {
      "command": "npx",
      "args": [
        "pretext-pdf"
      ]
    }
  }
}

Config file location: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) / %APPDATA%\Claude\claude_desktop_config.json (Windows)

42
Tools
0
Resources
0
Prompts
Standard I/O
Transport

Available Tools (42)

marked

`pretext-pdf/markdown` entry point and `--markdown` CLI flag

table

Fixed/proportional/auto columns, colspan, rowspan, repeating headers across page breaks

toc

Auto-generated table of contents with accurate page numbers (two-pass)

Feature

Config key

loadAsset

2b

Peer

When you need it

Element

What it does

blockquote

Left border + background

form-field

Interactive text/checkbox/radio/dropdown/button (with `flattenForms` to bake)

Hyperlinks

`paragraph.url`, `heading.url`, `heading.anchor`, `span.href`

Margin

62%

qrcode

`qr-code` element

paragraph

Text block — font, size, color, align, background, letterSpacing, smallCaps, tabularNumbers, multi-column (`columns` + `columnGap`), RTL (`dir`)

rich-paragraph

Mixed bold/italic/color/size/super/subscript spans with inline hyperlinks

callout

Info / warning / tip / note callout boxes

Hook

Stage

Future

Variable fonts, OpenType features, PDF/A, PDF/UA accessibility

Metric

Q4 2025

Flag

Meaning

image

PNG/JPG/WebP with sizing, alignment, float left/right with `floatText` or rich `floatSpans`

qr-code

Scannable QR code — UPI, URLs, vCards. Requires `qrcode` peer dep.

Watermarks

`doc.watermark`

measure

3

bwip-js

`barcode` element (100+ symbologies)

heading

H1–H4 with bookmarks, URL links, internal anchors, tabularNumbers, RTL

svg

Embedded SVG graphics with auto-sizing from viewBox

footnote-def

Paired with `span.footnoteRef` for proper footnote numbering + zone reservation

validate

1

Revenue

$45M

code

Monospace code block with background, padding, optional syntax highlighting via `highlight.js` (`language` field required), `dir` for RTL code

chart

Vega-Lite data visualisation as vector SVG. Requires `vega` + `vega-lite`.

Hyphenation

`doc.hyphenation`

Environment

Status

list

Ordered/unordered, recursive nesting, `nestedNumberingStyle: 'restart' \

barcode

100+ symbologies — EAN-13, Code128, PDF417, DataMatrix, etc. Requires `bwip-js`.

Encryption

`doc.encryption`

render

5

float-group

Image float with wrapped text — image anchored left or right with `floatText` or `floatSpans` flowing alongside

comment

PDF sticky-note annotation (visible in Acrobat/Preview sidebar)

Metadata

`doc.metadata`

Document

Render time

Phase

Feature

Works Well With - Skills

Self Improving Agent

Captures and maintains learnings, errors, and corrections. Use when a command fails, the user corrects an assumption, a capability is missing, knowledge is outdated, or a better approach is found. Review relevant saved guidance before major tasks, reuse, and promotion; revalidate it according to wha

3993 starsHas guide

referrals

When the user wants to create, optimize, or analyze a referral program, affiliate program, or word-of-mouth strategy. Also use when the user mentions 'referral,' 'affiliate,' 'ambassador,' 'word of mouth,' 'viral loop,' 'refer a friend,' 'partner program,' 'referral incentive,' 'how to get referrals,' 'customers referring customers,' or 'affiliate payout.' Use this whenever someone wants existing users or partners to bring in new customers. For launch-specific virality, see launch.

1104 starsHas guide

revops

When the user wants help with revenue operations, lead lifecycle management, or marketing-to-sales handoff processes. Also use when the user mentions 'RevOps,' 'revenue operations,' 'lead scoring,' 'lead routing,' 'MQL,' 'SQL,' 'pipeline stages,' 'deal desk,' 'CRM automation,' 'marketing-to-sales handoff,' 'data hygiene,' 'leads aren't getting to sales,' 'pipeline management,' 'lead qualification,' or 'when should marketing hand off to sales.' Use this for anything involving the systems and proc

1104 starsHas guide

schema

When the user wants to add, fix, or optimize schema markup and structured data on their site. Also use when the user mentions "schema markup," "structured data," "JSON-LD," "rich snippets," "schema.org," "FAQ schema," "product schema," "review schema," "breadcrumb schema," "Google rich results," "knowledge panel," "star ratings in search," or "add structured data." Use this whenever someone wants their pages to show enhanced results in Google. For broader SEO issues, see seo-audit. For AI search

1104 starsHas guide