Skip to main content

The Universal Brain for AI Agents - Cross-platform memory sync for Cursor, Claude, Windsurf

Project description

๐Ÿง  Nucleus MCP

PyPI version License: MIT MCP Compatible Python 3.10+

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
Cross-platform โŒ โŒ โœ…
Local-first โš ๏ธ Some cloud โš ๏ธ Some cloud โœ… 100% local
MCP Native โŒ Custom protocol โš ๏ธ Limited โœ… Full MCP
Open Source โœ… MIT โŒ Closed โœ… MIT

OpenClaw is great for multi-agent teams on their platform. Nucleus connects ALL your platforms with one brain.

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

โœจ Contributors

A huge thank you to the pioneers helping build the universal brain:

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/

๐Ÿ“œ 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-1.0.2.tar.gz (18.1 kB 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.2-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nucleus_mcp-1.0.2.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for nucleus_mcp-1.0.2.tar.gz
Algorithm Hash digest
SHA256 a14875a13676461dae2d476211172289815a2be8480c8815f9b3a9f13542a61b
MD5 52102c69542471ca9b2765cc8b73a07b
BLAKE2b-256 78845207d9d4fe1c92d0537c041036f5c27410cd46026b421d886785c89ac4bb

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for nucleus_mcp-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e5357d260d7ba8cd3fbdf9ee6766b8891c48798ba61ef3d134983bc25a9979c8
MD5 99240dbef0266af8333ac4480c356ef7
BLAKE2b-256 52e943ff3fa89fa42d9cd9b160bdc69c8dc754afe90b4d94a5dec78a5daed6ad

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