Claude Code
Register the jeffs-brain MCP server with Anthropic's Claude Code CLI.
Prerequisites
- Claude Code installed and authenticated.
- Node
>=20on yourPATH(the MCP wrapper runs as a stdio Node process vianpx).
Install
# Local brain (default: ~/.jeffs-brain)
claude mcp add jeffs-brain -- npx -y @jeffs-brain/memory-mcp
# Hosted brain
claude mcp add jeffs-brain --env JB_TOKEN=... -- npx -y @jeffs-brain/memory-mcp
Smoke test
Open a new Claude Code session and ask:
Remember that I prefer British English in all my code.
Claude should call the memory_remember tool. Then:
What language do I prefer in my code?
Claude should call memory_recall and return the fact you stored.
Environment variables
| Variable | Default | Effect |
|---|---|---|
JB_TOKEN | unset | When set, flips to hosted mode. |
JB_ENDPOINT | https://api.jeffsbrain.com | Hosted API base URL. |
JB_HOME | ~/.jeffs-brain | Local FsStore root. |
JB_BRAIN | unset | Default brain id applied when a tool call omits it. |
OLLAMA_HOST | http://localhost:11434 | Local embedder endpoint. BM25-only when unreachable. |
Troubleshooting
command not found: npx— install Node>=20or pass a fully qualified path tonpx.- Tools register but every call fails — check
claude mcp listand inspect~/.claude/logs/for the stdio server output. - Hosted mode: confirm
JB_TOKENis scoped correctly andJB_ENDPOINTis reachable from your machine. - For the full tool surface see
memory_*tools.