原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

PDF Letter MCP

作者:bitterdev版本 1.0.3i★ –i在你的电脑上运行
注册名称io.github.bitterdev/pdf-letter-mcp

安装

概览

作者提供的说明(英文原文)

Renders letters as print ready PDFs, DIN 5008 compliant for German window envelopes.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 文档、表格与办公

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: PDF_LETTER_OUTPUT_DIR, PDF_LETTER_FONT_DIR

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "pdf-letter": {
      "command": "npx",
      "args": [
        "-y",
        "pdf-letter-mcp"
      ],
      "env": {
        "PDF_LETTER_OUTPUT_DIR": "your-value",
        "PDF_LETTER_FONT_DIR": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add pdf-letter --env PDF_LETTER_OUTPUT_DIR=your-value --env PDF_LETTER_FONT_DIR=your-value -- npx -y pdf-letter-mcp

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "pdf-letter": {
      "command": "npx",
      "args": [
        "-y",
        "pdf-letter-mcp"
      ],
      "env": {
        "PDF_LETTER_OUTPUT_DIR": "your-value",
        "PDF_LETTER_FONT_DIR": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "pdf-letter": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "pdf-letter-mcp"
      ],
      "env": {
        "PDF_LETTER_OUTPUT_DIR": "your-value",
        "PDF_LETTER_FONT_DIR": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • PDF_LETTER_OUTPUT_DIR env
    Directory for generated letter PDFs, defaults to the system temp directory
  • PDF_LETTER_FONT_DIR env
    Additional font directory searched when a font family is resolved by name

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 bitterdev 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“文档、表格与办公”中的其他服务器比较i

  • 星标数多于此分类中其他 2193 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 2193 个服务器的 21% 更新
  • 基础检查结果等于或优于此分类中其他 2193 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

PDF Letter MCP 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.0.3)于3个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Agent-Native Calendar, Excel MCP Server, MCP Server for Excel

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Agent-Native Calendar

作者:BuilderIO

Agent-Native Google Calendar - manage events, sync, and public booking

在云端运行★ 7,620MIT2个月前更新
安装

Excel MCP Server

作者:haris-musa

Create and edit Excel files with AI: charts, PivotTables, formulas. No Excel needed.

在你的电脑上运行★ 4,276MIT6天前更新
安装

MCP Server for Excel

作者:sbroenne

Excel automation for AI - Sheets, Power Query, DAX, VBA, Tables, Ranges and more. Windows only.

在你的电脑上运行★ 847MIT3天前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

pdf-letter-mcp

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.

Features

  • One layout, no variants: return address line, recipient, right aligned "place, date", bold subject block with references below it, salutation, body, closing, signature, enclosures
  • Address field 45 mm high ending at 105 mm from the left, with return address line, remark zone (Einschreiben, Nicht nachsenden) and address zone
  • Return address, remarks and recipient are balanced inside the address field, so the block sits evenly in the envelope window and further address lines still fit. addressLayout: "din" switches back to the fixed zone boundaries
  • Page breaks keep closing, signature image, name and enclosures together, follow-up pages carry recipient, date and page number
  • Subject 33 mm below the address field, place and date three lines above it
  • Fold marks at 105 mm and 210 mm, punch mark at 148.5 mm
  • DIN 5008 writing margin of 25 mm on the left, and the address field follows it, so address, subject and body share one edge. The field keeps its right edge at 105 mm and stays inside the 90 mm envelope window
  • Closing, one blank line, printed name. signature.spaceMm reserves more room for signing by hand
  • Signature as an image file: PNG with alpha channel keeps its transparency, the image is laid over the blank line above the printed name and never shifts the text. Optional crop, background removal and ink recolouring for scans
  • Multilingual: de, en, fr, es, it, nl, pt, pl, tr, da, sv, cs with locale aware date formats and address rules per country
  • Language aware hyphenation, bold/italic markup, bullet and numbered lists, automatic page breaks with continuation headers
  • Page numbers and a layout debug mode that draws the DIN 5008 zones
  • Embedded Unicode fonts (DejaVu), any installed system font or a .ttf path

Install

npm install

npm run build

Register the server in Claude Code:

claude mcp add pdf-letter -- node "/absolute/path/to/pdf-letter-mcp/dist/src/index.js"

Or in ~/.claude.json / claude_desktop_config.json:

{

"mcpServers": { "pdf-letter": { "command": "node", "args": ["/absolute/path/to/pdf-letter-mcp/dist/src/index.js"], "env": { "PDF_LETTER_OUTPUT_DIR": "~/Documents/Briefe" } } } }

Environment

VariablePurpose
PDF_LETTER_OUTPUT_DIRDefault directory for generated PDFs. Falls back to the system temp directory.
PDF_LETTER_FONT_DIRAdditional directory that is searched when a font family is resolved by name.
PDF_LETTER_FONTFont family for every letter, e.g. Arial. Default is the bundled DejaVu Sans.
PDF_LETTER_FONT_SIZEFont size in pt for every letter, default 11.
PDF_LETTER_PROFILESPath to the sender profiles, default ~/.config/pdf-letter-mcp/profiles.json.
PDF_LETTER_PROFILEProfile used when a letter names none and the file has no defaultProfile.

Sender profiles

Sender addresses and signatures live in a file on the machine, never in the prompt. A letter names a profile, the server fills in address, return address line and signature image verbatim.

{

"defaultProfile": "erika", "profiles": { "erika": { "description": "Erika Musterfrau, privat", "sender": { "name": "Erika Musterfrau", "street": "Musterstraße 12", "postalCode": "12345", "city": "Musterstadt", "country": "DE" }, "place": "Musterstadt", "locale": "de", "signature": { "path": "/pfad/zur/unterschrift.png" } } } }

create_letter then only needs "profile": "erika" plus the content. The profile owns the identity: a sender or signature passed in the call is replaced by the profile, place, locale and closing are defaults that a letter may override. list_profiles shows what is available. Without a profile and without a sender the letter is refused instead of being invented.

The file belongs outside the repository, profiles.json is in .gitignore.

Layout is fixed

The MCP tools take content only: addresses, date, subject, references, text, signature, enclosures. There are no parameters for margins, spacing, font, image size or position, and unknown fields sent by a client are dropped. Typography is an installation setting (PDF_LETTER_FONT, PDF_LETTER_FONT_SIZE), so every letter of one installation looks identical. The building blocks for a company letterhead, an information block and a footer are still in the library, but they are not reachable through the MCP.

Tools

ToolPurpose
create_letterRenders the letter and writes the PDF. Returns path, page count, layout metrics and warnings.
preview_letterSame rendering without writing a file, for checking the layout.
prepare_signatureCleans a scanned signature (crop, transparent background, ink colour) and writes a PNG.
get_din5008_specReturns the millimetre geometry of a form.
list_localesLists the supported languages and their fixed texts.
list_fontsLists built-in families and resolves a font name against the installed system fonts.
create_letter

The sender appears only in the small return address line above the recipient. Place and date sit right aligned above the bold subject block, references go directly below the subject.

{

"locale": "de", "sender": { "name": "Erika Musterfrau", "street": "Musterstraße 12", "postalCode": "12345", "city": "Musterstadt", "country": "DE" }, "recipient": { "company": "Stadtwerke Musterstadt", "street": "Industriestraße 8", "postalCode": "12345", "city": "Musterstadt" }, "place": "Musterstadt", "date": "2026-07-24", "dateStyle": "long", "subject": "Widerspruch gegen die Jahresabrechnung vom 01.07.2026", "subjectLines": ["Zeichen: SW-2026-0815", "Kunden-Nummer: 000000000"], "body": "hiermit widerspreche ich der Jahresabrechnung.\n\n- korrigierte Abrechnung\n- Eingangsbestätigung", "signature": { "path": "/pfad/zur/unterschrift.png", "widthMm": 45, "removeBackground": true, "trim": true, "name": "Erika Musterfrau" }, "enclosures": ["Kopie der Abrechnung"] }

Everything except sender, recipient and body is optional. The salutation is derived from the recipient (Frau plus Dr. Erika Mustermann becomes Sehr geehrte Frau Dr. Mustermann,), the date defaults to today, the closing to the locale default.

Body markup
  • Blank line: new paragraph
  • Single newline: line break (set bodyMode to markdown to reflow instead)
  • - item or 1. item: bullet or numbered list
  • **bold**, *italic*
  • \pagebreak on its own line: forced page break
Signature

Two ways, both end up as a real image in the PDF:

  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 before it goes into a letter.

trim, removeBackground and inkColor need the optional sharp dependency, which is installed by default. A PNG that already has a transparent background works without it.

The image is an overlay: closing, one blank line, printed name stay exactly where they are, and the signature sits on top of that blank line and across the closing, the way a signature is written over "Mit freundlichen Grüßen" on paper. That overlap is the intended result.

Size and position are decided by the renderer, not by the caller. The signature is scaled to roughly the width of the closing line, around 50 mm, capped proportionally at 1.2 times that width and 28 mm in height. There is no parameter for width, height, offset or spacing, so nothing can shift the layout letter by letter.

Verification

npm test          # geometry, address rules, typography, rendering

npm run examples # writes sample letters to examples/

examples/ holds the German letter, the same letter in English and a debug variant that draws the DIN 5008 zones, so the address field position can be checked against a window envelope. preview_letter reports the same measurements as JSON, plus warnings when the address is too long or does not fit the address field.

License

MIT, see LICENSE. The bundled DejaVu fonts are covered by the Bitstream Vera and Arev licenses.

问 PopNx