Skip to main content

The Sovereign Agent Control Plane with Governance & Engrams

Project description

๐Ÿง  Nucleus MCP

PyPI version License: MIT MCP Compatible Python 3.10+

[!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.

The Universal Brain for AI Agents โ€” One brain that syncs Cursor, Claude Desktop, Windsurf, and any MCP-compatible tool.


๐ŸŽฏ The Problem

You use multiple AI tools daily:

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

But they don't share memory. (Until now).

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


โœจ 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

โšก Quick Start (2 Minutes)

1. Install

pip install nucleus-mcp

2. Initialize

nucleus-init --scan

This creates your .brain/ folder, auto-configures Claude Desktop, and automatically ingests your README.md to seed the brain with initial context.

3. Restart Claude Desktop

Then try:

"What decisions have we made about the architecture?"

Claude will now remember across sessions!


๐Ÿ”ง Manual Configuration

Claude Desktop

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

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

Cursor

Add to ~/.cursor/mcp.json:

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

Windsurf

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

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

ChatGPT (Web)

  1. Go to Settings โ†’ Apps โ†’ Advanced โ†’ Developer Mode.
  2. Run the Nucleus SSE Bridge: python scripts/sse_bridge.py.
  3. Add http://localhost:8000/sse as your MCP endpoint.

See the Community FAQ for more details.


๐Ÿ›  Core Tools

Memory

Tool Description
brain_write_engram Store persistent knowledge
brain_query_engrams Retrieve knowledge
brain_audit_log View decision history

Sync (Multi-Agent)

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

State Management

Tool Description
brain_get_state Get current project state
brain_set_state Update project state
brain_list_artifacts List all artifacts

Hypervisor (Security)

Tool Description
lock_resource Lock file/folder (immutable)
unlock_resource Unlock resource
watch_resource Monitor file changes
hypervisor_status View security state

๐Ÿ”„ Multi-Agent Sync (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

โš”๏ธ Comparison: Nucleus vs Alternatives

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

OpenClaw is great for multi-agent teams on their platform. OpenClaw trades security for capability. Nucleus gives you both.

[!TIP] Check out the Detailed Comparison to see how Nucleus stacks up against ContextStream and Autonomy AI.


๐Ÿ“ The .brain/ Folder

Nucleus stores everything in a .brain/ folder in your project:

.brain/
โ”œโ”€โ”€ config/
โ”‚   โ””โ”€โ”€ nucleus.yaml      # Configuration
โ”œโ”€โ”€ ledger/
โ”‚   โ”œโ”€โ”€ state.json        # Current state
โ”‚   โ”œโ”€โ”€ events.jsonl      # Audit log
โ”‚   โ””โ”€โ”€ decisions.md      # Decision history
โ”œโ”€โ”€ artifacts/
โ”‚   โ””โ”€โ”€ ...               # Your stored knowledge
โ””โ”€โ”€ sessions/
    โ””โ”€โ”€ ...               # Saved sessions

Your data. Your machine. Your control.


๐Ÿค Contributing

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

โœจ Pioneers & Contributors

Nucleus is a community-first project. A special thank you to our first contributor for setting the standard:

  • @aryasadawrate19 โ€” Added Linux XDG support for nucleus-init, bringing Nucleus to the Linux ecosystem.

Want to be here? See CONTRIBUTING.md and claim a "Good First Issue".

Development Setup

git clone https://github.com/eidetic-works/nucleus-mcp.git
cd nucleus-mcp
python3 -m venv venv
source venv/bin/activate
pip install -e ".[dev]"
pytest tests/

๐Ÿ›ก๏ธ Join the Nucleus Vanguard (Private Beta)

We're building the first secure sync layer for agents. Join our Vanguard Pioneers to help shape the roadmap and get early access to features before they go public.

Join the Nucleus Vanguard (Discord) | Visit Website

[!TIP] The Vanguard is currently open for early adopters. Introduce yourself in the #welcome-start channel to claim your Vanguard Pioneer role and join the inner circle.


๐Ÿ“œ License

MIT ยฉ Nucleus Team


โญ Support

Star us on GitHub if Nucleus saves you from context amnesia!

One brain. All your AI tools. No more repeating yourself.


Built for the AI-native developer.

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-0.5.0.tar.gz (7.0 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-0.5.0-py3-none-any.whl (331.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nucleus_mcp-0.5.0.tar.gz
Algorithm Hash digest
SHA256 9b6283870a9fde4a3dea43eb3e473d16af3696e45a30bfc704210219e46fe8cd
MD5 7cb157269e2c7fd28b39d2b1e6562656
BLAKE2b-256 8aad5ba187272f88861d3172febdbf3fb7a5f07309846a80972da35c01e0f895

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nucleus_mcp-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 331.0 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-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 571efb1fb3ef3f1e477f545cc16b1a52428a76d2deb4a0fa571d3c3bb1f5fe29
MD5 521095dba88171ab5127143ce8925ea8
BLAKE2b-256 50683ed02911cd0b5353e939459f04bbe9cc64f5765eb11d67aa3bc654796754

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