Loci
Click on "Deploy 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., "@Loci Remember that my preferred code style is 4-space indentation."
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.
MCP-Loci
Your AI forgets everything between sessions. Loci fixes that.
Loci is a persistent memory server for Model Context Protocol — giving Claude and other MCP-compatible assistants a cross-session memory that actually works. Store facts, recall them semantically, and synthesize a full portrait of everything your AI knows.
What it does
Tool | Description |
| Store a named memory with type, description, and content |
| Search memories — keyword, semantic, or hybrid |
| Remove a memory by name or ID |
| Cross-memory portrait: changes, uncertainties, and recommendations |
| Server status: memory count, embedding count, model state |
Hybrid search combines BM25 keyword matching (SQLite FTS5) with local semantic embeddings (all-MiniLM-L6-v2) — so recall works whether you remember the exact word or just the general idea.
Related MCP server: AGI MCP Server
Quickstart
Install
pip install mcp-lociOr with semantic search support (recommended):
pip install "mcp-loci[embeddings]"Add to Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"memory": {
"command": "python",
"args": ["-m", "mcp_loci.server"]
}
}
}Restart Claude Desktop. That's it — Claude now has persistent memory across sessions.
Try it
In Claude:
"Remember that my preferred code style is no trailing commas and 4-space indentation."
Close Claude. Reopen it.
"What's my preferred code style?"
Claude remembers.
Memory types
Use types to organize and filter your memories:
Type | Use for |
| Personal preferences, identity, background |
| Things Claude should always/never do |
| Active work context, goals, deadlines |
| Where to find things — links, locations, sources |
Semantic search
Install with [embeddings] to enable semantic recall. The first call loads the model (~90MB, local — no API key needed). Subsequent calls use a background-warmed model for instant response.
recall("what does adam prefer for formatting")
# → surfaces "preferred code style" memory even without exact keyword matchSet semantic: false for pure keyword search, or leave it on for hybrid (default).
Configuration
Env var | Default | Description |
|
| SQLite database location |
Development
git clone https://github.com/underratedf00l/MCP-Loci
cd MCP-Loci
pip install -e ".[dev,embeddings]"
pytest28 tests (24 unit + 4 integration). All green.
Why "Loci"?
The method of loci is a 2,500-year-old memorization technique — you place memories in specific locations in an imagined space so you can walk back and find them. That's exactly what this does, at the data layer.
License
MIT — see LICENSE.
Available Tools
5 toolsforgetForgetA
Soft-delete a memory by ID or name. Pinned memories require force=True.
Inputs: memory_id_or_name (required), force. Returns: object
healthHealthA
Return server health status — DB connectivity, embedding model state, memory counts.
Inputs: no named parameters. Returns: object
recallRecallB
Hybrid keyword + semantic search across memories, ranked by relevance and confidence.
Inputs: query (required), limit, semantic, type_filter, +2 more. Returns: result
rememberRememberC
Store or update a named memory with type, description, and content.
Inputs: name (required), type (required), content (required), description (required), +4 more. Returns: object
synthesizeSynthesizeC
Cross-memory synthesis — portrait, changes, uncertainties, recommendations.
Inputs: scope, type_filter, max_memories, force_refresh, +1 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool maps to a distinct memory operation: health for status, remember for writes, recall for retrieval, forget for deletion, and synthesize for cross-memory analysis. The potential recall/synthesize overlap is resolved by clear descriptions distinguishing ranked retrieval from derived insights.
All names are lowercase single words with a predictable, readable style. Four are action verbs (remember, recall, forget, synthesize) while health is a noun, which is a minor deviation from the otherwise consistent verb pattern.
Five tools is well-scoped for a memory service, covering health, write, retrieval, deletion, and synthesis without padding. Each tool earns its place in the lifecycle.
The core memory lifecycle is covered: status, create/update, search, soft-delete, and synthesis. Minor gaps include no explicit list/get-by-ID operation and only soft deletion, though recall and name-based forget likely let agents work around these.
Maintenance
Related MCP Connectors
Persistent memory for AI assistants: store, search, and connect knowledge across conversations.
Long-term memory for AI assistants. Isolated per-user storage, recall across conversations.
Long-term memory for AI assistants: permanent, portable across clients, searchable and exportable.
Persistent AI memory with semantic search, conflict detection, and ticketing.
Related MCP Servers
- FlicenseAqualityNot gradedmaintenanceProvides long-term memory storage for AI assistants with semantic search, enabling persistent storage of preferences, decisions, and context with relationship tracking between memories.19-
- FlicenseBqualityDmaintenanceEnables persistent memory for AI systems by providing tools for episodic, semantic, and procedural data storage through a vector-and-graph-enhanced database. It allows models to maintain long-term continuity using similarity search, thematic clustering, and identity tracking.241-

JauMemory MCP Serverofficial
AlicenseAqualityDmaintenanceProvides persistent memory capabilities for AI assistants, enabling storage, recall, and analysis of information across conversations with intelligent memory management.2510 npmMIT- AlicenseBqualityDmaintenanceProvides persistent memory for AI assistants, enabling storage, recall, and analysis of information across conversations with intelligent memory management.50MIT