Total Agent Memory logo

Total Agent Memory

Local MCP memory for coding agents with hybrid recall, session history, knowledge graphs, self-improvement, and retention tools.

Install Total Agent Memory

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "total-agent-memory": {
      "command": "uvx",
      "args": [
        "total-agent-memory"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

Total Agent Memory stores coding decisions, solutions, facts, errors, lessons, and session history in local SQLite-backed stores exposed through MCP. Its recall pipeline combines BM25 full-text search, local embeddings, fuzzy matching, graph expansion, and optional reranking, while memory_answer can produce cited responses with contradiction checks. Use it when agents need persistent project context across sessions, searchable history, behavioral rules, or deterministic reports. It runs over stdio by default and can also be used through Docker HTTP, client connectors, or team-server deployments.

Use cases

  • Recall project decisions before starting a coding task
  • Store solutions and conventions for later sessions
  • Generate cited answers from conflicting historical records
  • Review weekly project activity and recurring errors
  • Promote repeated mistakes into behavioral rules

Key features

  • Hybrid BM25, semantic, fuzzy, and graph-based recall
  • Local SQLite storage with project-scoped knowledge
  • Versioned updates, relations, consolidation, and retention
  • Cited answers with contradiction detection
  • Self-improvement rules, insights, and error patterns
  • Deterministic wikis, reports, exports, and health metrics

Tools79

What Total Agent Memory lets your agent do. Expand a tool for its parameters.

Verified live~12.3k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

23/23 checks healthy over the last 55d

What it can do

From the 79 tools this server returned when we ran it; 79 declare their own safety hints.

Runs commands · 8Can delete or modify data · 7Handles credentials · 1Makes network requests · 2Read-only tools · 64
Network at startup6 connections
Files written at startup30

Observed 2026-11-16 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · total-agent-memory (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars78Stargazers on the source repository.
Last commit2d agoMost recent push to the default branch.
Tools exposed79Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Total Agent Memory works

What Total Agent Memory does

Total Agent Memory gives coding agents persistent, local memory through the Model Context Protocol. It records project decisions, solutions, lessons, facts, conventions, errors, observations, reflections, episodes, and session transcripts so later sessions can retrieve earlier context instead of starting from an empty prompt.

Each memory store is organized around a SQLite database. Records can be separated by project and enriched with tags, typed relationships, importance, validity periods, and version history. The package also supports a team-server arrangement with separate personal, department, and company stores, role controls, authorship, and an audit trail.

How it works

memory_recall searches across stored knowledge using a hybrid pipeline. Full-text BM25, locally generated embeddings, fuzzy matching, and graph expansion contribute results; reciprocal rank fusion combines the rankings, and a local cross-encoder can rerank them. The default profile avoids LLM calls during ordinary writes and searches. Fast routing is available through the memory mode configuration and explicit fast tools.

Agents can save new records, update existing records by ID or best match, inspect version chains, create typed relations, and retrieve selected records after an index search. memory_answer adds cited answer generation, evidence dates, contradiction-seeking retrieval, and configurable contradiction handling. Session transcripts can be extracted into knowledge, while error logs, insights, rules, reflections, and episodes support process improvement.

Setup and configuration

Python 3.11 or newer is required. Install the package with pip, pipx, or uvx:

Terminal
pip install total-agent-memory

Running tam setup opens a registration wizard for supported clients. Without a subcommand, total-agent-memory starts the MCP server over stdio. A client can also register the executable directly, for example:

config.json
{"mcpServers":{"memory":{"command":"total-agent-memory"}}}

Memory is stored under ~/.tam/ by default. Set TAM_MEMORY_DIR to use another location. The first launch downloads local embedding and cross-encoder models; TAM_MODEL_CACHE can place those models in a persistent cache. The optional reranker extra uses sentence-transformers and PyTorch, while the team server has a PostgreSQL extra.

Docker exposes MCP over HTTP on port 3737 and a dashboard on port 37737. An npx connector, Claude Code plugins, and source-install scripts provide other integration paths. Use only one of the two Claude Code plugins.

Tools and capabilities

  • Recall, browse, index, answer, fetch, and search knowledge by tag.
  • Save, update, consolidate, relate, export, archive, forget, and delete records.
  • Inspect statistics, health metrics, histories, concepts, graph neighborhoods, and associative matches.
  • Generate deterministic project wikis and period-based activity reports, with optional LLM summaries.
  • Capture observations, extract pending sessions, save episodes, and record self-reflections.
  • Log errors, identify recurring patterns, manage insights, and promote or evaluate behavioral rules.

Reports can cover a day, week, month, all time, or custom dates. They include items such as decisions, fixes, recurring errors, next steps, touched files, technologies, and timelines. Soft deletion preserves database data, while hard deletion removes the record and associated historical and raw-call data.

Limitations and notes

Local model downloads add significant first-run setup time and storage use. The cross-encoder loads in the background, so short-lived processes may initially use the fused search order without cross-encoder reranking. Cross-reranking can be disabled when latency is more important than recall.

memory_answer requires an explicit project and can make multiple reasoning and retrieval calls. memory_save applies a quality gate by default, so low-quality records may be rejected unless that setting is disabled. Repeated identical text replaces the stored record, while changed text creates a new record. Ordinary observations are intentionally lightweight, are not deduplicated, and are automatically cleaned up after 30 days.

Retention tools archive stale, low-confidence records and purge older archived data according to policy. The default server is local, while HTTP and team-server deployments require their respective authentication and storage configuration.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Total Agent Memory

Total Agent Memory is an MCP server that connects coding agents to local SQLite-backed memory stores. Its main tools save, update, recall, browse, relate, export, and manage knowledge, sessions, rules, errors, and reports across projects and agent sessions.

Install it with `pip install total-agent-memory`, then run `tam setup` to register it with supported clients. You can also run `uvx total-agent-memory`, configure the executable directly in an MCP configuration file, use Docker, or use the npx connector.

Yes, Total Agent Memory supports Cursor through the setup wizard, direct MCP configuration, and the npx connector. After registration, restart Cursor so it can start the server over the configured MCP transport.

By default, memory is stored locally under `~/.tam/`. Set `TAM_MEMORY_DIR` to choose another directory. Each store uses a SQLite database, and Docker deployments can mount a host directory at `/data`.

It combines BM25 full-text search, local dense embeddings, fuzzy matching, and knowledge-graph expansion, then merges rankings with reciprocal rank fusion. A local cross-encoder can rerank results, and fast routing is available when lower latency is preferred.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewTotal Agent Memory AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/total-agent-memory?style=directory)](https://allmcps.com/mcp/total-agent-memory)
HTML Embed
<a href="https://allmcps.com/mcp/total-agent-memory"><img src="https://allmcps.com/api/badge/total-agent-memory?style=directory" alt="Total Agent Memory on AllMCPs" /></a>