
Longmem
Gives Claude and Cursor a persistent memory that survives across projects and sessions. Instead of re-solving the same bugs or rewriting the same patterns, the AI searches a local database of past solutions using hybrid semantic and keyword search before reasoning from scratch. When something works, it saves the solution automatically. Runs entirely on your machine with local Ollama embeddings or optionally OpenAI. The workflow is driven by two MCP tools: search_similar queries the knowledge base before the AI attempts a problem, and confirm_solution saves successful outcomes with auto-filled metadata. Teams can share a database path or export and import JSON snapshots. Includes a CLI review mode for manually adding solutions when the AI forgets to save them.
- GitHub stars
- 1
- tools
- 10
- transport
- STDIO
- last updated
- Apr 16, 2026
Tools
10 toolsPublic tool metadata for what this MCP can expose to an agent.
search_similarSemantic + keyword hybrid search that returns ranked matches with similarity scores, edge cases, and a keyword_match flag.
Semantic + keyword hybrid search that returns ranked matches with similarity scores, edge cases, and a keyword_match flag.
No parameter schema in public metadata yet.
confirm_solutionSaves a solution with one parameter, with problem metadata auto-filled from the preceding search.
Saves a solution with one parameter, with problem metadata auto-filled from the preceding search.
No parameter schema in public metadata yet.
save_solution
No parameter schema in public metadata yet.
correct_solution
No parameter schema in public metadata yet.
enrich_solution
No parameter schema in public metadata yet.
add_edge_case
No parameter schema in public metadata yet.
search_by_project
No parameter schema in public metadata yet.
delete_solution
No parameter schema in public metadata yet.
rebuild_indexCompacts the database and builds the ANN index for faster search, recommended at 256+ entries.
Compacts the database and builds the ANN index for faster search, recommended at 256+ entries.
No parameter schema in public metadata yet.
list_recent
No parameter schema in public metadata yet.
Sponsors
Readme
Details
- Repository
- github.com/marerem/longmem
- Categories
- AI & LLM Tools, Search & Web Crawling
- Package
longmem- Transport
- STDIO
- Registry
- MCP registry, active