agent-logbook
The agent-logbook server provides a local SQLite-backed long-term memory system for AI assistants, enabling structured storage, retrieval, and lifecycle management of facts, decisions, tasks, and questions across sessions.
Recall (
recall): Retrieve ranked, relevant memories using a keyword query within a configurable token budget (default 1500 tokens), optionally filtered by memory type.Remember (
remember): Persist a distilled fact, decision, task, question, or note. Automatically detects conflicts for the same type+entity to prevent silent overwrites; supports aforceflag to bypass this.Supersede (
supersede): Replace an outdated memory with an updated version while keeping the full history chain intact — nothing is ever deleted.List Open (
list_open): View all unresolved tasks and questions, optionally filtered by type, to aid planning.Set Status (
set_status): Mark a task or question asdone,dropped, or reopen it withopen.Memory History (
memory_history): Walk the full supersession chain for any memory to see how a fact or decision evolved over time.Memory Stats (
memory_stats): Get health metrics including total/live memory counts, open items, recall frequency, tokens served, and asavings_ratioshowing retrieval efficiency vs. reading the full corpus.
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., "@agent-logbookremember the user prefers dark mode"
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.
agent-logbook
Local SQLite long-term memory for AI assistants, served over MCP. Context window = working memory. This database = long-term memory.
Every decision logged, nothing erased: agent-logbook writes distilled facts and decisions to a plain SQLite file as your assistant works, ranks them by relevance and salience so retrieval stays cheap no matter how old the project gets, and keeps a full supersession chain when something changes — so you can always ask "why did we think that before."
Install
pip install agent-logbookRelated MCP server: MCPMem
Quickstart
cd your-project
agent-logbook-initThat's it — init detects which agentic tool you're using and wires up both
the MCP server registration and the memory-protocol instructions for it.
Works with
Tool | Instructions written to | MCP config written to |
Claude Code |
|
|
Cursor |
|
|
GitHub Copilot |
|
|
init never clobbers an existing config file — it merges in a memory server
entry alongside whatever's already there, and the protocol block is idempotent
(rerun it as many times as you want). If none of these three are detected, it
prints the protocol text and a generic MCP config snippet for you to adapt by
hand — see IMPLEMENTATION_GUIDE.md for the manual
steps and agent-logbook-init --help for --dry-run and --tool to force a
specific one.
Because the underlying intelligence (conflict checks, budgeted retrieval,
supersession) lives in the server, not the prompt, any MCP-compatible client
gets the same guarantees — the three above are just the ones init knows how
to wire up automatically today.
The seven tools, in plain terms
agent-logbook exposes seven MCP tools. Your assistant calls these itself — you never type them — but here's what each one actually does, since the names alone don't tell the whole story:
Tool | In plain terms | Example |
| "What do we already know about this?" Ranked, budget-capped retrieval — it never returns more than a fixed token budget, no matter how much history exists. |
|
| "Write this down." Saves one distilled fact or decision. If a live memory already exists for the same |
|
| "That decision changed — replace it, but keep the history." Nothing is deleted; the old row is marked superseded and linked to the new one. |
|
| "What's still unresolved?" Lists open tasks and questions. |
|
| "Mark this done" (or |
|
| "How did we get here?" Walks a memory's full supersession chain, oldest to newest. |
|
| A health check, plus the savings numbers this whole project is about: how many memories exist, how many recalls have happened, and the |
|
Explore what's stored
agent-logbook-viewer --dir /path/to/projectsGenerates a self-contained HTML report comparing every project's memory
database it finds — savings metrics (recall count, tokens served, savings
ratio) side by side, plus a searchable table of each project's actual stored
memories. Point it at one --db path or a parent folder containing several
projects.
Docs: IMPLEMENTATION_GUIDE.md (architecture + setup) and TESTING_GUIDE.md (test strategy).
Development
pip install -e ".[dev]" && pytestMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/Rajwantmishra/agent-logbook'
If you have feedback or need assistance with the MCP directory API, please join our Discord server