Persistent local AI memory. SQLite + FTS5 + vector search, knowledge graph. No cloud, no API keys.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Part of the StudioMeyer MCP Stack β Built in Mallorca π΄ Β· β if you use it
Your AI assistant forgets everything when you close the chat. This fixes that.
Learnings, decisions, people, projects β stored in a single SQLite file on your machine that never leaves your computer. Built-in Knowledge Graph, duplicate detection, FTS5 keyword search, and (new in v2) hybrid retrieval that fuses BM25 with on-device vector cosine via Reciprocal Rank Fusion. The embedding model is multilingual (DE / EN / ES / 100+ languages) and runs locally β no API keys, no cloud.
π Deep dive: WHITEPAPER.md β architecture, design principles, the local-first contract, and an honest comparison vs. other memory systems.
Not affiliated with
danieleugenewilliams/local-memory-releasesβ that is a different "Local Memory" project with the same descriptive name. This package is published as@studiomeyer/local-memory-mcpβ always use the scoped name to disambiguate.
We have been building tools and systems for ourselves for the past two years. The fact that this repo is small and has few stars is not because it is new. It is because we only just decided to share what we have built. It is not a fresh experiment, it is a long story with a recent commit.
We love building things and sharing them. We do not love social media tactics, growth hacks, or chasing stars and followers. So this repo is small. The code is real, it gets used, issues get answered. Judge for yourself.
If it helps you, sharing, testing, and feedback help us. If it could be better, an issue is more useful. If you build something with it, tell us at hello@studiomeyer.io. That genuinely makes our day.
From a small studio in Palma de Mallorca.
Easiest: one-click MCPB bundle. v2.0.0 ships pre-built .mcpb bundles for every major desktop platform β download the one for your OS from the latest release and double-click. Claude Desktop walks you through the install β no JSON editing, no npm install, no terminal.
| Platform | Bundle |
|---|---|
| Linux x64 | local-memory-mcp-2.2.0-linux-x64.mcpb |
| macOS Apple Silicon | local-memory-mcp-2.2.0-darwin-arm64.mcpb |
| macOS Intel | local-memory-mcp-2.2.0-darwin-x64.mcpb |
| Windows x64 | local-memory-mcp-2.2.0-win32-x64.mcpb |
Each bundle is platform-specific because better-sqlite3 is a native module β the matching .node binary is shipped inside the bundle so you don't need a build toolchain.
Manual config (all platforms β add to claude_desktop_config.json, see Settings > Developer > Edit Config):
Add to .cursor/mcp.json or .vscode/mcp.json:
You can make session tracking fully automatic so you never have to think about it.
Claude Code (CLAUDE.md): Add this line to your project's CLAUDE.md:
Claude Code (Hook): For a system-wide setup, add a SessionStart hook in ~/.claude/settings.json:
Both approaches make Claude call memory_session_start automatically. The CLAUDE.md way is simpler, the hook way works across all projects.
When you start a conversation, the server loads context from your last sessions so the AI knows what you were working on.
During the conversation, the AI stores patterns, insights, and mistakes via memory_learn. It records facts about people, projects, and tools via memory_entity_observe β building a knowledge graph over time. Every stored row is also embedded into a local 384-dim vector via the multilingual-e5-small model.
When you search, the unified memory_search runs hybrid retrieval: FTS5 with BM25 ranking is fused with vector cosine via Reciprocal Rank Fusion (RRF, k=60). That bridges vocabulary mismatches ("send" finds "publish"), works across DE / EN / ES / 100+ languages, and matches even when the query has no exact token overlap with the stored content. If the vector extension can't load on your machine, search transparently falls back to FTS5-only β nothing breaks, you just lose the semantic half.
The duplicate gatekeeper still prevents storing the same information twice.
Architecture
search_fts (FTS5, BM25) β keyword recall, the v1 path.embeddings (sqlite-vec vec0 virtual table, float[384]) β vector recall.mode: "hybrid".Xenova/multilingual-e5-small (Apache-2.0) via Transformers.js, q8-quantized (~30 MB cache). Model loads lazily on the first embed call; runs entirely on CPU.Multilingual. The default model is trained on 100+ languages with strong DE/EN/ES retrieval. Mixing languages in your stored data is fine β query in one language and the cosine half still surfaces relevant results in another.
Environment overrides
MEMORY_EMBED_DISABLED=1 β force FTS5-only (e.g. air-gapped or corporate-proxy network).MEMORY_EMBED_MODEL=... β swap in a different Transformers.js feature-extraction model.MEMORY_EMBED_CACHE_DIR=... β override the Transformers.js cache location.MEMORY_EMBED_DTYPE=fp32|fp16|q8|q4 β model quantization (default q8).v2.1 closes the gap between "store a fact" and "manage a memory over time". The schema has carried archived, lifecycle_state, valid_from, and valid_to since v1, but no tool exposed them. Now four tools do.
Returns the entity plus the observation set whose validity window contained 2026-04-15. The filter is valid_from <= asOf AND (valid_to IS NULL OR valid_to > asOf). Accepts any format SQLite's datetime() recognizes: ISO 8601 (2026-04-15T00:00:00Z), SQLite-style (2026-04-15 00:00:00), or date-only (2026-04-15). Without asOf you get the legacy live-view (every observation with valid_to IS NULL).
Design choice β valid-time only, not full bi-temporal. SQL:2011, XTDB, Datomic offer two-axis bi-temporal (valid-time Γ transaction-time). We do valid-time only; transaction-time lives passively in created_at but isn't queryable as a separate axis. For a local AI-memory product the question is "what did the AI know about X on date Y" β that's valid-time. Full bi-temporal matters for regulated audit trails (insurance, banking) β if you need it, reach for XTDB.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/local-memory)<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>