Show HN: MCP Memory – Fast Agent Memory Using Google's OKF and SQLite FTS5
TL;DR Highlight
MCP server gives agents long-term memory via OKF markdown files indexed with SQLite FTS5
Who Should Read
A developer whose Claude Code or Cursor agent forgets context every session and who keeps writing handoff prompts
Core Mechanics
- Memory is attached as an MCP server
- MCP-Memory gives agents like Claude Desktop, Cursor, Windsurf, and Codex long-term memory.
- Agents can read, store, search, and delete memories.
- Memory lives in both markdown files and a DB
- Each memory is saved as an OKF v0.2 markdown file with YAML frontmatter in the project's memory/ folder.
- The same content is indexed in SQLite at .mcp_memory/memories.db for search.
- SQLite FTS5 handles search
- The README claims key lookups under 20ms and instant keyword search.
- You can filter by key, tag, and namespace.
- Six MCP tools
- They are memory_store, memory_retrieve, memory_search, memory_delete, memory_get_last, and memory_update_last.
- get_last and update_last read and update a session checkpoint at system/last_memory.
- Per-project isolation and one-step setup
- By default each project root gets its own store.
- python3 setup.py finds installed MCP tools and registers the server automatically.
- Env vars MCP_MEMORY_DB_PATH and MCP_MEMORY_DIR switch to one shared global store.
Community Reactions
- Why not just markdown plus grep?
- One commenter said MCP tools have tended to slow agents down and waste tokens in their experience.
- Others criticized it as grep over a memory/ directory and asked how it differs from Claude's built-in memory or mem0.
- A single MEMORY.md works well for some
- One commenter has the agent read a root MEMORY.md at the start of each conversation.
- At the end of a task the agent updates it with lessons and removes stale info, so handoff prompts are no longer needed.
- Claude Code reportedly under-uses external memory tools
- A commenter who built a similar tool stores coding standards and decisions in it.
- They said Codex and OpenCode with OpenAI models use it very well, while Claude Code seems to prefer its own memory tooling.
- They said it got worse with Opus 5 and needed more detailed setup instructions.
- Vector search and git-backed alternatives suggested
- One commenter thought distilling conversations into embeddings in pgvector would likely be more accurate than FTS.
- Another suggested making a git repo the source of truth with FTS5 as just a speed index, for easier human review.
How to Apply
- Register the memory server in Claude Code
- Clone the repo and run claude mcp add --scope user memory -- /ABSOLUTE/PATH/TO/run.sh.
- In a small project, save a coding style with memory_store, then find it with memory_search in a new session.
- Add session start and end rules to your instructions
- In CLAUDE.md or the system prompt, call memory_get_last at start and memory_update_last at each milestone.
- If the agent skips the tools, make the instructions more specific.
- Compare against the MEMORY.md approach
- Run the same task once with MEMORY.md and once with this server, then compare token usage and context recovery.
- If results are similar, keep the simpler file approach.
- Switch to a global store when projects share memory
- Set MCP_MEMORY_DB_PATH=~/.mcp_memory/memories.db in your MCP config.
- Also set MCP_MEMORY_DIR=~/.mcp_memory/memory.
Try It
# Run in a terminal (install and register)
git clone https://github.com/fellowgeek/mcp-memory
cd mcp-memory
python3 setup.py
# Or register directly with the Claude Code CLI
claude mcp add --scope user memory -- $(pwd)/run.sh
# Instructions to paste into a Claude Code session
# At session start, call memory_get_last to read the last checkpoint.
# When you finish a milestone, save a summary with memory_update_last.
# Now call memory_store with key user/preferences/coding_style and content {{your preferred coding style}}.
# Next step: open a new session and run memory_search with query="{{keyword}}".Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques