PDF Letter MCP logo

PDF Letter MCP

Creates offline, DIN 5008-compliant PDFs for German window-envelope letters with previews, signatures, locales, and font discovery.

Install PDF Letter MCP

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

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "pdf-letter-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pdf-letter-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 7 tools correctly ().

Overview

The pdf-letter-mcp MCP server turns structured letter data into print-ready PDFs using a fixed DIN 5008 layout for German window envelopes. It runs locally over stdio, writes output to disk when requested, and provides previews, layout metrics, warnings, locale data, font resolution, and signature-image preparation. Reach for it when an agent needs consistent formal letters without sending content to a web service. Sender profiles keep addresses and signatures on the local machine while letters reference the selected profile.

Use cases

  • Generate formal German letters for window envelopes
  • Preview address placement before writing a PDF
  • Reuse local sender profiles and signatures
  • Prepare scanned signatures for document insertion

Key features

  • DIN 5008 fixed letter layout
  • Offline stdio MCP operation
  • Multi-language dates and address rules
  • Signature cleanup and PNG output
  • Preview rendering with layout warnings
  • System and bundled font resolution

Tools7

What PDF Letter MCP lets your agent do. Expand a tool for its parameters.

Verified live~3.7k 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.

13/13 checks healthy over the last 83d

What it can do

From the 7 tools this server returned when we ran it.

Read-only tools · 7
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age95 days
Maintainers1

Observed 2026-10-31 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 20h ago via OSV.dev · pdf-letter-mcp (npm)

Adoption & maintenance

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

GitHub stars2Stargazers on the source repository.
npm downloads228Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed7Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How PDF Letter MCP works

What pdf-letter-mcp MCP server does

The pdf-letter-mcp MCP server renders structured correspondence as a fixed-layout PDF. Its primary format follows DIN 5008 geometry: a return-address line, recipient block, right-aligned place and date, subject and references, salutation, body, closing, signature, and enclosures. The address area is positioned for DL and C6/C5 window envelopes, with fold and punch marks included in the form.

The renderer supports German and several other locales, including English, French, Spanish, Italian, Dutch, Portuguese, Polish, Turkish, Danish, Swedish, and Czech. Locale data controls fixed texts, date formatting, and address rules. Body content can contain paragraphs, line breaks, bullets, numbered lists, bold or italic markup, and explicit page breaks.

How it works

The server communicates through MCP over stdio and performs rendering on the local machine. create_letter writes a PDF and reports its path, page count, layout measurements, and warnings. preview_letter runs the same layout process without creating a file, which is useful for checking address fit and pagination before saving the result.

Long letters receive continuation headers containing recipient, date, and page number. The closing, signature, printed name, and enclosures remain together across page breaks. A debug layout mode can show the DIN 5008 zones for physical envelope checks.

Signatures may be supplied as image paths. They are placed as an overlay above the printed name without changing the surrounding text positions. Scanned signatures can be trimmed, made transparent, and recolored. The prepare_signature tool can perform that cleanup once, allowing the resulting PNG to be reused.

Setup and configuration

Install dependencies with npm install, then build with npm run build. Start the compiled entry point with Node and register that command in an MCP client.

No environment variable is mandatory. PDF_LETTER_OUTPUT_DIR selects the default PDF directory and otherwise the system temporary directory is used. PDF_LETTER_FONT_DIR adds a font search location, while PDF_LETTER_FONT and PDF_LETTER_FONT_SIZE set typography for the installation. PDF_LETTER_PROFILES changes the sender-profile file location, and PDF_LETTER_PROFILE selects the fallback profile.

Sender profiles store identity, address, place, locale, and an optional signature path outside the prompt. A letter can name a profile rather than repeating those values. If neither a profile nor a sender is available, rendering is refused instead of fabricating sender data.

Tools and capabilities

The pdf-letter-mcp MCP server exposes these tools:

  • create_letter: Render and save a PDF.
  • preview_letter: Render without saving and return layout information.
  • prepare_signature: Produce a cleaned PNG from a scanned signature.
  • get_din5008_spec: Return form geometry in millimetres.
  • list_locales: Show supported languages and fixed texts.
  • list_fonts: List bundled families and resolve names against installed fonts.

Typography uses bundled DejaVu fonts by default, with support for installed system fonts or a .ttf path. The MCP interface intentionally exposes content and document fields rather than arbitrary margin, spacing, image-position, or font-size controls; font settings are installation-wide.

Limitations and notes

The layout is intentionally fixed, with one letter format and no per-letter controls for margins, spacing, signature dimensions, or image offsets. Library building blocks for company letterheads, information blocks, and footers are not exposed through MCP. Signature cleanup options such as trimming, background removal, and ink recoloring depend on the optional sharp package, which the project installs by default. A PNG that already has transparency does not require those operations.

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 Letter MCP

pdf-letter-mcp is an MCP server that connects AI clients to a local letter renderer for DIN 5008-compliant PDFs. Its main tools create or preview letters, prepare scanned signatures, return DIN 5008 geometry, list supported locales, and resolve available fonts. It runs offline over stdio and writes generated PDFs locally.

Install dependencies with `npm install`, build with `npm run build`, and register the compiled Node entry point in your MCP client. The documented command uses `node /absolute/path/to/pdf-letter-mcp/dist/src/index.js`; Claude Code and Claude Desktop configuration examples are provided.

Set `PDF_LETTER_OUTPUT_DIR` to the directory for generated PDFs. If it is unset, the server uses the system temporary directory. The setting can be supplied in the MCP server's environment configuration.

Yes, pdf-letter-mcp can load sender addresses and signature paths from a local profiles file. Set `PDF_LETTER_PROFILES` if needed, select a profile in the letter, or configure `PDF_LETTER_PROFILE` as the fallback. A letter without a profile or sender is rejected.

Yes, the README provides a Claude Desktop configuration using the Node command and compiled server path. The server is a local stdio MCP process, so it does not require a web service or external API.

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 Letter MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/pdf-letter-mcp?style=directory)](https://allmcps.com/mcp/pdf-letter-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/pdf-letter-mcp"><img src="https://allmcps.com/api/badge/pdf-letter-mcp?style=directory" alt="PDF Letter MCP on AllMCPs" /></a>