Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI β†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE β†— (opens in a new tab)
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. 🧠 Knowledge & Memory
  3. Longmem
L
Health: Not checked yetWe have not completed a health check for this listing yet.No health check has run yet.

Longmem

User RatingsBe the first to rate and review this MCP server! Enrichment pendingWe haven’t run our AI enrichment pass on this listing yet, so the overview, use cases, and FAQ below may be sparse or missing. We work through the catalog over time β€” check back soon.
View Repository

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

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Manual Client & Custom JSON ConfigExpand JSON β–Ύ

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "longmem": {
      "command": "npx",
      "args": [
        "-y",
        "longmem"
      ]
    }
  }
}

πŸ’‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Directory Badge Claim listing Alternatives🧠 More in Knowledge & Memory

Documentation Overview

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


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.

Code
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

longmemothers
CostFree β€” local Ollama embeddingsRequires API calls per session
PrivacyNothing leaves your machineSends observations to external APIs
ProcessStarts on demand, no daemonBackground worker + open port required
IDE supportCursor + Claude CodePrimarily one IDE
SearchHybrid: semantic + keyword (FTS5)Vector-only or keyword-only
TeamsExport / import / shared DB path / S3Single-user
LicenseMITAGPL / proprietary

Quickstart

1. Install

bash
pipx install longmem

2. Setup β€” checks Ollama, pulls the embedding model, writes your IDE config

bash
longmem init

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

bash
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:

Rule 1 β€” search first. Before the AI reasons about any bug or question, it calls search_similar. If a match is found (cosine similarity β‰₯ 85%), the cached solution is returned with any edge-case notes. Below the threshold, the AI solves normally.

Rule 2 β€” save on success. When you confirm something works, the AI calls confirm_solution. One parameter β€” just the solution text. Problem metadata is auto-filled from the earlier search.

The rules file (longmem.mdc for Cursor, CLAUDE.md for Claude Code) wires this up automatically. No manual prompting.

AI forgot to save? Run longmem review β€” an interactive CLI to save any solution in 30 seconds.

Cold start β€” getting value from day one

longmem is most useful once it has entries. The fastest way to seed it:

Option 1 β€” review as you go. After every solved problem this week, run longmem review and describe what you fixed. Ten entries is enough to feel the difference.

Option 2 β€” team import. If a teammate already has entries, they export and you import:

server.ts
# teammate
longmem export team_knowledge.json

# you
longmem import team_knowledge.json

Option 3 β€” shared DB. Set db_path (or db_uri for S3/cloud) to the same location for the whole team. Every save is instantly available to everyone.


CLI

CommandWhat it does
longmem initOne-time setup: Ollama check, model pull, writes IDE config
longmem installCopy rules into the current project
longmem statusConfig, Ollama reachability, entry count, DB size
longmem export [file]Dump all entries to JSON β€” backup or share
longmem import <file>Load a JSON export β€” onboard teammates or migrate machines
longmem reviewManually save a solution when the AI forgot

longmem with no arguments starts the MCP server (used by your IDE).


Configuration

Config lives at ~/.longmem/config.toml. All fields are optional β€” defaults work with a local Ollama instance.

Switch to OpenAI embeddings

toml
embedder       = "openai"
openai_model   = "text-embedding-3-small"
openai_api_key = "sk-..."   # or set OPENAI_API_KEY

Install the extra: pip install 'longmem[openai]'

Team shared database

Point every team member's config at the same path:

toml
# NFS / shared drive
db_path = "/mnt/shared/longmem/db"

Or use cloud storage:

toml
# S3 (uses AWS env vars)
db_uri = "s3://my-bucket/longmem"

# LanceDB Cloud
db_uri = "db://my-org/my-db"
lancedb_api_key = "ldb_..."   # or set LANCEDB_API_KEY

No shared mount? Use longmem export / longmem import to distribute a snapshot.

Team knowledge base

Save facts that are true across your whole stack under project="shared" so they surface from any repo:

Code
save_solution(
  problem="why oauth2-proxy uses port 4181 not default 4180",
  solution="General: 4180 is the oauth2-proxy default. 4181 means something else already occupies 4180.\n\nThis team's setup: Sinfonia always runs on 4180. Every other project uses 4181+ by convention.",
  project="shared",
  category="networking",
  tags=["oauth2-proxy", "ports", "nginx"]
)

search_similar searches all projects β€” a shared entry surfaces automatically from any repo without needing search_by_project.

Three-layer solution format β€” write solutions so they work for anyone who finds them:

LayerScopeHow to save
1. General patternUniversal β€” any teamalways include in solution text
2. Team-wide factYour whole stackproject="shared"
3. Project detailOne repo onlyproject="<repo>" + enrich_solution

Tuning

toml
similarity_threshold = 0.85   # minimum score to surface a cached result (default 0.85)
duplicate_threshold  = 0.95   # minimum score to block a save as a near-duplicate (default 0.95)

MCP tools

The server exposes 11 tools. The two you interact with most:

  • search_similar β€” semantic + keyword hybrid search. Returns ranked matches with similarity scores, edge cases, and a keyword_match flag when the hit came from exact text rather than vector similarity.
  • confirm_solution β€” saves a solution with one parameter. Problem metadata auto-filled from the preceding search.

Full list: save_solution, correct_solution, enrich_solution, add_edge_case, search_by_project, delete_solution, rebuild_index, list_recent, stats.

Call rebuild_index once you reach 256+ entries to compact the database and build the ANN index for faster search.


Category reference

Categories pre-filter before vector search β€” keeps retrieval fast at any scale.

CategoryUse for
ci_cdGitHub Actions, Jenkins, GitLab CI, build failures
containersDocker, Kubernetes, Helm, OOM kills
infrastructureTerraform, Pulumi, CDK, IaC drift
cloudAWS/GCP/Azure SDK, IAM, quota errors
networkingDNS, TLS, load balancers, timeouts, proxies
observabilityLogging, metrics, tracing, Prometheus, Grafana
auth_securityOAuth, JWT, RBAC, secrets, CVEs
data_pipelineAirflow, Prefect, Dagster, ETL, data quality
ml_trainingGPU/CUDA, distributed training, OOM
model_servingvLLM, Triton, inference latency, batching
experiment_trackingMLflow, W&B, DVC, reproducibility
llm_ragChunking, embedding, retrieval, reranking
llm_apiRate limits, token cost, prompt engineering
vector_dbPinecone, Weaviate, Qdrant, LanceDB
agentsLangChain, LlamaIndex, tool-calling, agent memory
databaseSQL/NoSQL, migrations, slow queries
apiREST, GraphQL, gRPC, versioning
async_concurrencyRace conditions, event loops, deadlocks
dependenciesVersion conflicts, packaging, lock files
performanceProfiling, memory leaks, caching
testingFlaky tests, mocks, integration vs unit
architectureDesign patterns, service boundaries, refactoring
otherWhen nothing above fits

Read the full README β†’View source on GitHub β†’

Related MCP Servers

View all in Knowledge & Memory View all alternatives
  • Moxie Docs MCP logoMoxie Docs MCP
    β˜… Featured

    MCP & Agent Skills for Automated Documentation, and codebase conventions + context

    🧠 Knowledge & Memory21 views
    Compare vs Moxie Docs MCP β†’
  • Scrivener MCP logoScrivener MCP

    Connect Scrivener 3 writing projects to Claude and other AI assistants. 47 tools for document management, writing analysis, semantic search, character/plot memory, and content enhancement. Progressive skill loading, relationship engine with HMS triplets, and JS fallback for offline semantic search. npm i -g scrivener-mcp

    🧠 Knowledge & Memory16 views
    Compare vs Scrivener MCP β†’
  • Marm MCP Server logoMarm MCP Server

    Universal MCP Server with advanced AI memory capabilities and semantic search.

    🧠 Knowledge & Memory1 views
    Compare vs Marm MCP Server β†’
  • Collective Memory logoCollective Memory

    MCP server for persistent, semantic memory across AI sessions

    🧠 Knowledge & Memory1 views
    Compare vs Collective Memory β†’

Reviews

No reviews yet β€” be the first to share how this listing worked for you.

Frequently Asked Questions about Longmem

Add the following block to your claude_desktop_config.json under mcpServers: "mcpServers": { "longmem": { "command": "npx", "args": ["-y", "longmem"] } }

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLongmem AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/longmem?style=directory)](https://allmcps.com/mcp/longmem)
HTML Embed
<a href="https://allmcps.com/mcp/longmem"><img src="https://allmcps.com/api/badge/longmem?style=directory" alt="Longmem on AllMCPs" /></a>

Technical Specs & Signals

Category🧠Knowledge & Memory
More technical detailsExpand β–Ύ
TransportSTDIO
RuntimeNode.js
Last updatedSep 7, 2026
Views0
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
27Quality signal: Emerging Β· 27/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership8/20
Documentation & tools11/30
Adoption & activity1/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

β˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge and attach your website β€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it β€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in 🧠 Knowledge & Memory β†’Best MCP servers for Memory & Knowledge β†’Alternatives to Longmem β†’Install in Claude DesktopInstall in CursorInstall in VS Code