
Pixelletter Mcp
io.github.bitterdev由 GitHub 帳號 bitterdev 發布v1.0.3更新於 Oct 24, 2026
Send physical letters and faxes through the PixelLetter interface, test mode included.
概覽
讓助理透過 PixelLetter 帳號寄送實體信件與傳真,並提供不會列印、寄送或計費的測試模式。
- 可以做什麼
- 把 PixelLetter 的 HTTPS 介面包成本地 stdio 伺服器。工具可將文件或純文字當作紙本信件寄出(也可同時傳真)、只寄傳真、讀取帳號資料與餘額、依訂單編號取消已送出的訂單,以及把文件送到電子發票簽章服務。另有一個參考工具可離線查詢 action 值、寄件中心、服務代碼、限制與錯誤碼。
- 適用情境
- 當助理需要把 PDF 或純文字變成真實郵寄信件、掛號信、傳真或已簽章發票時使用;也適合在正式列印與計費之前,用測試模式完整演練整個流程。
- 執行需求
- 以 Node.js 本地程序執行(npm 套件 pixelletter-mcp,需 npm install 與 npm run build),並需要連線到 PixelLetter 端點的網路。必要環境變數:PIXELLETTER_EMAIL 與 PIXELLETTER_PASSWORD。選用:PIXELLETTER_DEFAULT_DESTINATION、PIXELLETTER_FORCE_TEST_MODE、PIXELLETTER_ENDPOINT、PIXELLETTER_ACCEPT_TERMS、PIXELLETTER_WAIVE_WITHDRAWAL_RIGHT、PIXELLETTER_DEFAULT_LOCATION、PIXELLETTER_TIMEOUT_MS。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Pixelletter Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
pixelletter-mcp
Local MCP server (stdio) for the PixelLetter HTTPS interface. Hand it a PDF and a destination country and PixelLetter prints, folds, franks and posts the letter, optionally as registered mail. It also sends faxes, cancels orders, reads the account balance and drives the electronic invoice signature.
It pairs with pdf-letter-mcp: that server writes a DIN 5008 letter PDF, this one puts it in the post. send_letter takes the absolute path that create_letter returns.
The implementation follows the published documentation: the HTTPS handbook, the e-mail handbook, the two signature handbooks, the reference PHP class (version 2.01) and the public error code list. Three values are not printed in those documents, colour printing, GoGreen postage and the NODUPLEX switch, and they are taken from the hudora/pyPostal client that has been sending real orders with them. They are marked as such in the table below. Nothing else is invented.
How the interface works
Everything is one multipart HTTPS POST to https://www.pixelletter.de/xml/index.php. The form field xml carries the order document, credentials included, and the fields uploadfile0, uploadfile1 and so on carry the documents. The answer is a small XML document: code 100 means the order was accepted, anything else is an error code from the published list. The final result, including whether the recipient address fitted the address window, arrives by e-mail a few hours later.
Test mode
Every sending tool needs an explicit testMode flag, there is no default. testMode: true runs the order exactly like a real one but PixelLetter never prints it, never sends it and never charges for it. testMode: false really posts the letter. Set PIXELLETTER_FORCE_TEST_MODE=true to pin the whole server to test mode while wiring things up.
Install
Register the server in Claude Code:
Or in ~/.claude.json / claude_desktop_config.json:
Environment
Credentials are only read from the environment, nothing is stored in the repository and nothing is written to disk.
Tools
send_letter
Ready made PDF, the normal case:
Registered mail with return receipt, printed in colour on one side only:
Plain text, typeset by PixelLetter, with the signature stored in the account:
Rules the tool enforces before anything is sent:
- One order carries either documents or text, not both. Several documents are converted and merged into one letter, in the order given.
- The destination country is mandatory for letters, a wrong code leads to wrong postage.
- The recipient address has to be visible in the address window area of the document, PixelLetter checks this before dispatch.
- Allowed upload types are
.pdf,.doc,.xls,.ppt,.rtf,.wpd,.psd, 50 MB maximum. Error 053 shows that PixelLetter can restrict this to PDF, so PDF is the safe choice. - Additional services, colour print and duplex are letter only, a pure fax order rejects them. Codes 28 (return receipt) and 29 (personal delivery) need 27 (registered), code 30 (drop-in registered) stands alone. Registered mail is a German product, other destinations run into error 026.
Every option of the interface
Full coverage of the fields the interface documents. "Applies to" says which dispatch type accepts the option, invalid combinations are rejected before the request goes out.
get_interface_reference returns the same list at runtime, including the full error code table.
What the interface does not offer
Named explicitly, because their absence is a property of the API and not an omission of this server:
- No job list. There is no documented call that lists or queries submitted orders.
cancel_orderworks on an order id from the confirmation e-mail,get_account_inforeports the balance, everything else lives in the PixelLetter customer area. - No envelope or paper format, no postage class, no delivery speed, no cover sheet, no reply envelope, no sender identification. These are no fields of the interface. Letters go into a DIN C6/5 window envelope and the postage follows weight and destination country.
- No address correction. Premiumadress shows up in error 088, but it has to be set up by PixelLetter support for the account and has no request field.
- Postcards, upload templates and bulk orders. The reference class and the error codes show they exist (
font, template number, action 5), but no handbook documents their action values or their field layout. Sending a guessed action could produce a real, wrong dispatch, so they are left out. refin the auth block has no documented meaning and is always sent empty, exactly like the reference class does.
Verification
The tests never touch the live API. The HTTP layer is exercised through an injected fetch, which checks the endpoint, the xml field, the uploadfileN parts, the test mode flag and the error code mapping.
License
MIT, see LICENSE.
來源:README.md,提交 dfdf924
工具
0版本歷史
1- v1.0.3最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分