MemoryMesh
The SQLite of AI Memory. Persistent, intelligent memory for any LLM in three lines of code.
Three Lines. Persistent Memory.
from memorymesh import MemoryMesh
memory = MemoryMesh()
memory.remember("User prefers Python and dark mode")
results = memory.recall("What does the user prefer?")
No servers. No cloud. No API keys. Everything stays on your machine in SQLite.
Works With Everything
Or connect at smithery.ai/servers/sparkvibe-io/memorymesh. Supports 20+ MCP clients.
Works with Claude Code, Gemini CLI, Codex CLI, Cursor, Windsurf, and any MCP-compatible tool.
Why MemoryMesh?
AI tools have no memory. Existing solutions are heavy. MemoryMesh is different.
Sessions Start Blank
You told Claude your coding style yesterday. Today it asks again.
Decisions Are Lost
You decided JWT for auth. Next session, the AI suggests cookies.
Mistakes Repeat
Fixed a bug Monday. Friday, the AI introduces the same bug.
Tools Are Siloed
What you teach Claude stays in Claude. Gemini and Cursor know nothing.
| Solution | Approach | Trade-off |
|---|---|---|
| Mem0 | SaaS | Cloud required, data leaves machine, ongoing costs |
| Letta | Agent framework | Heavy lock-in, complex setup |
| Zep | Memory server | Requires PostgreSQL + Docker |
| MemoryMesh | Embeddable library | Zero deps. SQLite. Free forever. |
Features
Simple API
remember(), recall(), forget(). No boilerplate.
Semantic Search
Find by meaning, not keywords. Ollama or local embeddings.
MCP Server
Built-in for Claude, Cursor, Windsurf, Gemini.
Memory Categories
Auto-categorize and route to the right scope.
Encrypted Storage
Encrypt at rest. Zero external deps.
Session Context
User profile, guardrails, project state in one call.
Privacy Guard
Auto-detect and redact secrets before storing.
Cross-Tool Sync
Sync memories across Claude, Codex, Gemini, Cursor.
What You Actually Get
MemoryMesh isn't about cramming more into the context window. It's about making every session smarter from the start.
| Without MemoryMesh | With MemoryMesh |
|---|---|
| Every session starts blank | Preferences, decisions, and patterns load automatically |
| Repeat yourself across tools | One memory store shared across Claude, Gemini, Codex, Cursor |
| AI re-discovers settled decisions | Past decisions recalled by semantic search |
| Same bugs reintroduced | Past mistakes remembered and avoided |
| Context locked in one tool | Portable memory that follows you |
Community
MemoryMesh is open source and built in the open. Get involved.