
Baron Munchausen
io.github.shinegangPublished by GitHub account shinegangv0.6.1Updated Oct 24, 2026
Local grounded memory for coding agents: MCP over stdio, stdlib only, a verdict per answer
Overview
A local, stdlib-only memory server for coding agents that stores project facts and returns a grounded, partial or ungrounded verdict on answers.
- What you can do
- Write facts to a local graph, up to 50 per call, and retract them reversibly when they stop being true, with an append-only audit log of every pass. Prepare a grounded answer by searching the graph and building a budgeted prompt slice, optionally returning graph_first when memory already holds the answer. Check a finished answer against the graph and get a verdict plus the unsupported claims named one by one. Restore project context with a checkpoint that returns the thread head, recent sessions, open loose ends and recent decisions. Expose the same 30 tools over MCP stdio and over JSON-RPC on the local loopback address.
- When to use it
- Useful when long coding sessions lose context after a closed tab, a spent limit or a model switch, and you want project decisions and facts to persist locally. Also worth adding if you want answers checked against recorded facts rather than taken on trust.
- Requirements
- Runs as a local process on the user's machine, desktop only. Needs Python 3.12; no third-party runtime dependencies. Install by cloning the repository or with pip install from the checkout, since no PyPI or npm package exists yet. A client that accepts the standard mcpServers JSON block, or the bundled stdio bridge. The server listens on 127.0.0.1:8765 and stores its graph in a local JSON file.
Installation
In SourceWeft
- Open Baron Munchausen in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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.
Source: README.md at commit 2c42945
Tools
0Version history
1- v0.6.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts