Th Memory MCP server
Local long-term memory MCP server (SQLite) for AI coding agents — OpenCode, Claude Code, Cursor
3 stars451 downloads/wk
Reviews
Write oneNobody has reviewed Th Memory yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Th Memory tools (11, 1 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
consolidateCluster similar memories via embedding similarity and optionally create derived/consolidated memories linked via 'derived_from'. Use during periodic consolidation.
export_memoryExport preferences, lessons, profile (and optionally raw interactions) to a JSON file under data/exports/. Only writes inside that directory. Returns the file path, size in bytes and a JSON preview.
forgetwrite actionDelete one memory row (preference, lesson or interaction) by id and sync the search index. Pass type when you know it (ids from remember are preference ids, from save_lesson are lesson ids).
get_contextAssemble relevant memories for the current task via hybrid retrieval (+ optional memory-graph expansion), with token budgeting. Use to load memory into context before a task.
get_profileGet the distilled user profile: profile sections, top preferences by confidence (max 15), and the 5 most recent lessons.
get_recent_interactionsList recently captured raw interactions (newest first) as [id] ts [kind] content lines. Optionally filter by kind. Use for auditing history or before distilling memory.
memory_statsSummarize memory usage: interaction counts by kind, preference/lesson totals, DB file size, oldest/newest interaction timestamps, and profile sections.
recallSearch preferences + lessons via full-text index, plus recent matching interactions. Use before starting a new task.
rememberSave or update a user preference (category+key upsert). Re-saving the same key increases confidence by 0.1 (cap 1.0). Returns the row id for forget().
save_lessonRecord a lesson learned from a correction: what situation, what mistake, what is the correct way. Call immediately after the user corrects your work.
search_historySearch past user prompts (kind='prompt') by keyword. Returns timestamped snippets truncated to 200 chars each.
Public scan report
scanner v0.1.9 · 2026-09-20 · same rubric, same numbers if you re-run it
- Code scan39 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 6 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Install directly
Runs npx -y th-memory-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add th-memory-mcp -- npx -y th-memory-mcp
Th Memory: common questions
- Is Th Memory MCP server safe?
- Yes, by our scan: it is graded A (92/100). Read the Th Memory safety report
- How do I install Th Memory?
- It runs on your machine. Copy the Claude Code, Claude Desktop or Cursor config from the install section.
- Does Th Memory need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Th Memory maintained?
- The last commit was 6 days ago (2026-09-14). The latest release is v2.0.0.
- What can I use instead of Th Memory?
- Servers from other publishers that do the same job: Myc MCP server, skillmem MCP server and Leteo MCP server. Compare all Th Memory alternatives.
Alternatives to Th Memory
Same job from other publishers: the closest match first, then the best rated.
- MycTask queue, decisions and memory for coding agents. Local SQLite, no network. Requires Bun.not reviewedGrowingC
- skillmemSkill memory for coding agents: learn, recall, reinforce, decay. Local SQLite, no API key.not reviewedGrowingA
- LeteoPersistent memory for AI coding agents: one Rust binary, one local SQLite database.not reviewedGrowingA
- PalaceLocal-first memory for coding agents — MCP server, single SQLite file, local embeddingsnot reviewedGrowingA
- RememLocal-first automatic memory for Claude Code and Codex: capture, distill, recall from SQLite.not reviewedEstablishedB