briefkasten-mcp
Enables passing notes between Claude rooms on the same machine via Markdown files. Supports listing, reading, and writing notes with security validation.
README
briefkasten-mcp
MCP server for passing notes ("Zettel") between Claude rooms on one machine (project chat, Desktop, Claude Code in the editor, and so on). File-based: each Zettel is a single Markdown file in a mailbox folder that lives outside the repo. Part of a small series of personal MCP servers — see nerdaxe-mcp and bitcoin-node-mcp.
Built with the official MCP Python SDK (mcp, FastMCP), served over stdio.
German terms
Tool and field names are German. This glossary maps them to English:
| German | English |
|---|---|
| Briefkasten | mailbox |
| Zettel | note |
| zettel_liste | list notes |
| zettel_lesen | read note |
| zettel_schreiben | write note |
| von / an / inhalt | from / to / content |
| dateiname | filename |
| Von / An / Datum | From / To / Date (the Zettel header) |
| gelesen/ | read (archive folder) |
Tools
zettel_liste(an=None)— list unread Zettel (filename, sender, recipient, timestamp, age), newest first. Optional recipient filter.zettel_lesen(dateiname)— return the content of one Zettel.zettel_schreiben(von, an, inhalt)— create a new Zettel and return its filename.inhaltis the message body only; theVon/An/Datumheader is added automatically. Never overwrites, never deletes.
Archiving (moving to gelesen/) is done by hand for now.
Zettel format
Filename: YYYY-MM-DD_HHMM_<von>-an-<an>.md
The body is free-form (handover, report, question — whatever the rooms need); only the header is fixed, and the server writes it itself. Example of a session handover:
Von: workshop
An: architect
Datum: 2026-07-12 14:30
Working on: ...
Your call: ...
Next: ...
Security model
The server is deliberately narrow about what it can touch:
- One folder, nothing else. Every operation stays inside
BRIEFKASTEN_PATH. The path comes from.env; the folder (and itsgelesen/subfolder) is created on first start if missing. - Every name is validated against a fixed schema. Room names (
von,an) are 1–32 lowercase letters and digits — no separators, no hyphen. Filenames handed tozettel_lesenmust match the exact Zettel scheme. That rejects path separators,.., absolute paths and drive letters, control characters, and Windows device names (con,nul, …) in one step, because none of them fit the pattern. A resolved-path check backs it up: the target must resolve to a direct child of the mailbox. - Write is create-only. New Zettel are opened in
"x"mode, so an existing file is never overwritten; a same-minute name collision gets a_2,_3, … suffix. Empty content is rejected. - No delete tool by design. The server can list, read, and create. Removing a Zettel is a manual act, not something the model can do.
- Errors surface as messages, not tracebacks. Expected failures — missing config, an invalid name, a missing or unreadable Zettel, a folder that can't be created, a write that can't complete — are caught and returned as a plain explanation instead of raising.
Setup
Requires Python 3.10 or newer.
Windows:
py -m venv .venv
.venv\Scripts\pip install -r requirements.txt
Linux / macOS:
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
Then copy .env.example to .env and set BRIEFKASTEN_PATH to an absolute
path for the mailbox folder (outside the repo).
Usage
Run directly for local testing:
.venv\Scripts\python server.py
Or wire it into an MCP client config as briefkasten, using the absolute
path to the venv's Python and to server.py.
Testing
Verified along the build's review chain:
- Direct function calls covering the normal case, edge cases, and forced
error paths (missing
BRIEFKASTEN_PATH, invalid names, path-escape attempts, name collisions, empty content). - A programmatic MCP client over stdio, exercising the three tools through the real protocol.
- A cold closing review through an isolated reviewer (2× Sonnet, correctness and security). Four findings were fixed.
Limits
- Single mailbox on one machine, no networking.
- No delete or archive tool —
gelesen/is tidied by hand. - No search or full-text index;
zettel_listelists,zettel_lesenreads.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。