Nucleus MCP

Local-first, cross-platform memory sync for AI coding tools (Cursor, Claude, Windsurf) with persistent engrams and hypervisor security.

🧠 Nucleus — Sovereign Agent OS

āš ļø official repository → nucleus-mcp

PyPI version License: MIT MCP Compatible Tests

The sovereign, local-first Agent Operating System — persistent memory, governance, compliance, and audit trails for any AI agent.

🌐 Website • šŸ¦ Live KYC Demo • šŸ›  170+ Tool Catalog • šŸ’¬ Discord

[!CAUTION] After the OpenClaw security crisis (1.5M API keys leaked, sleeper agents in skills), agent security is no longer optional. Nucleus is built security-first: hypervisor controls, resource locking, compliance governance, and full audit trails — all 100% local.


šŸŽÆ The Problem

AI agents are powerful, but ungoverned:

  • No memory — every session starts from zero
  • No audit trail — no one knows why the agent did what it did
  • No compliance — regulators can't approve what they can't trace
  • No sovereignty — your data flows through someone else's cloud

For regulated industries (BFSI, healthcare, legal), this is a dealbreaker.


✨ The Solution: Sovereign Agent OS

Nucleus gives every AI agent a persistent brain with built-in governance:

ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
│  🧠 Nucleus — Sovereign Agent OS                │
│                                                 │
│  ā”Œā”€ Memory ──┐  ā”Œā”€ Governance ┐  ā”Œā”€ DSoR ────┐ │
│  │ Engrams   │  │ HITL        │  │ Decision  │ │
│  │ Sessions  │  │ Kill Switch │  │ Trail     │ │
│  │ Context   │  │ Compliance  │  │ Audit     │ │
│  ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜  ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜  ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜ │
│                                                 │
│  100% Local  •  Zero Cloud  •  Full Audit Trail │
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜

šŸš€ Quick Start (2 Minutes)

Install

pip install nucleus-mcp
nucleus-init

Try It

# See your sovereignty posture
nucleus sovereign

# Run a KYC compliance demo (15-minute BFSI demo)
nucleus kyc demo

# Apply EU DORA compliance
nucleus comply --jurisdiction eu-dora

# Generate audit-ready report
nucleus audit-report --format html -o report.html

# Browse decision trails
nucleus trace list

Configure (Claude Desktop / Cursor / Windsurf)

Add to your MCP config:

{
  "mcpServers": {
    "nucleus": {
      "command": "python3",
      "args": ["-m", "nucleus_mcp"],
      "env": {
        "NUCLEAR_BRAIN_PATH": "/path/to/your/.brain"
      }
    }
  }
}

šŸ›ļø Why Nucleus for Regulated Industries

Jurisdiction-Aware Compliance

One command to configure for any regulatory framework:

nucleus comply --jurisdiction eu-dora       # EU DORA (7yr retention, kill switch)
nucleus comply --jurisdiction sg-mas-trm    # Singapore MAS TRM (5yr, strictest HITL)
nucleus comply --jurisdiction us-soc2       # US SOC2 (1yr retention)
nucleus comply --report                     # Check compliance status
JurisdictionRegionRetentionHITL OpsKill Switch
eu-doraEU7 years5 typesāœ… Required
sg-mas-trmSingapore5 years5 typesāœ… Required
us-soc2US/Global1 year3 types⚪ Optional
global-defaultGlobal90 days2 types⚪ Optional

KYC Compliance Demo

Built-in demo workflow showing how Nucleus governs a KYC document review:

nucleus kyc review APP-001  # Low risk → āœ… APPROVE
nucleus kyc review APP-002  # Medium risk → āš ļø ESCALATE (PEP match)
nucleus kyc review APP-003  # High risk → āŒ REJECT (sanctions)
nucleus kyc demo            # Run all 3 in sequence

Each review generates:

  • 5 automated checks (sanctions, PEP, document validity, risk factors, source of funds)
  • Full decision trail stored as DSoR (Decision System of Record) trace
  • HITL approval request for risky applications
  • Sovereignty guarantee: all processing is local

Audit Reports

Generate audit-ready reports for regulators:

nucleus audit-report                              # Terminal text
nucleus audit-report --format json                # JSON for APIs
nucleus audit-report --format html -o report.html # HTML for compliance officers

Sovereignty Status

See your full sovereignty posture:

nucleus sovereign

Shows: sovereignty score (0-100), memory health, governance posture, DSoR integrity, data residency guarantee.


šŸ›  Full Feature Set

Core — Persistent Agent Memory

FeatureCommandDescription
Engramsnucleus_engramsPersistent knowledge that survives sessions
Sessionsnucleus_sessionsSave and resume work context
Morning Briefnucleus morning-briefDaily compounding intelligence brief
End of Daynucleus end-of-dayCapture learnings as engrams

Governance — Agent Controls

FeatureCommandDescription
Compliancenucleus complyJurisdiction-aware configuration
Audit Reportsnucleus audit-reportAudit-ready compliance reports
KYC Demonucleus kycPre-built compliance demo workflow
DSoR Tracesnucleus traceBrowse decision trails
Sovereigntynucleus sovereignFull sovereignty posture report
HITLBuilt-inHuman-in-the-loop approval gates
Kill SwitchBuilt-inEmergency halt for agent operations
Hypervisornucleus_governanceFile locking, security, mode control

Orchestration — Multi-Agent Coordination

FeatureCommandDescription
Tasksnucleus_tasksTrack work across agents
Syncnucleus_syncMulti-agent brain synchronization
Slotsnucleus_slotsAgent orchestration with sprint mode
Federationnucleus_federationMulti-brain coordination

⚔ Comparison

OpenClawClaude CodeNucleus
SecurityāŒ Key leaks, sleeper agentsāš ļø Cloud-managedāœ… Hypervisor + audit trail
ComplianceāŒ NoneāŒ Noneāœ… DORA, MAS TRM, SOC2
Audit TrailāŒāš ļø Basic logsāœ… Full DSoR + HTML reports
HITLāŒāš ļø Limitedāœ… Jurisdiction-configurable
Cross-PlatformāŒāŒāœ… Any MCP client
Local-Firstāš ļø Some cloudāš ļø Some cloudāœ… 100% local
Open Sourceāœ… MITāŒ Closedāœ… MIT

🐳 Deployment

Docker (per jurisdiction)

# EU DORA deployment
docker compose -f deploy/docker-compose.eu-dora.yml up -d

# Or use the one-command deployment script
./deploy/deploy.sh eu-dora

Local

pip install nucleus-mcp
nucleus init
nucleus comply --jurisdiction eu-dora
nucleus sovereign  # Verify

šŸ“¦ v1.3.0 — What's New

  • Compliance Configuration — 4 regulatory jurisdictions with governance policies
  • Audit Reports — Text, JSON, and HTML output for compliance officers
  • KYC Demo Workflow — 3 demo applications with 5 automated checks
  • Sovereignty Status — Posture report with A/B/C/D grading
  • DSoR Trace Viewer — Browse and inspect decision trails
  • Deployment Kit — Dockerfile, docker-compose per jurisdiction, deploy script
  • 54 new tests — All passing

See CHANGELOG.md for full details.


šŸ¤ Community & Contributing

šŸ“œ License

MIT Ā© 2026 Nucleus Team | [email protected]


Built for the AI-native enterprise. Star us if Nucleus gives your agents a brain — and a conscience. ⭐

Related Servers