tdai-memory-mcp
The server provides persistent, searchable long-term memory for AI coding agents, running locally with an embedded SQLite database (no external database or API key required).
Memory Operations: Recall past memory using hybrid BM25 + vector search with pagination/token limits; capture decisions, learnings, tasks, errors, conversations, and atomic facts; search by keyword/semantic similarity with filters; forget by ID, tag, type, or date with confirmation.
Agent Handoff & ADRs: Create structured handoff packets to transfer context between sessions/agents (saving 60–85% tokens); record architecture decision records with rationale, alternatives, and consequences.
Data Management: Export/import memory as JSON (filterable, stdout support); backup database and audit log; view memory in a local web viewer at http://localhost:7331; print stats (counts, top tags, sessions, etc.).
Automation: Install agent skills and lifecycle hooks (SessionStart auto-recall, Stop handoff reminder) for Claude Code, Devin CLI, and others.
Optional LLM Pipeline: With an API key, distill raw captures into atomic facts (L1), scenarios (L2), and persona profiles (L3); otherwise, raw captures and hybrid search work in noop mode.
Security: Automatic secret redaction on captures; token caps on recall (4,000) and search (8,000); audit log of all tool calls with hashed arguments.
Team Collaboration: Sync shared team memory via a committed
.tdai-memory/memory-export.jsonfile in a repo.Programmatic Access: TypeScript SDK for direct
capture,recall,handoff,adrcalls.Configuration: Configurable via environment variables or config file; supports multiple clients (Claude Code, Cursor, Codex CLI, Devin CLI, Trae); Docker support.
Syncs project memory to a Git repository, enabling team sharing through commits, diffs, and merges.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@tdai-memory-mcp what did we decide about the API design?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
tdai-memory-mcp → remem-mcp
This package has been renamed to remem-mcp.
Migrate
npx remem-mcp setupYour existing memory.db is preserved — same SQLite file, same path (~/.local/share/remem-mcp/memory.db).
Related MCP server: Memryzed
What changed
Package name:
tdai-memory-mcp→remem-mcpEnv vars:
TDAI_*→REMEM_*Everything else stays the same: same tools, same DB, same hooks
Links
New repo: github.com/tinhien11/remem-mcp
Available Tools
7 toolsadrA
Record an Architecture Decision Record (ADR). Use this tool when you make a technical decision that future agents should know about. The ADR is stored as a structured capture and can be recalled by any agent working on the same project.
Inputs: title (required), context (required), decision (required), tags, +7 more.
captureA
Save a decision, a learning, or a task outcome to memory. Call this tool after you complete a non-trivial task, make a decision, or fix a bug with a known root cause. You can capture a single text string, or a list of role-based conversation messages.
Inputs: type (required), tags, content, task_id, +9 more.
forgetA
Delete specific memory entries. Use this tool only when the user requests a deletion. Do not auto-forget.
Inputs: id, filter, reason, reject, +1 more.
handoffA
Write a structured handoff packet for the next agent session. Call this tool at the end of a session, or before you switch to a different agent. The next agent calls recall to load this packet and continue without re-reading files. This saves 60-85% of tokens compared to re-discovering context.
Inputs: task (required), status (required), progress (required), files, +7 more.
recallA
Retrieve relevant past memory. Call this tool before you answer the user. Use it when the user references past work or when the task needs project context.
Inputs: query (required), mode, limit, offset, +6 more.
resolveA
Resolve a conflict between two captures. Mark one as the winner and the other as stale. Call this tool when capture reports a conflict between two memories.
Inputs: loser (required), winner (required), reason.
searchA
Search memory by keyword or by semantic similarity. Use this tool when recall is too broad and you need specific facts.
Inputs: query (required), mode, limit, filters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Most tools have clearly distinct purposes: recall for broad context, search for specific facts, capture for saving, resolve for conflicts, forget for deletion, handoff for session transfer, and adr for architecture decisions. The main overlap is between recall and search, but their descriptions clarify the difference (broad versus specific).
Tool names are mostly single-word lowercase verbs (recall, capture, search, resolve, forget), which forms a predictable pattern. However, 'handoff' is a noun/phrasal verb and 'adr' is an acronym, creating minor deviations from the otherwise consistent verb style.
With 7 tools, the set is well-scoped for a memory-management server. Each tool serves a distinct memory lifecycle function without unnecessary bloat or overlap.
The tool surface covers core memory operations: store (capture), retrieve (recall/search), delete (forget), conflict handling (resolve), plus specialized features (handoff, adr). A missing explicit 'update memory' tool is a minor gap, but capture can serve that role implicitly.
Maintenance
Related MCP Connectors
Hosted memory for AI agents over MCP. One memory shared by all your agents.
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
An MCP memory server. One memory your agents share — across models, devices and apps.
Persistent, inspectable memory for AI agents with lineage, correction, and a hosted MCP endpoint.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceA local-first MCP memory server providing persistent, searchable memory for AI agents, powered by SQLite.1Functional Source , Version 1.1, ALv2 Future
- FlicenseNot gradedqualityCmaintenanceLocal-first cross-agent memory for AI coding agents. Persistent, shared memory over MCP — what you tell one agent can be recalled by another — with all data stored in a single local SQLite file, no cloud and no API keys.-
- AlicenseNot gradedqualityDmaintenancePersistent memory for AI coding agents. Enables agents to save and recall decisions, patterns, bugs, and context across sessions via an MCP server with local SQLite storage.9 npm2MIT
- AlicenseNot gradedqualityBmaintenanceA local memory server for AI agents that stores and retrieves information via MCP, keeping all data in SQLite on your machine.188 PyPI1Apache 2.0