Skip to main content

The Sovereign Agent Control Plane with Governance & Engrams

Project description

๐Ÿง  Nucleus-MCP

โš ๏ธ Official Repository โ†’ nucleus-mcp

PyPI version License: MIT MCP Compatible

The Sovereign Agent Control Plane โ€” One brain that syncs Cursor, Claude Desktop, Windsurf, and any MCP-compatible tool.

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


๐Ÿ“ฆ Installation

The clean, open source version of Nucleus is now available at:

โ†’ github.com/eidetic-works/nucleus-mcp

pip install nucleus-mcp
nucleus-init

This repository (mcp-server-nucleus) is the internal development monorepo. For production use, please use the official open source package above.


๐ŸŽฏ The Problem

You use multiple AI tools daily:

  • Cursor for coding
  • Claude Desktop for thinking
  • Windsurf for exploration
  • ChatGPT for quick answers

But they don't share memory.

Every time you switch tools, you lose context. You re-explain decisions. You repeat yourself.


โœจ The Solution

Nucleus syncs them with one brain.

Tell Claude about a decision โ†’ Cursor knows it
Make a plan in Windsurf โ†’ Claude remembers it
One brain. All your tools.

๐Ÿš€ What Makes Nucleus Different

Feature Other Solutions Nucleus
Cross-Platform Sync Single platform only โœ… Syncs ALL your AI tools
Sovereignty Cloud-dependent โœ… 100% local, your data stays on your machine
Protocol Proprietary โœ… MCP standard (Anthropic-backed)
Security Often misconfigured โœ… Secure by default, audit logs included
Lock-in Platform-specific โœ… MIT license, open standard

๐Ÿ›  140+ MCP Tools Included

  • Engrams โ€” Persistent knowledge that survives sessions
  • Tasks โ€” Track work across agents
  • Sessions โ€” Save and resume context
  • Sync โ€” Multi-agent brain synchronization
  • Hypervisor โ€” File locking, security, audit trails
  • Orchestration โ€” Coordinate multiple agents

โšก Comparison: Nucleus vs Alternatives

OpenClaw Claude Code Nucleus
Security โŒ Sleeper agents, key leaks โš ๏ธ Cloud-managed โœ… Hypervisor + audit trail
What it syncs OpenClaw โ†’ OpenClaw Claude โ†’ Claude Everything โ†” Everything
Cross-platform โŒ โŒ โœ…
Local-first โš ๏ธ Some cloud โš ๏ธ Some cloud โœ… 100% local
MCP Native โŒ Custom protocol โš ๏ธ Limited โœ… Full MCP
Open Source โœ… MIT โŒ Closed โœ… MIT

OpenClaw trades security for capability. Nucleus gives you both. Nucleus connects ALL your platforms with one brain.

๐Ÿš€ Quick Start (2 Minutes)

1. Install

pip install nucleus-mcp

2. Initialize (Smart Config)

The nucleus-init command automatically detects your system and configures Claude Desktop for you.

# Create your .brain/ and auto-configure Claude Desktop
nucleus-init

3. Ask Claude

Restart Claude Desktop and try:

"Use the cold_start prompt from nucleus to see our current sprint focus."

v0.2.2+: Smart Init automatically detects Claude Desktop and adds the config for you!

Configuration (Claude Desktop)

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

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

Restart Claude Desktop and try: "What's my current sprint focus?"

Configuration (Windsurf)

Add to ~/.codeium/windsurf/mcp_config.json:

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

Configuration (Cursor)

Add to ~/.cursor/mcp.json:

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

โ“ Troubleshooting

"Show me all tasks" returns nothing? Check your config pointer! You might be pointing to an old or temp brain.

  1. Check config: Open ~/Library/Application Support/Claude/claude_desktop_config.json
  2. Verify path: Ensure NUCLEAR_BRAIN_PATH points to your active project (e.g., /Users/me/my-project/.brain)
  3. Restart: You MUST restart Claude Desktop after any config change.

โœจ Core Features (Included)

  • Persistent Engrams โ€” brain_write_engram / brain_query_engrams (Vector-lite).
  • Audit Ledger โ€” Immutable SHA-256 logs of every action (brain_audit_log).
  • Recursive Mounting โ€” brain_mount_server (Basic).
  • Local Sovereignty โ€” Zero cloud. All data in ~/.nucleus/brain.

๐Ÿ”„ Multi-Agent Sync (New in v0.7.0)

The killer feature: Multiple agents, one brain.

# Agent A (Claude Desktop) makes a decision
brain_sync_now()  # Syncs to shared .brain/

# Agent B (Cursor) automatically sees it
brain_sync_status()  # Shows last sync, active agents

Features:

  • Intent-Aware Locking โ€” Files locked with WHO/WHEN/WHY metadata
  • Conflict Detection โ€” Last-write-wins with manual resolution option
  • Auto-Sync โ€” Optional file watcher for real-time sync
  • Audit Trail โ€” Every sync logged to events.jsonl

๐Ÿ›  Tool Categories

๐Ÿง  Core (Public)

Tool Description
brain_write_engram Store persistent knowledge
brain_query_engrams Retrieve knowledge
brain_audit_log Verify ledger integrity
brain_mount_server Mount sub-MCP servers

๐Ÿ”„ Sync Tools

Tool Description
brain_sync_now Manually trigger brain sync
brain_sync_status Check sync state and conflicts
brain_sync_auto Enable/disable auto-sync
brain_identify_agent Register agent identity

๐Ÿ”’ Enterprise Features

Feature Capabilities
Audit Logs Full decision trail with context hashing
RBAC Role-based access control (coming soon)
SSO Enterprise SSO integration (coming soon)
Compliance SOC2/HIPAA export reports (coming soon)

โ“ How is Nucleus Different?

See the full comparison: Nucleus vs ContextStream vs mem0 vs OpenClaw โ†’

Nucleus ContextStream mem0
Architecture 100% Local (Git-native) Cloud SaaS Cloud API
Audit Trail โœ… Full โŒ โŒ
Governance โœ… Policy engine โŒ โŒ
Pricing Free (MIT) Freemium โ†’ Paid Freemium โ†’ Paid

๐Ÿค Community & Contributing

We're building the universal brain for AI agents. Join us!

๏ฟฝ๐Ÿ“œ License

MIT ยฉ Nucleus Team


Built for the AI-native developer. Star us on GitHub if Nucleus saves you from context amnesia! โญ

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nucleus_mcp-1.0.4.tar.gz (7.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nucleus_mcp-1.0.4-py3-none-any.whl (325.4 kB view details)

Uploaded Python 3

File details

Details for the file nucleus_mcp-1.0.4.tar.gz.

File metadata

  • Download URL: nucleus_mcp-1.0.4.tar.gz
  • Upload date:
  • Size: 7.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for nucleus_mcp-1.0.4.tar.gz
Algorithm Hash digest
SHA256 5a9b5113c97708eaadf0df9df4729f5bce56d80f906e09647ca49acc4815bf98
MD5 4b215fbb1ca94ceaf1b2a962e662fefe
BLAKE2b-256 d029c0b12712a38b6016772c180fa938d2cbdfd5cc9bb583ecbb94e302f0df4d

See more details on using hashes here.

File details

Details for the file nucleus_mcp-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: nucleus_mcp-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 325.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for nucleus_mcp-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5fbcc8efdd0f430cdd5b50f8b5c62abb49c56624d823d9cde02e045c2b123711
MD5 cd5b276ed51ecd73d1dffd88704894ae
BLAKE2b-256 7d1291db32c9da9ed1ac4aea225c9a549f4753c4aaff8540bf09e0ce4285262c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page