Agent Notebook
MCP server by jeanibarz Verified · npm:agent-notebook
Agent Notebook is a bounded, plain-text memory for AI agents. It stores short lessons in small notebook files, voted by usefulness, with no embeddings or vector database. It is for developers who want agents to keep a few durable lessons across runs.
Install Agent Notebook
Built from the published package, never by AI.
claude mcp add agent-notebook -- npx -y agent-notebookRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"agent-notebook": {
"args": [
"-y",
"agent-notebook"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"agent-notebook": {
"args": [
"-y",
"agent-notebook"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"agent-notebook": {
"args": [
"-y",
"agent-notebook"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add agent-notebook -- npx -y agent-notebook{
"mcpServers": {
"agent-notebook": {
"args": [
"-y",
"agent-notebook"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add agent-notebook npx -y agent-notebookGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the agent-notebook block.
About
Agent Notebook is a command-line tool, installed with npm, that gives an AI agent a small plain-text memory. Lessons are grouped into shelves, where each shelf is one notebook file under ~/.agent-notebook/notebooks. Each lesson is one line of up to 200 characters with an integer score. An agent or user votes lessons up or down, and a full shelf evicts its lowest-scored line when a new lesson is added. The source says the tool has no embeddings, no network calls and no server. It also says there is no MCP server, so the listing type should not be read as MCP. The harness around the agent must call the nb commands at the start and end of a task. Claude Code is the primary target for the reference hooks, and the Codex CLI pieces are a lighter starting point. The project is aimed at developers who run AI agents and want them to carry a few durable lessons across runs.
Written from the project's README and checked against it.
Tools it gives your assistant
nb showPrints a shelf's lessons, highest-scored first.nb listLists the notebooks so an agent can choose which shelf fits a task.nb addAdds one lesson to a shelf, skipping exact duplicates and rejecting lessons over 200 characters.nb voteUpvotes or downvotes a lesson by id, or several ids at once with a comma-separated list.nb staleLists cull candidates, with the lowest scores and stalest lines first.nb mergeConsolidates two lessons into one merged entry.nb splitCuts one overloaded lesson into two.nb rmRemoves a lesson from a shelf.
What you need
- Node.js 18+
Try asking
- Add the lesson 'run lint before claiming done' to my build-and-test shelf
- Show me the lessons on my reviewer shelf, highest-scored first
- Upvote lessons 3f9a2c and 7b1d0e on my build-and-test shelf
Good to know
- The source states there is no MCP server; it is a plain offline CLI driven by the harness.
- Each lesson is one line of at most 200 characters, and each shelf holds 50 lines by default.
- Claude Code is the primary target; the Codex CLI and other harness integrations are a lighter starting point to verify in place.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Agent Notebook
All alternatives →Connects a Zotero research library to AI assistants such as Claude and ChatGPT through the Model Context Protocol. It lets the assistant search, read, annotate and add papers, in local mode or through the web API. Built for researchers who want their references available in chat.
AgentDB is a vector memory database for AI agents. It stores embeddings, indexes and learning state in one file and exposes 41 MCP tools to clients such as Claude Code, Cursor and Cline.
Genkitx MCP is listed as a Genkit plugin for Model Context Protocol interoperability. The source is the main Genkit framework README and does not describe this plugin, so its features cannot be confirmed.
QMD is an on-device search engine for markdown notes, meeting transcripts and documentation. It combines BM25 keyword search, vector search and LLM reranking, and exposes an MCP server for AI assistants.
RuVector is a Rust native vector database that gives AI agents persistent memory and local semantic retrieval. Its npm package includes an MCP server for MCP compatible clients, and it suits developers building agent memory in Node.js, Python, or Rust.
Gives AI coding agents persistent memory, so each new session starts where the last one left off. Works with Claude Code, Codex, Cursor, OpenCode and 11 more agents.
Compare with Zotero MCP, Agentdb or Genkitx MCP
Agent Notebook: common questions
Does Agent Notebook need a vector database or embeddings?
No. The source says it uses no embeddings, no semantic search and no vector database. Each shelf is a plain text file.
What happens when a notebook is full?
A new lesson is always added, and the lowest-scored line is evicted. The source also docks one point from the stalest line when a full notebook takes a new lesson.
Does the tool run on its own without an agent?
No. The source says nb is a store, not a loop, and the agent harness must call the retrieve and reflect steps around each task.
How do I install Agent Notebook?
In Claude Code run claude mcp add agent-notebook -- npx -y agent-notebook. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Agent Notebook the official server?
Agent Notebook is published by npm:agent-notebook from its verified domain in the official MCP Registry.
Is Agent Notebook free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Agent Notebook safe to use?
It scores 82 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Agent Notebook?
Similar MCP servers: Zotero MCP, Agentdb, Genkitx MCP, Qmd.
Does Agent Notebook work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
