Skip to main content
Agent Memory exposes up to 53 tools via the Model Context Protocol. Your AI agent calls these automatically based on context, or you can invoke them directly by name. Use the AGENTMEMORY_TOOLS environment variable to control which tools are visible to your agent.
The @agentmemory/mcp shim exposes the full 53-tool surface only when it can reach a running agentmemory server via AGENTMEMORY_URL. Without a server, it falls back to 7 local tools. If you see fewer tools than expected, make sure npx @agentmemory/agentmemory is running and AGENTMEMORY_URL=http://localhost:3111 is set.

Tool Tiers

Core Mode

Set AGENTMEMORY_TOOLS=core to expose only the 8 essential tools. Recommended for agents with limited context windows that struggle with a large tool list.

All Mode (default)

The default AGENTMEMORY_TOOLS=all exposes all 53 tools across every capability tier: search, orchestration, team sharing, knowledge graph, lessons, and more.
If your agent is hitting context-window limits or behaving erratically with too many tools, set AGENTMEMORY_TOOLS=core in your ~/.agentmemory/.env file and restart the server.

Core Tools

These tools are always available regardless of the AGENTMEMORY_TOOLS setting. They cover the essential read/write/search lifecycle every agent needs.

Essential Tools (the 8-tool core set)

When you set AGENTMEMORY_TOOLS=core, your agent sees only this subset — chosen for maximum utility at minimum context cost:

Memory Consolidation & Health


Knowledge Graph Tools

These tools require GRAPH_EXTRACTION_ENABLED=true in your config. With graph extraction on, agentmemory automatically builds an entity relationship graph from your session observations.

Team & Collaboration Tools

Team tools require TEAM_ID and USER_ID to be set in your configuration. Without them, calls return a prompt to configure team mode.

Orchestration Tools

Orchestration tools are available in v0.5 and later. They power multi-agent task coordination: creating work items, claiming exclusive leases, sending inter-agent messages, and managing approval gates.
Create and track actionable work items with typed dependency graphs.

Lessons & Insights

These tools implement the confidence-scored learning layer — separate from raw memory, lessons track what your agent has explicitly learned and how certain it is.

Memory Slots

Memory slots require AGENTMEMORY_SLOTS=true in your configuration. Slots are editable, size-limited memory units that persist across sessions and can be injected at session start.
Slots give your agent named, persistent storage units — think of them as structured notepads your agent can read and update in place. Default slot labels include persona, user_preferences, tool_guidelines, project_context, guidance, pending_items, session_patterns, and self_notes.

Provenance & Tagging


Snapshots, Vision & Integrations


MCP Prompts

Agent Memory exposes 3 built-in prompts your agent can reference via the MCP prompts/get protocol. Prompts return pre-built message arrays you can inject directly into a conversation.

Example: using a prompt in Claude Code

Claude will call the prompt, which searches your memory and returns relevant past decisions, file history, and observations — all pre-formatted as context for your task.