Sovereign Universal Memory MCP
User-sovereign, vendor-neutral memory layer for AI tools and agents.
Sovereign Universal Memory MCP is an MCP (Model Context Protocol) server that gives any AI client — Claude, Cursor, custom agents — access to a persistent, cross-tool memory system that you fully own and control.
Why This Exists
AI memory is fragmented and vendor-locked. Every AI tool maintains its own siloed memory. You cannot carry context across tools, export your accumulated knowledge, or control what each tool can access. Sovereign Universal Memory MCP solves this by providing a single memory layer that:
- You own — data lives on your machine, not a vendor's cloud
- Works everywhere — any MCP-compatible client connects instantly
- Runs locally — zero external API dependencies by default
- Stays private — encryption at rest, scoped access, full audit trail
- Exports freely — JSON, JSONL, Markdown — no lock-in
Quick Start
Option 1: npm (recommended)
# Install globally
npm install -g sovereign-universal-memory-mcp
# Run setup (configures hooks for Claude Code, Cursor, etc.)
sovereign-universal-memory-setup
# Verify the server starts
sovereign-universal-memory-mcp
Option 2: From Source
# Clone and install
git clone https://github.com/nnaveenraju/sovereign-universal-memory-mcp.git
cd sovereign-universal-memory-mcp
npm install
# Build and run
npm run build
node dist/index.js
Option 3: Docker
# Production
docker compose -f docker/docker-compose.yml up
# Development (hot-reload)
docker compose -f docker/docker-compose.yml --profile dev up
Connect to Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"universal-memory": {
"command": "node",
"args": ["/path/to/sovereign-universal-memory-mcp/dist/index.js"]
}
}
}
MCP Tools
| Tool | Description |
|---|---|
memory.store |
Store a new memory with category, tags, and confidence |
memory.recall |
Hybrid semantic + keyword search across all memory |
memory.update |
Update an existing memory (auto-bumps version) |
memory.forget |
Soft-delete memories with full audit trail |
memory.context |
Assemble relevant context for a task (the killer feature) |
memory.export |
Export memories as JSON, JSONL, or Markdown |
Example: A Day with Universal Memory
This walkthrough follows a real scenario — a morning session in Claude Code, an afternoon in Cursor, and a quick Gemini CLI check the next day. Memories build naturally, carry full provenance, link to each other, and flow seamlessly across tools.
Morning — Claude Code session, setting up the backend
You: "Remember that this project uses a microservices architecture on AWS EKS,
the API gateway is Kong, and the primary database is Aurora PostgreSQL 15"
The hook captures this as an explicit store with high confidence:
→ memory.store({
content: "Project uses a microservices architecture on AWS EKS. API gateway is Kong. Primary database is Aurora PostgreSQL 15.",
category: "domain",
tags: ["architecture", "aws", "eks", "kong", "aurora-postgresql"],
confidence: 0.9,
source: { tool: "claude-code", context: "UserPrompt:explicit" }
})
What actually gets stored — the full entry:
{
"id": "019577a2-8c3f-7d01-b542-3e8f1a9d0c47",
"version": 1,
"category": "domain",
"tags": ["architecture", "aws", "eks", "kong", "aurora-postgresql"],
"content": "Project uses a microservices architecture on AWS EKS. API gateway is Kong. Primary database is Aurora PostgreSQL 15.",
"source": {
"tool": "claude-code",
"context": "UserPrompt:explicit",
"conversationId": "session_20260319_091542"
},
"confidence": 0.9,
"createdAt": "2026-03-19T09:15:42Z",
"updatedAt": "2026-03-19T09:15:42Z",
"accessedAt": "2026-03-19T09:15:42Z",
"createdBy": "claude-code",
"scopes": ["*:read", "domain:write"],
"pin": false,
"decayRate": 0.05,
"accessCount": 0,
"isDeleted": false
}
Later in the same session, you hit a build error and Claude fixes it. The PostToolUse hook auto-captures the error→fix pattern:
→ memory.store({
content: "Error: Kong Ingress Controller v3.1 requires annotation 'konghq.com/strip-path' instead of deprecated 'strip.path'. Fix: update all Ingress manifests to use new annotation format.",
category: "process",
tags: ["error-fix", "kong", "kubernetes", "ingress", "auto-captured"],
confidence: 0.8,
source: { tool: "claude-code", context: "PostToolUse:fix-detection" }
})
The system detects this relates to the earlier archi
Tools 6
memory.storeStore a new memory with category, tags, and confidencememory.recallHybrid semantic + keyword search across all memorymemory.updateUpdate an existing memory (auto-bumps version)memory.forgetSoft-delete memories with full audit trailmemory.contextAssemble relevant context for a taskmemory.exportExport memories as JSON, JSONL, or Markdown