Local Memory logo

Local Memory

Local-first AI memory using SQLite, FTS5, vector search, and a knowledge graph without cloud services or API keys.

Install Local Memory

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "local-memory": {
      "command": "npx",
      "args": [
        "-y",
        "@studiomeyer/local-memory-mcp"
      ],
      "env": {
        "MEMORY_EMBED_DISABLED": "YOUR_VALUE_HERE",
        "MEMORY_EMBED_MODEL": "YOUR_VALUE_HERE",
        "MEMORY_EMBED_CACHE_DIR": "YOUR_VALUE_HERE",
        "MEMORY_EMBED_DTYPE": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env MEMORY_EMBED_DISABLED=YOUR_VALUE_HERE --env MEMORY_EMBED_MODEL=YOUR_VALUE_HERE --env MEMORY_EMBED_CACHE_DIR=YOUR_VALUE_HERE --env MEMORY_EMBED_DTYPE=YOUR_VALUE_HERE --transport stdio local-memory -- npx -y @studiomeyer/local-memory-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

The install command didn't complete successfully in our automated test.

npx -y @studiomeyer/local-memory-mcp

7F0000:error:1C800066:Provider routines:ossl_gcm_stream_update:cipher operation failed:../deps/openssl/openssl/providers/implementations/ciphers/ciphercommon_gcm.c:359: npm error npm notice npm notice New major version of npm available! 10.9.9 -> 12.2.2 npm notice Changelog: https://github.com/npm/cli/releases/tag/v12.2.2 npm notice To update run: npm install -g npm@12.2.2 npm notice npm error A complete log of this run can be found in: /home/user/.npm/_logs/2026-11-10T15_18_52_497Z-debug-0.log

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Local Memory MCP server gives Claude, Cursor, Codex, and VS Code persistent memory backed by a SQLite file on the local machine. It combines FTS5/BM25 keyword search with on-device vector retrieval through Reciprocal Rank Fusion, while also tracking entities, observations, sessions, and changing facts. Multilingual embeddings support retrieval across German, English, Spanish, and more than 100 languages. Reach for it when an agent needs durable project context without sending memory data to a cloud service.

Use cases

  • Persist project decisions and learnings across AI sessions
  • Search local memory using keywords or semantic similarity
  • Track facts about people, projects, and tools over time
  • Review an entity's valid observations as of a past date

Key features

  • SQLite storage with FTS5 and BM25 search
  • Hybrid keyword and vector retrieval with RRF
  • Local multilingual embeddings
  • Knowledge graph from entities and observations
  • Duplicate detection and fact supersession
  • JSON export and import

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

22/22 checks healthy over the last 88d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 2d ago via OSV.dev · @studiomeyer/local-memory-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars15Stargazers on the source repository.
npm downloads900Package downloads in the last 30 days.
Last commit4d agoMost recent push to the default branch.
Install checkInconclusiveInstall command did not finish in our automated test.
Directory activity17 viewsConfig copies, upvotes, and views on AllMCPs.

How Local Memory works

What Local Memory does

Local Memory stores assistant memory on the machine that runs the MCP process. Learnings, decisions, mistakes, people, projects, tools, and related observations are kept in a SQLite database, giving an agent context that can persist between conversations.

The package combines several memory features in one local store:

  • FTS5 full-text search with BM25 ranking
  • Local vector embeddings and cosine retrieval
  • Reciprocal Rank Fusion for hybrid search
  • Duplicate detection before new information is stored
  • A knowledge graph built from entities and observations
  • Session start and end tracking
  • Valid-time queries for viewing an entity as it was known on a chosen date
  • JSON export and import for portability

No cloud service or API key is needed. The embedding model runs locally through Transformers.js.

How it works

Each stored learning, decision, or entity observation can be embedded into a 384-dimensional vector. The default model is Xenova/multilingual-e5-small, which is downloaded to a local Transformers.js cache, quantized by default, and executed on the CPU. Entity records themselves are not embedded; their observations provide the searchable semantic content.

memory_search uses hybrid retrieval by default. It combines FTS5/BM25 results with vector cosine results using Reciprocal Rank Fusion with k=60. Searches can instead use keyword-only or vector-only retrieval. If the SQLite vector extension cannot load, the server falls back to FTS5 search.

Entity observations can carry validity windows. Opening an entity with an asOf date returns observations whose valid_from and valid_to cover that date; without a date, the tool returns the live view. This is valid-time history rather than a separate transaction-time audit axis.

Setup and configuration

The published npm package runs through npx and requires Node.js 22 for the documented Claude Desktop setup. Example client configurations use the command npx -y @studiomeyer/local-memory-mcp.

Claude Code can register it with:

Terminal
claude mcp add memory -- npx -y @studiomeyer/local-memory-mcp

Claude Desktop, Cursor, VS Code, and Codex use their respective MCP configuration files with the same command and package arguments. For Claude Code, adding instructions to call memory_session_start at conversation start and memory_session_end at completion enables session tracking; a Claude Code SessionStart hook can apply the reminder system-wide.

Embedding behavior can be adjusted with these environment variables:

  • MEMORY_EMBED_DISABLED=1 forces FTS5-only retrieval.
  • MEMORY_EMBED_MODEL selects another Transformers.js feature-extraction model.
  • MEMORY_EMBED_CACHE_DIR changes the model cache location.
  • MEMORY_EMBED_DTYPE selects fp32, fp16, q8, or q4 quantization.

Tools and capabilities

The package exposes 25 MCP tools. Named tools include:

  • memory_learn for recording patterns, insights, and mistakes
  • memory_search for hybrid, FTS5, or vector retrieval
  • memory_entity_observe for adding facts about entities
  • memory_entity_open for reading an entity and optionally applying an asOf date
  • memory_session_start and memory_session_end for conversation lifecycle tracking

The storage model supports entity relationships, duplicate prevention, fact supersession, lifecycle states, archival, validity intervals, and portable JSON export/import. Hybrid retrieval can bridge different wording and can return relevant material even without exact token overlap. Multilingual embeddings allow queries and stored content to use different supported languages.

Limitations and notes

Vector retrieval depends on loading the SQLite vector extension and the local embedding model. When vector support is unavailable, keyword search remains available but semantic retrieval is lost. Embedding is CPU-based and the model cache is approximately 30 MB with the default q8 setting.

The default model is multilingual, but its documented strong retrieval coverage is German, English, and Spanish within a broader set of more than 100 languages. Valid-time queries are designed for questions about what the system knew at a date; transaction time is retained in created_at but is not exposed as a separate query axis.

The database is local and portable through JSON export/import. Its local-first design suits private memory and offline or air-gapped use, while the optional embedding model can be disabled for environments where model loading is not wanted.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Local Memory

Local Memory is an MCP server that connects AI clients to a local SQLite memory store. Its main tools include memory_learn, memory_search, memory_entity_observe, memory_entity_open, memory_session_start, and memory_session_end for storing, retrieving, and managing persistent context without cloud services or API keys.

Install it by configuring your MCP client to run `npx -y @studiomeyer/local-memory-mcp`. Claude Code supports `claude mcp add memory -- npx -y @studiomeyer/local-memory-mcp`; Claude Desktop, Cursor, VS Code, and Codex use their MCP configuration files. The documented Claude Desktop setup requires Node.js 22.

Yes, Local Memory works with Cursor through `.cursor/mcp.json`. Add an MCP server named `memory` with `npx` as the command and `-y @studiomeyer/local-memory-mcp` as its arguments.

Yes, Local Memory stores data in a local SQLite file and runs its embedding model on the machine, so it does not require a cloud service or API key. Set `MEMORY_EMBED_DISABLED=1` to force FTS5-only search in air-gapped or restricted environments.

Search uses hybrid retrieval by default, combining FTS5/BM25 keyword results with local vector cosine results through Reciprocal Rank Fusion. `memory_search` also supports FTS5-only and vector-only modes, and falls back to FTS5 if the vector extension cannot load.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

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 PreviewLocal Memory AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/local-memory?style=directory)](https://allmcps.com/mcp/local-memory)
HTML Embed
<a href="https://allmcps.com/mcp/local-memory"><img src="https://allmcps.com/api/badge/local-memory?style=directory" alt="Local Memory on AllMCPs" /></a>