Best for
- Developers who use AI coding agents regularly and want context to persist across sessions.
- Researchers who need a memory baseline they can run locally, inspect, and modify.
An open-source local memory server that provides persistent memory, a knowledge graph, and retrieval to coding agents over stdio MCP. The source describes installation and local storage, but does not provide a complete tool inventory, so this profile does not enumerate tools.
Strongest · Documentation 13/20 Weakest · Reliability 8/20
Static review · not runReviewed 2026-11-29
Read the FMRS scoring method →Runtime:Python 3.11+
MEMORY_CROSS_RERANK
Set to off to disable local cross-encoder reranking and reduce latency.
TAM_MODEL_CACHE
Sets the model cache directory; the docs suggest ~/.tam/models to avoid macOS clearing models from the system temporary directory.
TAM_MEMORY_DIR
Sets the memory storage directory; the default is ~/.tam/.
FASTEMBED_CACHE_PATH
Sets the fastembed model cache path; the test instructions set it to the repository's .tam-models directory.
MEMORY_LLM_ENABLED
Set to false to disable the LLM for benchmark runs.
TAM_TEST_PG_URL
Configures the PostgreSQL test connection URL; when unset, test fixtures try to start a pgvector container through Docker.
Requires Python 3.11 or newer. Install the package and run tam setup to register a supported client, or add {"command":"total-agent-memory"} to a client's mcpServers configuration. Restart the client. Memory is stored in ~/.tam/ by default. The first start downloads about 370 MB of models.
{"mcpServers":{"memory":{"command":"total-agent-memory"}}}
Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"memory": {
"command": "total-agent-memory"
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
[mcp_servers.memory] command = "total-agent-memory"
Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).
claude mcp add memory -- total-agent-memory
Run it in a terminal; replace any <…> placeholders with your own values first.
Confirm that memory_save and memory_recall appear in your client's MCP tool list. Ask the client to save a decision, then ask about it to verify that the connection and memory read/write work.
Once connected, you can ask your AI assistant things like:
Listed from the project's documentation, not tested by this site.
Total Agent Memory is an open-source MCP memory server for AI coding agents. It stores decisions, solutions, facts, errors, and session summaries locally and makes them available through MCP. Each store is built around a SQLite database. Retrieval combines full-text BM25, local dense embeddings, fuzzy matching, and a knowledge graph, with an optional local cross-encoder reranker. The default profile makes no LLM calls on writes or searches.
Connect code, docs, and infrastructure in a local knowledge graph.
Docker's official MCP gateway CLI plugin for managing and running MCP servers.
Fast, low-cost structured judgments for agents.
Local call graphs and structural analysis for Go repositories.
Source revision 507d4eb29fe5 Data synced 2026-12-05 Read the FMRS scoring method Markdown