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.
claude mcp add --transport stdio marerem-longmem uvx longmem