Renders letters as print ready PDFs, DIN 5008 compliant for German window envelopes.
Pdf MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. Renders letters as print ready PDFs, DIN 5008 compliant for German window envelopes.
Local MCP server (stdio) that turns structured letter data into a print ready PDF. One fixed layout, the everyday German letter, with the recipient address positioned per DIN 5008 so it sits exactly in the window of DL and C6/C5 window envelopes. No web service, no external API, everything runs offline on your machine.
Once Pdf is connected, these are the calls the assistant has available:
create_letter — Renders the letter and writes the PDF. Returns path, page count, layout metrics and warningspreview_letter — Same rendering without writing a file, for checking the layoutprepare_signature — Cleans a scanned signature (crop, transparent background, ink colour) and writes a PNGget_din5008_spec — Returns the millimetre geometry of a formlist_locales — Lists the supported languages and their fixed textslist_fonts — Lists built-in families and resolves a font name against the installed system fontsSignature — 1. Pass the file directly: signature.path plus trim and removeBackground. The scan is cleaned on every render. 2. Clean it once withYou will need one environment variable: PDF_LETTER_OUTPUT_DIR. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
npm on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.
Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Pdf's toolset — create_letter, preview_letter, prepare_signature and 4 more — is a fair guide to whether it matches your workflow. It is maintained by bitterdev; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| create_letter | Renders the letter and writes the PDF. Returns path, page count, layout metrics and warnings. |
| preview_letter | Same rendering without writing a file, for checking the layout. |
| prepare_signature | Cleans a scanned signature (crop, transparent background, ink colour) and writes a PNG. |
| get_din5008_spec | Returns the millimetre geometry of a form. |
| list_locales | Lists the supported languages and their fixed texts. |
| list_fonts | Lists built-in families and resolves a font name against the installed system fonts. |
| Signature | 1. Pass the file directly: signature.path plus trim and removeBackground. The scan is cleaned on every render. 2. Clean it once with prepare_signature and reuse the resulting PNG. Faster and lets you check the result bef |
{
"mcpServers": {
"pdf-letter": {
"command": "node",
"args": ["/absolute/path/to/pdf-letter-mcp/dist/src/index.js"],
"env": {
"PDF_LETTER_OUTPUT_DIR": "~/Documents/Briefe"
}
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| PDF_LETTER_OUTPUT_DIR | Filesystem location the server is allowed to use. | Optional |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.