The MentisDB Agent Memory Cookbook

Patterns and recipes for building AI agents that remember

4.2 Claude Code (CLI)

Claude Code can use MentisDB over MCP. The simplest path is the built-in setup command; the manual path is one MCP registration plus one primer sentence.

Setup

cargo install mentisdb
mentisdb

# In another terminal:
claude mcp add --transport http mentisdb http://127.0.0.1:9471

Prime the agent

use mentisdb as your memory system for this repository. Start by bootstrapping the chain, reading the core skill, loading recent context, and writing a checkpoint.

Expected behavior

Tip: use one chain per repository unless your team intentionally shares a broader project chain.