Nexus Memory MCP
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., "@Nexus Memory MCP save to project memory: we use pnpm and SQLite WAL"
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.
Nexus Memory MCP
π§ Local-First Persistent Memory & Cross-Model Session Handoff MCP Server (part of the Nexus ecosystem)
Model-Agnostic, High-Performance, Privacy-Guaranteed Scoped Intelligence
π Why Nexus Memory MCP?
Today, AI agents suffer from two primary memory challenges:
The official Memory MCP is too simplistic:
@modelcontextprotocol/server-memoryis an unindexed flat JSON knowledge graph with no project isolation, no automatic deduplication, and zero cross-session handoff capability.Cloud memory services compromise privacy: Solutions like Mem0 or third-party APIs require streaming your proprietary source code and sensitive conversations to external clouds, introducing token billing, latency, and data leakage risks.
Nexus Memory MCP extracts the battle-tested IntelligenceStore + MemoryRuntime + SessionHandoffManager from the core Nexus architecture into a lightweight, standalone MCP server:
π 100% Local Privacy: Backed by high-concurrency SQLite in WAL mode at
~/.nexus/nexus-memory.db. Zero cloud dependency, microsecond reads/writes.π‘οΈ Physical Secret Redaction: Built-in
redactSensitiveTokensengine automatically sanitizes API keys (sk-...), Nexus tokens (lb_...), GitHub PATs, database credentials, and private keys before persistence.ποΈ Multi-Tier Scope Isolation: Strict boundaries for
GLOBAL(cross-project preferences),PROJECT(project-specific architecture & rules),SESSION, andTASK.π Cross-Model Session Handoff: Finish a milestone in Claude Desktop, generate an 8-character handle (
nx-a1b2c3d4), and paste a single wake prompt into Cursor, ChatGPT, or Gemini to instantly restore full context!β‘ Zero-LLM Token Budget Cap (<800 Tokens): Compacts key decisions, active files, and pending tasks deterministically without consuming token budgets for summarization.
Related MCP server: localmem-mcp
π Quickstart (1 Minute Setup)
git clone https://github.com/ysunyang4/Nexus-Memory-MCP.git
cd Nexus-Memory-MCP
pnpm install && pnpm run build1. Claude Desktop Configuration
Edit your Claude Desktop config:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Add to mcpServers:
{
"mcpServers": {
"nexus-memory": {
"command": "node",
"args": [
"<path-to-Nexus-Memory-MCP>/dist/index.js"
]
}
}
}2. Cursor / VS Code / Antigravity Setup
In your MCP settings:
Name:
nexus-memoryType:
command (stdio)Command:
node <path-to-Nexus-Memory-MCP>/dist/index.js
π οΈ Core Tools & Resource Reference
Tool / Resource | Description | Key Parameters |
| Load a compact ( |
|
| Save/update a scoped memory with secret sanitization and an explicit write receipt ( |
|
| Exact lookup of a single active memory by |
|
| Search and rank memories with multi-attribute scoring and reasoning |
|
| List active memories with optional scope filtering |
|
| Package current session into a compact bundle ( |
|
| Resume session context using an 8-char handle (or auto-read |
|
| Merge duplicate memories, unify tags, and archive superseded records |
|
| Markdown digest of high-importance | β |
π§ͺ Verification
Includes a comprehensive test suite covering secret redaction, write receipts, session bootstrap, scoped memory CRUD, score ranking, and cross-session handoffs:
pnpm testStatus:
12 tests passed (100% pass rate)
π License
Licensed under the Apache-2.0 License.
Part of the Nexus local AI infrastructure ecosystem.
Available Tools
9 toolsnexus_memory_bootstrapA
Load a compact (<700 tokens) digest of high-importance GLOBAL and current PROJECT memories at the start of a session.
Inputs: scopeId, maxTokens, minImportance.
nexus_memory_consolidateB
Consolidate duplicate or conflicting active memories across a given scope into canonical records.
Inputs: scope, scopeId.
nexus_memory_getB
Get a single active memory by exact id or by key + scope.
Inputs: id, key, scope, scopeId.
nexus_memory_listC
List active memories with optional scope filter.
Inputs: limit, scope, scopeId.
nexus_memory_recallB
Recall and rank memories based on query keyword matching, scope isolation, importance weighting, and recency.
Inputs: tags, type, limit, query, +3 more.
nexus_memory_searchB
Search and rank memories by keyword, scope, type, or tags (alias of nexus_memory_recall).
Inputs: tags, type, limit, query, +3 more.
nexus_memory_setB
Save or update a scoped persistent memory (Global, Project, Session, Task) with automatic secret redaction and conflict resolution.
Inputs: key (required), content (required), tags, type, +4 more.
nexus_session_handoffB
Package current task context into a compact handoff bundle with an 8-char handle (nx-xxxxxxxx) for cross-session and cross-model continuity (<800 tokens).
Inputs: title (required), summary (required), ttlHours, rawContext, +3 more.
nexus_session_resumeA
Resume and inject prior session context using an 8-char handoff handle (or auto-read from .nexus/session_handle.txt).
Inputs: handle, releaseAfterRead.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 9 tools
Most tools have a recognizable role (list vs get vs set vs consolidate vs bootstrap vs session handoff/resume), but nexus_memory_search is explicitly documented as an alias of nexus_memory_recall, creating a genuine duplicate-selection hazard. The recall/search/list trio also overlaps around keyword ranking, forcing an agent to reason about subtle differences rather than obvious ones.
Names follow a steady snake_case namespace_resource_action pattern (nexus_memory_list/get/set/recall/search/consolidate/bootstrap, nexus_session_handoff/resume). Minor deviation: the session tools read as noun-oriented (handoff, resume) rather than the verb-first style of the memory tools, but the shared prefixes keep things predictable.
Nine tools is a well-scoped size for a persistent-memory server covering storage, retrieval, ranking, consolidation, and session continuity. The only wasted slot is nexus_memory_search, which duplicates nexus_memory_recall instead of adding a distinct capability.
The lifecycle covers create/update (set), read (get, list, search/recall), and deduplicate (consolidate), plus strong session handoff/resume and bootstrap support. However, there is no delete/forget/expire operation, so an agent cannot remove stale or incorrect memories β a notable gap for a memory system.
Related MCP Connectors
Secure durable memory and bounded context for AI agents, with hosted OAuth and local Lite support.
Persistent memory, inline redaction, per-agent access, and code localization for AI agents.
Persistent memory for AI agents. Hosted cloud connector or local Windows install.
Universal memory for AI agents and tools. Save, organize and search context anywhere.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to maintain persistent, local memory with retrieval-augmented search, knowledge graphs, and context surfacing, without any cloud dependencies.MIT
- AlicenseAqualityCmaintenanceGives AI agents persistent, local-first memory using SQLite and on-device embeddings, enabling semantic search and recall across sessions with no cloud calls.89MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to store, search, update, and manage local long-term memories with namespaces, tags, expiration, and audit trails, without requiring cloud accounts, API keys, or network access.MIT
- FlicenseNot gradedqualityAmaintenanceEnables AI coding agents to read and write persistent memory directly during sessions, storing decisions, preferences, error patterns, research, and cross-project guidelines in local SQLite databases. Supports semantic search so relevant project and global context can be recalled by meaning, fully offline and without API keys.-