Postbot
v0.1.0Send real paper letters in the Czech Republic, ordinary or registered, via Česká pošta.
Self-hosted Postbot MCP server. It lets an AI agent (Claude, Cursor, ChatGPT and other MCP clients) mail a real paper letter anywhere in the Czech Republic. The server talks to Česká pošta's DopisOnline API with your own DopisOnline account; Česká pošta prints, envelopes and delivers the letter. Prefer no setup? The hosted server at https://postbot.cz/mcp needs no Česká pošta account and charges per letter. See postbot.cz/pro-agenty. Česká pošta runs a public test endpoint that accepts real API calls and discards them. Its credentials are dreplech / dreplech.
Summary extracted from the README.
@postbotcz/mcp
Self-hosted Postbot MCP server. It lets an AI agent (Claude, Cursor, ChatGPT and other MCP clients) mail a real paper letter anywhere in the Czech Republic. The server talks to Česká pošta's DopisOnline API with your own DopisOnline account; Česká pošta prints, envelopes and delivers the letter.
Prefer no setup? The hosted server at https://postbot.cz/mcp needs no Česká pošta account and charges per letter. See postbot.cz/pro-agenty.
Quick start (Sandbox, no real mail)
Česká pošta runs a public test endpoint that accepts real API calls and discards them. Its credentials are dreplech / dreplech.
Claude Code
claude mcp add postbot \
-e POSTBOT_TEST=1 -e POSTBOT_CP_USER=dreplech -e POSTBOT_CP_PASSWD=dreplech \
-- npx -y @postbotcz/mcp
Claude Desktop, Cursor and other clients (mcpServers config):
{
"mcpServers": {
"postbot": {
"command": "npx",
"args": ["-y", "@postbotcz/mcp"],
"env": {
"POSTBOT_TEST": "1",
"POSTBOT_CP_USER": "dreplech",
"POSTBOT_CP_PASSWD": "dreplech"
}
}
}
}
Then ask your agent: "Send a test letter to Jan Novák, Dlouhá 5, 110 00 Praha." It returns a Česká pošta order code.
Mailing real letters
Set POSTBOT_TEST=0 and use your DopisOnline credentials. Every letter is then printed and posted, and Česká pošta charges you for it under your DopisOnline account terms. A self-hosted send never passes through Postbot, and Postbot charges nothing for it.
Environment
| Variable | Required | Meaning |
|---|---|---|
POSTBOT_TEST |
yes | 1 sends to the Sandbox (no mail). 0 mails real, billable letters. There is no default: an unset or unknown value refuses every tool call. |
POSTBOT_CP_USER |
yes | DopisOnline user name (dreplech in the Sandbox). |
POSTBOT_CP_PASSWD |
yes | DopisOnline password (dreplech in the Sandbox). |
POSTBOT_FROM_NAME |
for registered mail | Default sender name. Registered letters need a sender; a tool call can pass from instead. |
POSTBOT_FROM_COMPANY |
no | Default sender company. |
POSTBOT_FROM_STREET, POSTBOT_FROM_HOUSE, POSTBOT_FROM_CITY, POSTBOT_FROM_ZIP |
with POSTBOT_FROM_NAME |
Default sender address. |
Tools
| Tool | What it does |
|---|---|
send_letter_cz |
Mails one letter. Input: to (Czech address), document (markdown, text, pdfBase64 or pdfUrl), service (obycejne ordinary or doporucene registered), optional from, jobRef, note. Markdown and text are rendered to an A4 PDF with full Czech diacritics. Returns the order code and, for registered mail, the podací číslo. |
get_letter_status |
Looks up a letter by its Česká pošta order code. |
Requirements
Node.js 22 or newer. The package bundles its dependencies and the Carlito font (SIL Open Font License, assets/OFL.txt).
License
MIT. Operated by IamLadi s.r.o. — postbot.cz.