Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 82
  • 3 stars
  • 1.3k a week
  • MIT
  • Updated

Install Agent Notebook

Built from the published package, never by AI.

claude mcp add agent-notebook -- npx -y agent-notebook

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Agent Notebook in Claude Code

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

A

No 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 →

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.

Agent Notebook Install

Add to stack

Loading.