← Back to directory
T

Total Agent Memory

Community
Persistent local memory for AI coding agents.
Category
Dev Tools #316 of 751
Stars
★ 78 Popular
Transport
stdio (local process)
Runtime
Python 3.11+
Credentials
No credential needed
License
MIT
Last commit
52FMRS · D

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

Reliability
8/20
Security and permissions
10/20
Maintenance
9/20
Documentation
13/20
Setup experience
12/20
Why each score
Reliability 8/20
The README describes stdio startup, MCP client configuration, save-and-recall examples, and local storage and retrieval, making the happy path plausible. However, the supplied material contains no verifiable CI workflows, test files, or execution results. The behavior of the 74 tools, error handling, and dependency failure modes also cannot be confirmed, so the score is conservative and stays within the static-review cap.
Security and permissions 10/20
The material says data is stored locally by default and discloses the token location and authentication method for HTTP mode. It also describes roles, authorship, and audit records for team use. But it provides no verifiable implementation evidence for permission boundaries, confirmation of dangerous actions, data flows, or token protection, so a high score is not justified. The supplied material shows no evidence of a red-line issue.
Maintenance 9/20
The supplied facts include an MIT license, version 15.0.2, an unarchived repository, and no open issues. The README also points to contribution and security-reporting channels. Commit history, release cadence, dependency updates, and security response history are unavailable, leaving maintenance activity and governance uncertain.
Documentation 13/20
The README provides a layered documentation index, installation and client configuration examples, a quick start, benchmark instructions, and some limitations, including the initial model download and local runtime requirements. Tool parameters, troubleshooting, full cost details, and security specifics are mostly deferred to external documentation not included here, so the documentation is useful but incompletely evidenced.
Setup experience 12/20
The material gives PyPI installation options, one-time execution, configuration examples for several mainstream clients, and the Python requirement. The steps are clear, but first startup downloads about 370 MB of models, and the supplied source material does not verify cross-platform compatibility or a successful connection. The score therefore remains below the top range.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesConnects to a database

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.

Not for

  • Users who do not use MCP or do not need cross-session memory.
  • Users who cannot accommodate the initial model download or do not want memory data stored locally.

Required permissions

  • Needs read and write access to its local memory directory, `~/.tam/` by default; `TAM_MEMORY_DIR` can set another location.
  • Needs to download text embedding and cross-encoder models on first start.

Risks and side effects

  • Memories are stored in a local SQLite store and may include project decisions, facts, and session summaries; protect that directory appropriately.
  • The initial model download is about 370 MB. Retrieval speed depends on hardware; the documented timing uses an Apple M2 Max.
  • Benchmark figures are reported by the project and are not a guarantee of the same results on other datasets or systems.

Setup

Before you start

Runtime:Python 3.11+

Other optional settings (6)
MEMORY_CROSS_RERANK optional Set to off to disable local cross-encoder reranking and reduce latency.
TAM_MODEL_CACHE optional Sets the model cache directory; the docs suggest ~/.tam/models to avoid macOS clearing models from the system temporary directory.
TAM_MEMORY_DIR optional Sets the memory storage directory; the default is ~/.tam/.
FASTEMBED_CACHE_PATH optional Sets the fastembed model cache path; the test instructions set it to the repository's .tam-models directory.
MEMORY_LLM_ENABLED optional Set to false to disable the LLM for benchmark runs.
TAM_TEST_PG_URL optional 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.

.mcp.json
{"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.

.vscode/mcp.json
{
  "servers": {
    "memory": {
      "command": "total-agent-memory"
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.memory]
command = "total-agent-memory"

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add memory -- total-agent-memory

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

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.

Troubleshooting

  1. Confirm Python 3.11 or newer is installed, the client has been restarted, and the configured MCP command is executable.
  2. If memories are not in the expected location, check `TAM_MEMORY_DIR`; the default is `~/.tam/`.
  3. If the first queries are slow, check that model downloads have completed; set `TAM_MODEL_CACHE` to choose a persistent model cache location.

Things to try

Once connected, you can ask your AI assistant things like:

  • Remember that we chose PostgreSQL for billing because it supports row-level security.
  • Which database did we choose for the billing service?
  • Save this fact: the project uses SQLite for local memory storage.

Use cases

Save and recall project decisions, solutions, facts, and session summaries across sessions.
Record information that changes over time using validity intervals and the knowledge graph.
Retrieve project memories locally and draw on analogous experience across projects.

Supported clients

Claude Code
Codex
Cursor
Windsurf
Gemini CLI
Cline
OpenCode
Claude Desktop

Listed from the project's documentation, not tested by this site.

Overview

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.

Similar servers

Source revision 507d4eb29fe5 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/total-agent-memory.svg)](https://followmcp.com/en/servers/total-agent-memory)