Knowledge & Memoryβ€’ MCP Alternatives Guide

Best Alternatives to Longmem

Looking for an alternative to Longmem? Whether you need a different runtime environment, custom authentication support, or alternative API integrations in the Knowledge & Memory ecosystem, we have cataloged and compared the top alternative MCP servers below.

Browse all Knowledge & Memory servers β†’View Longmem Specs β†’
Longmem logo
Target Reference Server

Longmem Overview

The longmem MCP server gives Cursor and Claude Code persistent memory across projects and sessions. It stores solutions locally and combines semantic embeddings from Ollama or OpenAI with SQLite FTS5 keyword search, then ranks the results. Agents can search before solving a problem and save confirmed solutions for later reuse. Reach for it when recurring debugging knowledge, team facts, or project-specific fixes should remain available across repositories.

Primary Use Cases for Longmem:
  • Search previous fixes before debugging a recurring issue
  • Save confirmed solutions for reuse across repositories
  • Share team knowledge through a common database
  • Export and import memory when onboarding teammates

Specification Matrix: Longmem vs Alternatives

Direct comparison of key metrics, runtimes, authentication methods, and community popularity.

Server NameRuntimeAuthPricingGitHub StarsDownloadsAction
Longmem logoLongmem (Target)
β€”β€”β€”1β€”Current
Moxie Docs MCP logoMoxie Docs MCPnpxOAuthFreemium225
Hindsight logoHindsightnpxAPI keyFree64,366β€”
ContextStream MCP Server logoContextStream MCP ServernpxAPI keyFreemium49β€”
Codemem logoCodememnpxOAuthβ€”84β€”
Codebase Memory MCP logoCodebase Memory MCPnpxNo auth requiredFree49,3881
Shodh Memory logoShodh MemorynpxNo auth requiredFree327β€”
Basic Memory logoBasic MemoryuvxNo auth requiredFreemium4,792β€”
Cognee logoCogneeStreamable HTTP (Remote)No auth requiredFree33,775β€”
Vestige logoVestigenpxNo auth requiredFree665β€”
Sequential Thinking logoSequential ThinkingnpxNo auth requiredFree92,4084
Knowledge Rag logoKnowledge RagnpxNo auth requiredFree314β€”
MCP Memory Server logoMCP Memory ServernpxOAuthFreemium30β€”

Detailed Evaluation of Longmem Alternatives

Moxie Docs MCP logo

Moxie Docs MCP

Runtime: npxKnowledge & Memory
Official

Ground coding agents in repository conventions, API context, documentation gaps, and proposed doc changes.

Key Features:
Pre-edit repository briefings
Convention discovery with citations
Documentation impact analysis
62 25 2
Hindsight logo

Hindsight

Runtime: npxKnowledge & Memory

Stores, searches, and synthesizes long-term agent memory through retain, recall, and reflect operations.

Key Features:
Retain, recall, and reflect operations
Memory banks for organized persistence
Docker, pip, Helm, and hosted deployment options
39 0 64,366
ContextStream MCP Server logo

ContextStream MCP Server

Runtime: npxKnowledge & Memory

Persistent workspace memory with semantic code search, knowledge graphs, session recall, grounded Q&A, and shareable context capsules.

Key Features:
Persistent workspace memory
Semantic and hybrid code search
Dependency graphs and impact analysis
4 0 49
Codemem logo

Codemem

Runtime: npxKnowledge & Memory

Stores and recalls project-specific coding decisions across sessions, machines, and teammates through local memory and optional sync.

Key Features:
Persistent SQLite-backed coding memory
Hybrid BM25 and semantic retrieval
Automatic OpenCode context injection
3 0 84
Codebase Memory MCP logo

Codebase Memory MCP

Runtime: npxKnowledge & Memory

Indexes local repositories into a persistent code graph for symbol search, call tracing, architecture analysis, and change impact.

Key Features:
Persistent local code knowledge graph
BM25, regex, semantic, and graph-ranked search
Paged Cypher queries with continuation cursors
21 1 49,388
Shodh Memory logo

Shodh Memory

Runtime: npxKnowledge & Memory

Offline MCP memory and task management with semantic recall, knowledge graphs, reminders, and local backups.

Key Features:
Local semantic and graph-based memory recall
Hebbian strengthening and activation decay
Persistent reminders and GTD-style todos
9 0 327
Basic Memory logo

Basic Memory

Runtime: uvxKnowledge & Memory

Local-first Markdown knowledge graph with MCP tools for reading, writing, searching, and organizing persistent AI memory.

Key Features:
Plain Markdown storage
Semantic and hybrid search
Knowledge graph with wikilinks
12 0 4,792
Cognee logo

Cognee

Runtime: Streamable HTTP (Remote)Knowledge & Memory

Stores, searches, and deletes agent memory across session caches and permanent graph memory via MCP.

Key Features:
Session cache and permanent graph memory
Text and base64 file ingestion up to 10 MB
Automatic session-first recall routing
6 0 33,775
Vestige logo

Vestige

Runtime: npxKnowledge & Memory

Local Rust memory and safety server with SQLite storage, deterministic recall, causal tracing, and MCP lifecycle hooks.

Key Features:
Local SQLite-backed persistent memory
FSRS-6 scheduling
Deterministic handle and exact-token BM25 recall
4 0 665
Sequential Thinking logo

Sequential Thinking

Runtime: npxKnowledge & Memory
Reference

Adds structured, revisable thought sequences to MCP-aware hosts for complex analysis, planning, debugging, and hypothesis testing.

Key Features:
Structured multi-step thought sequences
Revision of earlier reasoning steps
Branching into alternative analysis paths
23 4 92,408
Knowledge Rag logo

Knowledge Rag

Runtime: npxKnowledge & Memory

Offline local RAG with hybrid BM25 and semantic search, reranking, document management, and MCP tools.

Key Features:
Hybrid BM25 and semantic retrieval
Cross-encoder result reranking
Markdown-aware and format-aware chunking
16 0 314
MCP Memory Server logo

MCP Memory Server

Runtime: npxKnowledge & Memory

Hosted cross-client memory with semantic recall, feedback-based ranking, shared rooms, recent-memory listing, and secret-alias lookup.

Key Features:
Cross-client hosted long-term memory
Semantic recall with recency ordering
Feedback-based retrieval ranking
18 0 30

Frequently Asked Questions: Longmem Alternatives

The top-rated alternatives to Longmem in the Knowledge & Memory category include Moxie Docs MCP, Hindsight, ContextStream MCP Server. These servers offer complementary or alternative capabilities depending on your deployment stack and authentication requirements.

Longmem and its alternatives vary by runtime requirement (Node.js/npx, Python/uvx, Docker, or remote HTTP/SSE endpoints). Check the specification comparison table above to verify command requirements before installing.

It varies by server. Pricing, auth and license are declared by each maintainer and shown in the comparison table where provided β€” a dash means nothing was declared, so check that project's own site before assuming it's free.

Click the "Compare side-by-side β†’" button on any alternative card to see an in-depth comparison matrix covering feature lists, stars, npm downloads, install configurations, and schema specifications.