Sovereign Universal Memory MCP Server

User-sovereign, vendor-neutral memory layer for AI tools and agents.

README.md

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 confidence
memory.recallHybrid semantic + keyword search across all memory
memory.updateUpdate an existing memory (auto-bumps version)
memory.forgetSoft-delete memories with full audit trail
memory.contextAssemble relevant context for a task
memory.exportExport memories as JSON, JSONL, or Markdown

Try it

Store a memory that our project uses a microservices architecture on AWS EKS with Kong as the API gateway.
Recall any previous notes I made about the Kong Ingress Controller configuration.
Assemble the relevant context for fixing the current build error in my project.
Export all my stored memories to a Markdown file for backup.

Frequently Asked Questions

What are the key features of Sovereign Universal Memory?

Persistent, vendor-neutral memory layer for AI agents. Hybrid semantic and keyword search for memory retrieval. Local-first data storage ensuring user ownership and privacy. Automated context assembly for specific tasks. Support for exporting memories in JSON, JSONL, and Markdown formats.

What can I use Sovereign Universal Memory for?

Sharing project architecture details across different AI coding assistants like Claude and Cursor. Maintaining a persistent history of error-fix patterns to improve future debugging. Ensuring AI context remains private and local without relying on vendor cloud storage. Aggregating knowledge from multiple AI sessions into a single searchable database.

How do I install Sovereign Universal Memory?

Install Sovereign Universal Memory by running: npm install -g sovereign-universal-memory-mcp

What MCP clients work with Sovereign Universal Memory?

Sovereign Universal Memory works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Sovereign Universal Memory docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Open Conare