Th Memory MCP
Local long-term memory MCP server (SQLite) for AI coding agents — OpenCode, Claude Code, Cursor
Connector by worakorn-prince · GitHub account verified by the MCP Registry
Install
Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.
npx agentmarket install connector/worakorn-prince-th-memory-mcp
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this server can do and what it asks for, from its tool list, install config and code. Checked Oct 25, 2026.
- Tools
- 7 read · 6 write · 1 delete · 2 not yet classified
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Tools by what they do 16
Read from the source code; the running server may list different tools.
Read 7 · Look things up without changing anything.
extract_memoriesget_contextget_profileget_recent_interactionsmemory_statsrecallsearch_history
Write 6 · Create, change, send or run things.
import_memorylink_memorymerge_memoryremembersave_lessonupdate_memory
Delete 1 · Delete, drop, revoke or wipe things.
forget
Not yet classified 2 · We could not tell from the name and description.
consolidateexport_memory
Network hosts it talks to 2
github.com· found in codeopencode.ai· found in code
Files it touches
- Your home directory (~)
- Any path the agent passes to its tools
Tools (16)
Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].
consolidateConsolidate memoriesCluster similar memories via embedding similarity and optionally create derived/consolidated memories linked via 'derived_from'. Use during periodic consolidation.
export_memoryExport memory to JSONExport 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.
extract_memoriesExtract memories from interactionsScan recent captured interactions for memory-intent phrases and propose memory candidates (deterministic, no LLM). Dry-run by default; pass apply=true to create them (source=captured).
forgetForget a memory entryDelete 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_contextGet assembled 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 user profileGet the distilled user profile: profile sections, top preferences by confidence (max 15), and the 5 most recent lessons. Optional userId/sessionId/projectId scope the auto-projected memories; without them only GLOBAL memories are included.
get_recent_interactionsRecent 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.
import_memoryImport memoriesImport memories from a JSON array or a .json file inside data/exports/. Validates type, dedupes against existing memories, and never overwrites active memory blindly. Dry-run by default; pass apply=true to insert.
link_memoryLink two memoriesCreate a typed relationship between two memories in the graph (supports/contradicts/supersedes/derived_from/related_to/caused_by/depends_on).
memory_statsMemory statisticsSummarize memory usage: interaction counts by kind, preference/lesson totals, DB file size, oldest/newest interaction timestamps, and profile sections.
merge_memoryMerge memoriesMerge a duplicate/near-duplicate memory into a canonical one. The source becomes superseded and provenance is recorded in metadata.merged_from.
recallRecall memorySearch preferences + lessons via full-text index, plus recent matching interactions. Use before starting a new task.
rememberRemember preferenceSave 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_lessonSave 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 prompt historySearch past user prompts (kind='prompt') by keyword. Returns timestamped snippets truncated to 200 chars each.
Show 1 more tools
update_memoryUpdate a memoryUpdate mutable fields (summary/importance/confidence/valid_from/valid_until/metadata) in place. If content changes, a superseding memory is created by default (set supersede=false to edit in place).
Signals
- Stars
- 3
- Forks
- 1
- Open issues
- 0
- Last commit
- Oct 23, 2026 (6 days ago)
- Last release
- Oct 23, 2026 (6 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- Registry name
io.github.worakorn-prince/th-memory-mcp- Version
- 2.4.0
- Auth
- No auth
- Packages
- npm th-memory-mcp
- License
- MIT
- Repository
- github.com/worakorn-prince/th-memory-mcp
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
Cite this page
Th Memory MCP. Agent Mart. https://agentmart.dev/connectors/worakorn-prince-th-memory-mcp (last updated 2026-10-24)