marerem avatar

Longmem

marerem/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 tools

Public 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

longmem

Cross-project memory for AI coding assistants.
Stop solving the same problems twice.

PyPI Python 3.11+ License: MIT Tests Coverage Open Issues Closed Issues marerem/longmem MCP server



View the full README on GitHub

Details

Repository
github.com/marerem/longmem
Categories
AI & LLM Tools, Search & Web Crawling
Package
longmem
Transport
STDIO
Registry
MCP registry, active

Related AI & LLM Tools MCP servers

View all
1metrxbots avatarMcp Servermetrxbots/mcp-serverTrack AI agent costs, detect waste, optimize models, and prove ROI. 23 MCP tools across 10 domains.0stars
2ndjordjevic avatarPinRAGndjordjevic/pinragMCP RAG: index PDFs, repos, YouTube, Discord, text; optional YouTube vision; query with citations.1stars
3nugehs avatarAiglarenugehs/aiglareAudit AI/LLM features for governance guardrails: confidence, fallback, validation, human-in-loop.1stars
4prompeteer avatarPrompeteerprompeteer/prompeteer-mcpContextual prompts and agent skills for 140+ AI platforms.1stars
5pvliesdonk avatarImage Generation MCP Serverpvliesdonk/image-generation-mcpMCP server for AI image generation via OpenAI, Stable Diffusion (SD WebUI), or placeholders.1stars
6rafavecchi avatarGrantdrafavecchi/grantdGrantd MCP server: let your AI agent act on a user's behalf across third-party APIs via OAuth.1stars