MCP.Market

Longmem MCP server

by marerem·io.github.marerem/longmem·v0.2.1·1 stars

Persistent cross-project memory for Cursor and Claude Code using local semantic search.

B82/100grade B
What users say
No reviews yet
Be the first
Safety scan
B82/100

full report

Adoption
New

1 stars

Reviews

Write one

Nobody has reviewed Longmem yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Longmem tools (11, 1 write)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • add_edge_case

    Record a context where a cached solution didn't work as-is.

  • confirm_solution

    Auto-save a confirmed solution using context from the last search_similar call.

  • correct_solution

    Fix a specific piece of text in an already-saved solution.

  • delete_solutionwrite action

    Permanently delete a saved entry.

  • enrich_solution

    Append new context to an already-saved solution.

  • list_recent

    List the most recently saved memory entries.

  • rebuild_index

    Rebuild the vector search index for faster similarity search.

  • save_solution

    Save a problem/solution pair to the cross-project memory.

  • search_by_project

    List saved entries for a specific project.

  • search_similar

    Search the cross-project memory for solutions similar to the current problem.

  • stats

    Return database statistics: total entries, breakdown by category, and date range.

Public scan report

scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it

no findings
  • Code scan7 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 164 days ago8/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Overall 82/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How Longmem compares

Against every graded Web search MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
82/100
higher than 68% of 3,470 Web search servers
Tools
11
the typical Web search server has 5
Tools that change things
9%
typical: 0%. Fewer write tools means less an agent can break
GitHub stars
1
more than 55% of 1,786 Web search servers

What its tools let an agent do: 8 read · 2 create · 1 delete

Install Longmem in Claude Code, Cursor or VS Code

claude mcp add longmem -- uvx longmem
Add to Cursor

What the publisher says

From the Longmem repository's README, as published. We do not edit it. Read it on GitHub

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

<!-- demo: record a terminal session showing searchsimilar finding a cached result, then confirmsolution saving it. Drop the GIF here. -->

Your AI solves the same bug in a different project six months later. Writes the same boilerplate. Explains the same pattern. You already knew the answer.

longmem gives your AI a persistent memory that works across every project and every session. Before reasoning from scratch, it searches what you've already solved. After something works, it saves it. The longer you use it, the less you repeat yourself.

You describe a problem
        │
        ▼
  search_similar()
  ┌─────────────────────────────────────────────────────┐
  │  1. pre-filter by category (ci_cd / auth / db / …)  │
  │  2. semantic search  (Ollama or OpenAI embeddings)   │
  │  3. keyword search   (SQLite FTS5 exact match)       │
  │  4. merge + rank results                             │
  └─────────────────────────────────────────────────────┘
        │                          │
   score ≥ 85%               score < 85%
        │                          │
        ▼                          ▼
  cached solution           AI reasons from scratch
  + edge cases                      │
  + team knowledge               "it works"
  (any project)                     │
                                    ▼
                          confirm_solution()
                          saved once — surfaces
                          from every future project

Why longmem

Quickstart

1. Install

pipx install longmem

2. Setup — checks Ollama, pulls the embedding model, writes your IDE config

longmem init

3. Activate in each project — copies the rules file that tells the AI how to use memory

cd your-project
longmem install

4. Restart your IDE. Memory tools are now active on every chat.

Need Ollama? Install from ollama.com, then ollama pull nomic-embed-text. Or use OpenAI — see Configuration.

How it works

longmem is an MCP server. Your IDE starts it on demand. Two rules drive the workflow:

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Longmem: common questions

Is Longmem MCP server safe?
Mostly: it is graded B (82/100). Read the Longmem safety report
How do I install Longmem?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Longmem need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is Longmem maintained?
The last commit was 201 days ago (2026-04-17). The latest release is v0.2.1.
What can I use instead of Longmem?
Servers from other publishers that do the same job: Octobrain MCP server, Marm MCP server and Shodh Memory MCP server.
How does Longmem compare with other Web search MCP servers?
safety score 82/100 (higher than 68% of 3,470 Web search servers); tools 11 (the typical Web search server has 5); tools that change things 9% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.

Alternatives to Longmem

Same job from other publishers: the closest match first, then the best rated.

  • Octobrain
    Persistent memory for AI assistants with semantic search and knowledge graph relationships.
    A
  • Marm
    Universal MCP Server with advanced AI memory capabilities and semantic search.
    A
  • Shodh Memory
    Cognitive memory for AI agents — semantic search, Hebbian learning, knowledge graphs.
    C
  • Arxiv
    Search arXiv papers, download full text, semantic search, citation graphs, and alerts via MCP.
    A
  • Socraticode
    MCP server for enterprise local codebase indexing, semantic search, and code dependency graphs.
    B