Wiring an agent means registeringDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/xantorres/engram/llms.txt
Use this file to discover all available pages before exploring further.
engram-mcp as a Model Context Protocol server inside that agent’s configuration file. Once wired, the agent gains a remember tool it can call to store facts and a memory://recall resource it can read at the start of any session — giving it durable, project-scoped memory across conversations without any changes to your prompts.
How wiring works
Engram ships a small MCP server calledengram-mcp. It speaks the standard MCP stdio protocol, so any MCP-capable agent can connect to it. When the agent starts, it spawns engram-mcp as a subprocess over stdin/stdout. From that point the agent can:
- Call the
remembertool to stage a new memory for review. - Read the
memory://recallresource to get a ranked list of relevant memories injected into its context window.
engram init:
Agent configuration
- Claude Code
- Codex
- opencode
Place the following in To generate and write this automatically:Claude Code reads
.mcp.json at your project root for a per-project setup, or in ~/.claude.json to wire Engram globally for all Claude Code sessions..mcp.json on startup and launches engram-mcp as a stdio subprocess. You can verify the connection is live by asking Claude: “What does engram remember about this project?”What the agent can do after wiring
Onceengram-mcp is registered, two capabilities become available in every agent session:
| Capability | MCP identifier | What it does |
|---|---|---|
| Store a memory | remember tool | Stages a candidate fact for human review |
| Read memories | memory://recall resource | Returns ranked, promoted memories for the current project |
memory://recall at the start of a conversation and call remember when they learn something worth preserving (a preference, a decision, a constraint).
Memories staged via the
remember tool enter a pending queue and are not recalled until you promote them with engram promote. See the Reviewing Memories guide for the full review workflow.Using engram serve for other agents
If you are using an agent or IDE extension that supports MCP but is not listed above, you can point it atengram-mcp directly. The server is a standard stdio MCP process — any client that can launch a local command works.
engram serve starts engram-mcp in the foreground and prints the stdio connection details. Use your agent’s custom MCP configuration UI or config file to register the command engram-mcp (or the full path if it is not on your PATH).
Next steps
- Harvesting Sessions — extract memories passively from existing transcripts.
- Reviewing Memories — approve or reject staged candidates.
- Context Files — write memories into
AGENTS.mdfor agents that don’t speak MCP.