localmind
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@localmindremember that I prefer dark mode in every editor"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
localmind
Local-first semantic memory for AI agents.
localmind is an Model Context Protocol (MCP) server that gives your AI agent a persistent memory that never leaves your machine. Memories are stored in a single SQLite file on your disk and searched with embeddings produced entirely on-device — no API keys, no accounts, no cloud, no telemetry.
What it does
Your agent gets 4 MCP tools:
Tool | What it does |
| Store a memory (fact, preference, decision) with optional tags. |
| Semantic search over memories — finds the right memory even when the query shares no keywords with it. |
| Delete a memory by id. |
| Browse stored memories, filterable by tag. |
Example: remember "Sofia is allergic to peanuts" → later ask "what must I avoid cooking for my friend?" → the allergy memory comes back ranked first, despite zero word overlap.
Related MCP server: Memory MCP
Why local-first matters
Privacy by construction — your notes, decisions, and personal facts are embedded and stored on your disk (
~/.localmind/memory.db). There is no server to leak them from, because there is no server.Zero network dependency — the embedding model (all-MiniLM-L6-v2, 384-dim) ships inside the npm package and runs via ONNX in-process.
npx localmindworks offline.No keys, no quota, no cost — nothing to sign up for, nothing to rate-limit you, nothing to expire.
You own the data — one SQLite file. Back it up, sync it, grep it, or delete it whenever you like.
Install & run
npx localmindThat's it. First launch embeds and stores straight from the bundled model — no manual setup steps.
Use the bundled CLI to try it from your terminal:
npx localmind remember "I prefer dark mode in every editor" --tags prefs
npx localmind recall "what theme should the UI use?" # → [1] (score=0.44…) I prefer dark mode…
npx localmind list
npx localmind forget 130-second example
$ npx localmind remember "The wifi password at the Lisbon office is capital-lisbon-2024" --tags wifi
Remembered (id=1, tags=wifi): The wifi password at the Lisbon office is capital-lisbon-2024
$ npx localmind recall "how do I get online at the Portugal HQ?"
[1] (score=0.3841, tags=wifi) The wifi password at the Lisbon office is capital-lisbon-2024
$ npx localmind forget 1
Deleted memory (id=1).Configure in Claude Code / Claude Desktop
Claude Code
claude mcp add localmind -- npx -y localmindOr in .mcp.json / ~/.claude.json:
{
"mcpServers": {
"localmind": {
"command": "npx",
"args": ["-y", "localmind"]
}
}
}
### Claude Desktop
Edit `claude_desktop_config.json` (macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`, Windows: `%APPDATA%\Claude\claude_desktop_config.json`):
```json
{
"mcpServers": {
"localmind": {
"command": "npx",
"args": ["-y", "localmind"]
}
}
}Restart Claude and the remember / recall / forget / list_memories tools appear.
MCP client config reference
Field | Value |
command |
|
args |
|
Configuration (optional)
Env var | Default | Purpose |
|
| Where |
| bundled | Directory containing the |
How it works
you / your agent
│ MCP (stdio JSON-RPC)
▼
localmind server ──► SQLite (better-sqlite3) ──► ~/.localmind/memory.db
│
└──► all-MiniLM-L6-v2 (ONNX, in-process) ──► 384-dim embeddingsStorage — better-sqlite3, WAL mode, one table (
memories: id, text, tags, embedding BLOB, created_at).Embeddings — @xenova/transformers running the quantized ONNX MiniLM model that ships in this package; vectors are L2-normalized and similarity is cosine (dot product).
Search — full cosine scan at query time; instant for the tens of thousands of memories a personal agent accumulates.
Data & privacy
All data lives in a single file:
~/.localmind/memory.db(override withLOCALMIND_HOME).The embedding model is loaded from the package's own
models/directory; remote model fetching is disabled when the bundled model is present.No API keys, no telemetry, no network calls at runtime.
Platform note
better-sqlite3 ships prebuilt native binaries for the common platforms (macOS Intel/ARM, Linux x64/ARM, Windows x64). npm install downloads the right one automatically. npx localmind uses npx's cache, so the binary is fetched once and reused.
Security notes
No network at runtime. The embedding path loads the bundled ONNX model from disk; remote model fetching is disabled in code. Verify with:
grep -RIn "fetch(\|axios\|http" src/npm auditadvisory —@xenova/transformerspinssharp@0.32.6(image codec) which carries advisories. localmind's text-embedding path never invokes sharp (it's used only by image/audio pipelines), but if you treat supply-chain alerts as blockers, wait for upstream transformers.js ≥3 or vendor the model with your own loader.
Development
git clone https://github.com/sahinsamrat75/localmind
cd localmind
npm install
npm run build
npm test # end-to-end test over a real MCP stdio clientThe test suite spawns the real server, remembers 3 facts, semantically recalls them, deletes one, and verifies list_memories reflects the deletion.
License
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Persistent memory for AI agents. Search and store durable facts, preferences and decisions.
Memory system for AI agents with semantic search. Store and recall memories with ease.
Persistent memory for AI agents. Semantic recall by meaning, not just keywords. No signup needed.
Persistent memory for AI agents. Search, store, and recall across sessions.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides AI agents with persistent, searchable memory that survives across conversations using semantic search, temporal versioning, and smart organization. Enables long-term context retention and cross-session continuity for AI assistants.14
- FlicenseNot gradedqualityDmaintenanceProvides persistent AI agent memory using a local vector database for long-term semantic storage and short-term session scratchpads. It enables low-latency memory operations including search, storage, and bulk management without external cloud dependencies.
- AlicenseNot gradedqualityDmaintenanceProvides persistent memory storage for AI agents with full-text search, tagging, and importance levels, enabling agents to store and retrieve memories efficiently.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to maintain persistent, local memory with retrieval-augmented search, knowledge graphs, and context surfacing, without any cloud dependencies.135MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sahinsamrat75/localmind'
If you have feedback or need assistance with the MCP directory API, please join our Discord server