Skip to content

Claude Code Setup

Claude Code is the recommended AI client for Engram. This guide walks you through the optimal configuration.

Add Engram to your Claude Code MCP settings. In your project’s .mcp.json or global MCP config:

{
"mcpServers": {
"memory": {
"command": "engram",
"args": ["--stdio"]
}
}
}

For the best experience, add Engram instructions to your CLAUDE.md file. This tells Claude Code how to use the memory system effectively:

# Memory
Use the memory MCP server as your primary memory system.
When you learn something worth remembering (preferences, patterns, decisions,
debugging insights), `remember` it immediately. Use project scoping:
project-specific knowledge gets the project name, cross-project preferences
get "global".
After remembering, `recall` related memories and `connect` them with edges
to build a knowledge graph.

See the full CLAUDE.md Integration guide for a complete template.

For automatic context injection, configure Claude Code’s advise hook to recall relevant memories before each message. This is covered in detail in the CLAUDE.md Integration guide.