
Baron Munchausen
io.github.shinegang由 GitHub 账号 shinegang 发布v0.6.1更新于 Oct 24, 2026
Local grounded memory for coding agents: MCP over stdio, stdlib only, a verdict per answer
概览
面向编码代理的本地记忆服务器,仅用标准库,保存项目事实并对回答给出有据、部分有据或无据的判定。
- 可以做什么
- 向本地图谱写入事实,每次最多 50 条,并在事实不再成立时以可撤销方式撤回,同时保留只追加的审计日志。在回答前检索图谱并生成受预算限制的提示片段,若记忆中已有答案可返回 graph_first 直接采用。在回答后逐句核对图谱,返回判定结果并列出无依据的句子。通过检查点恢复项目上下文,返回线索开头、最近会话、未了结事项和近期决定。同一套 30 个工具同时通过 MCP stdio 和本地回环地址上的 JSON-RPC 提供。
- 适用场景
- 适用于长时间编码会话在关闭标签页、额度用尽或更换模型后丢失上下文,且希望项目决定与事实保存在本地的场景。也适合希望回答先与已记录事实核对、而非直接采信的情况。
- 运行要求
- 作为本地进程在用户机器上运行,仅支持桌面端。需要 Python 3.12,无第三方运行时依赖。由于尚无 PyPI 或 npm 包,需克隆仓库或从检出目录执行 pip install 安装。需要支持标准 mcpServers JSON 配置块的客户端,或使用自带的 stdio 桥接。服务器监听 127.0.0.1:8765,图谱保存在本地 JSON 文件中。
安装
在 SourceWeft 中
- 打开 控制台中的 Baron Munchausen,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Baron Munchausen — local memory that outlives the chat
Everything above is a real run against a clean clone. rpc is the two-line
curl wrapper defined in docs/demo/baron-demo.sh;
re-record the whole thing with cd docs/demo && ./record.sh.
Public alpha (0.6.1). The engine has run daily in the authors' own work for months; this repository is one day old. The code is Apache-2.0 and complete — the packaging, the docs and the install path are what "alpha" refers to. Report anything that breaks.
Your session ends. Your project doesn't. One call brings back where the
project stopped, what was decided and what comes next — after a closed tab, a
spent limit or a change of model. And every answer built on that memory comes
back with a verdict: grounded, partial or ungrounded, with the sentences
nothing backs named one by one.
[License] [Python] [Runtime dependencies] [MCP Registry]
A memory server in Python 3.12 with no third-party runtime dependency. MCP over
stdio for your client, JSON-RPC on 127.0.0.1:8765 for everything else. Nothing
here calls a model and nothing leaves your machine. A fresh install starts with
an empty graph: we ship the tools, never the data.
Why
Three numbers, each one measured, each one with what it does not say written next to it.
1. One context return: 7 146 tokens → 2 388. The 7 146 is a real compaction
summary out of a session transcript; the 2 388 is the slice a live
memory_ground_prepare returned for the same moment of the same project. Both
counted with tiktoken/cl100k_base on 2026-09-10. What it does not say: it
is one pair of instances, not a distribution — a second summary from the same
corpus came to 5 913 tokens, which would make the same slice a 60 % cut instead
of a 67 % one.
2. Claude Opus 5: −69.6 % input tokens, measured. Not arithmetic on the
figures above — this is what the models' own usage reports came back with on
live runs of the same tasks, 2026-09-10. Sonnet 5 came to −61.7 %, Haiku 4.5 to
−66.3 % on the same runs. What it does not say: these are the authors' graph
and the authors' tasks. Your ratio depends on how much of your context is
recoverable from a graph at all, and nobody has run this on a public benchmark
yet.
3. Thirty tools, zero runtime dependencies. curl -s 127.0.0.1:8765/health reports "tools": 30 on a fresh clone — the same 30 over
MCP stdio and over JSON-RPC, with requirements.txt empty of third-party
runtime packages. What it does not say: nothing about quality. It is a count.
What those percentages are worth in money depends on your model and your volume: the savings calculator on shinegang.click does that arithmetic with current list prices, and shows which figures are measured and which are calculated.
Install in two minutes
Step 2 prints {"product": "Baron Munchausen", "version": "0.6.1", "nodes": 0, "tools": 30}. Without jq, drop the pipe and read the raw JSON.
Write a fact and get a verdict without any client at all — this is the same JSON-RPC the demo above runs:
Installing the package (pip install .) puts the same server on PATH as
baron; python3.12 -m baron works from a checkout.
Clients
Any client that takes the standard mcpServers JSON block can use Baron. These
are the ones with a file in integrations/
already written:
Claude Code can go further than registration: the PreCompact and
SessionStart hooks in tools/hooks/claude/ re-inject a
slice of the graph when the context window is compacted, so what the window
drops the graph still holds.
What it does, with the number and where it is checked
Every number below was measured on 2026-09-10 on the authors' own graph and their own machine, and every one of them can be re-measured from this repository. Where a number does not exist yet, this page says so.
Numbers this project does not have. No LongMemEval or LoCoMo score: those harnesses have not been run here, and until they are, the honest word is "not measured". In fourteen days of live use the verdict distribution on the authors' own journal was 81 ungrounded, 41 partial, 20 grounded over 142 passes — that is a measurement of how often agents answered without consulting the graph first, not a quality score, and it is published because hiding it would be the kind of thing this tool exists to catch.
How grounding actually works
No pre-pass, no credit. Call memory_ground without a matching
memory_ground_prepare and the verdict is ungrounded (notes: no_pre_pass),
however many claims the text happens to support.
Full detail: docs/GROUNDING.md.
Your graph starts empty
blank never overwrites an existing file, and the graph you get really is
empty. When the two collide, the server refuses to start and tells you what to
do. Configuration: docs/CONFIGURATION.md.
Install from directories
Baron is published in the official MCP Registry as
io.github.shinegang/baron:
Registries that mirror the official index (Glama, and clients that read it directly) pick the entry up from there. This repository carries the metadata those directories read:
There is no package on PyPI or npm yet, so the registry entry points at the
source repository rather than at an installable artifact: install with the
git clone in Install in two minutes, or pip install . from the
checkout. When baron-munchausen lands on PyPI, a packages block goes into
server.json and the same directories will offer one-command installs.
Contributing
Issues and pull requests are welcome. Two house rules, and they are the rules the software enforces on itself:
- A claim comes with its source. A bug report with the command that reproduces it is worth ten without one.
- "I could not check" is a valid answer and a better one than a guess.
unknownis a status here, not a failure.
Run python3.12 -m pytest tests -q before opening a pull request.
License
Apache-2.0 — LICENSE.
来源:README.md,提交 2c42945
工具
0版本历史
1- v0.6.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分