memo-bank
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@memo-bankwhat specs govern src/services/api.ts?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
memo-bank
Your specs are contracts. This makes an agent read them before it edits your code — and tells you when they rot.
memo-bank is a read-only MCP server over a git-native markdown corpus, plus two maintenance loops that keep that corpus honest. Point it at a repo and an agent can answer "what rules govern this file?" in about two reads, instead of re-deriving the answer from forty files every time.
MIT licensed · Python ≥3.11 · three dependencies (mcp, python-frontmatter, PyYAML).
Why
Documentation rots in two distinct ways, and most tooling addresses neither:
Missing — code exists that no doc governs. → the coverage loop surfaces uncovered code that is actually being edited as a ranked "spec-wanted" backlog.
Stale — a doc exists but the code moved on. → the drift check flags any governing doc whose governed files changed after its
last_reviewed.
Both run non-blocking on pre-commit. Neither invents content: they tell you what to write and when to revisit, and the corpus stays plain markdown in git.
Related MCP server: cardloom-mcp
Install
pip install -e '.[dev]' # from a clone; PyPI publishing not set up yet
memobank --helpUse
Adopting the memo-bank in a new project? See SCAFFOLDING.md.
memobank init --target ../my-project --island my-project --slice umbrella=.
memobank validate ../my-project --index docs/index.json
memobank serve --federation ../my-project/.island-slices.json # the MCP server
memobank coverage --mode staged # missing specs
memobank drift --registry .island-slices.json # stale specs
memobank benchmark --federation .island-slices.json # time-to-contextinit writes only what the project owns — .island-slices.json, AGENTS.md,
the corpus skeleton, and the authoring templates. No engine code is copied,
so a project can never carry a forked engine that ages out of sync.
See it work
You're about to edit a file. Ask what governs it:
$ memobank serve … → docs.resolve_path("src/services/api.ts")
hmac-signing-client (matched glob: src/services/api.ts)
→ docs.get("hmac-signing-client") → the contract you must satisfy:
"NEVER log the server token, even partially."
"NEVER sign a path that differs from what the server receives."Two reads, and the rule that would have bitten you is in hand. Ask about a topic instead, and expansion is what makes lexical search land:
docs.search_live("crawling reviews") → top hit, score 3.0
docs.search_live("refresh fetch ingest cache stale quota") → top hit, score 32.0Same corpus, same intent — the second query uses the words the docs actually use.
Then the loops keep it honest:
$ memobank coverage --mode staged
⚠ 1 changed file(s) have no governing spec — added to the spec-wanted backlog:
- src/services/audio.ts
$ memobank drift --registry .island-slices.json
⚠ 1 governing doc(s) may be stale — governed code changed since their last_reviewed:
- review-ingestion-status (last_reviewed 2026-06-27) — 7 changed: …The corpus model
Each slice (a repo, or a subproject within one) owns
docs/{specs,state,archive}/:
kind | meaning | indexed |
| a present-tense contract — "what must hold" | yes (hot) |
| a current snapshot — "what the situation is now" | yes (hot) |
| cold history — "what we used to do and why it changed" | no |
Frontmatter is a validated schema; applies_to globs are the precedence surface
(closest glob wins), and cross-references are stable kind:id handles rather
than paths. Specs are written implementation-independent — five sections
(Problem · Contract · Restrictions · Open threads · Code references), with
concrete file references confined to the last one, so the contract survives
refactors.
The tools (MCP surface)
docs.list · docs.get · docs.get_section · docs.resolve_path ·
docs.search_live · docs.search_archive · docs.resolve_term ·
docs.compose_context
They form an incremental-load ladder: pointers → one section → one doc →
ranked search → a budget-bounded bundle. Retrieval is lexical (bag-of-words, no
embeddings, no vendor lock) — so expand a topic query with domain synonyms
before searching; docs.search_live's own description says so, and it roughly
10×'d top-hit scores in practice.
docs.resolve_term reads a term map from .haft/specs/term-map.md or the
docs-native docs/_terms/term-map.md; with neither it reports absent rather
than failing. There is no dependency on any other tool.
Configuration
One file, .island-slices.json, is the whole adoption contract:
{
"island": "my-project",
"slices": [{ "name": "umbrella", "root": "." },
{ "name": "api", "root": "services/api" }],
"source_globs": ["src/**"],
"schema": "docs/specs/schema-frontmatter-v1.md"
}Only slices is required; everything else defaults. The engine carries no
project literals.
Status
Working software, used on real projects — not a polished product. Known rough
edges: the island/slices vocabulary is inherited from the first project that
used it; memobank init doesn't install the git hook (copy hooks/pre-commit
yourself); last_reviewed is date-granular, so same-day edits after a refresh
re-flag; mcp is pinned <2 (2.x changes the Server API — untested).
Contributions welcome — see CONTRIBUTING.md.
License
MIT — see LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to read and write a local-first knowledge base of plain markdown files in git, with governance gates for safe, hash-anchored edits.1Apache 2.0
- AlicenseNot gradedqualityCmaintenanceProvides long-lived, cross-project technical memory for AI agents via markdown cards stored in git and indexed by SQLite, enabling search, retrieval, and human-reviewed knowledge management.ISC

RepoPrimerofficial
AlicenseAqualityBmaintenanceProvides fresh project context to coding agents by combining Markdown documentation and live Git state, enabling deterministic startup briefs and bounded document retrieval for MCP-compatible tools.412Apache 2.0- AlicenseNot gradedqualityAmaintenanceIndexes your project's markdown documentation and exposes it to AI agents via local hybrid search (lexical + semantic) with progressive disclosure tools.844MIT
Related MCP Connectors
Deterministic context layer for your codebase: change impact, blast radius, answers with receipts.
Cross-agent artifact workspace with provenance across Claude Code, Codex, Cursor, LangGraph.
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kmitin/memo-bank'
If you have feedback or need assistance with the MCP directory API, please join our Discord server