PixelLetter MCP

by bitterdev

Not rated
GitHub

About

Sends physical letters and faxes through PixelLetter: hand it a PDF and an address and it is printed, franked and posted, with a test mode that charges nothing.

Details

Author
bitterdev
Categories
Communication, Productivity

Setup

Install PixelLetter MCP in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/bitterdev/pixelletter-mcp

Follow the installation instructions in the repository README, then restart your MCP client.

Local MCP server (stdio) for thePixelLetterHTTPS 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 withpdf-letter-mcp: that server writes a DIN 5008 letter PDF, this one puts it in the post.send_lettertakes the absolute path thatcreate_letterreturns.

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 thehudora/pyPostalclient that has been sending real orders with them. They are marked as such in the table below. Nothing else is invented.

Everything is one multipart HTTPS POST tohttps://www.pixelletter.de/xml/index.php. The form fieldxmlcarries the order document, credentials included, and the fieldsuploadfile0,uploadfile1and so on carry the documents. The answer is a small XML document: code100means 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.

Every sending tool needs an explicittestModeflag, there is no default.testMode: trueruns the order exactly like a real one but PixelLetter never prints it, never sends it and never charges for it.testMode: falsereally posts the letter. SetPIXELLETTER_FORCE_TEST_MODE=trueto pin the whole server to test mode while wiring things up.

claude mcp add pixelletter \ --env PIXELLETTER_EMAIL=you@example.com \ --env PIXELLETTER_PASSWORD=your-password \ -- node "/absolute/path/to/pixelletter-mcp/dist/src/index.js"

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

{ "mcpServers": { "pixelletter": { "command": "node", "args": ["/absolute/path/to/pixelletter-mcp/dist/src/index.js"], "env": { "PIXELLETTER_EMAIL": "you@example.com", "PIXELLETTER_PASSWORD": "your-password", "PIXELLETTER_DEFAULT_DESTINATION": "DE" } } } }

Credentials are only read from the environment, nothing is stored in the repository and nothing is written to disk.

{ "testMode": true, "files": ["/Users/you/Documents/Briefe/2026-07-24-widerspruch.pdf"], "destination": "DE", "transaction": "widerspruch-4711" }

Registered mail with return receipt, printed in colour on one side only:

{ "testMode": false, "files": ["/Users/you/Documents/Briefe/kuendigung.pdf"], "destination": "DE", "registered": true, "returnReceipt": true, "colorPrint": true, "duplex": false }

Plain text, typeset by PixelLetter, with the signature stored in the account:

{ "testMode": true, "address": ["Erika Mustermann", "Musterstr. 28", "81237 Musterstadt", "Deutschland"], "subject": "Ihre Anfrage vom 12.07.2026", "text": "Hallo Frau Mustermann,\n\nvielen Dank für Ihre Anfrage.\n\nMit freundlichen Grüßen\n\n%Unterschrift%\nMax Mustermann", "destination": "DE" }

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.

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_referencereturns the same list at runtime, including the full error code table.

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.

npm test # XML payloads, response parsing, option rules, configuration, HTTP layer with a mocked fetch

The tests never touch the live API. The HTTP layer is exercised through an injectedfetch, which checks the endpoint, thexmlfield, theuploadfileNparts, the test mode flag and the error code mapping.

Manage your WhatsApp, SMS and Phone Calls using a single MCP connector

Connect to any function, any language, across network boundaries using AgentRPC.

Access your meeting transcripts, summaries, and action items from any AI assistant.

Connect Claude, ChatGPT, and other AI tools to your Granola meeting notes via MCP. Query your notes, search transcripts, and get meeting insights in your favorite AI assistants.

Build with the Kudosity API to send SMS and MMS. Access developer docs, API references and live testing tools to send messages, manage contact lists, configure webhooks and more.

Send SMS, WhatsApp, and RCS messages programmatically with DLT compliance. Manage contacts, schedule campaigns, and track delivery reports.

Interact with Twilio APIs to send messages, manage phone numbers, configure your account, and more.

The VoIPstudio MCP server gives compatible AI assistants secure access to authorised VoIPstudio account data, including recordings, call detail records, live calls and voicemails in order to query call activity, analyse patterns, identify agent performance issues and generate QA or operations reports in plain English.

A bridge server connecting Agent Communication Protocol (ACP) agents with Model Context Protocol (MCP) clients.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.