The Sovereign Agent Control Plane with Governance & Engrams
Project description
๐ง Nucleus MCP
[!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)
- Go to Settings โ Apps โ Advanced โ Developer Mode.
- Run the Nucleus SSE Bridge:
python scripts/sse_bridge.py. - Add
http://localhost:8000/sseas 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!
- ๐ Found a bug? Open an Issue
- ๐ก Feature idea? Start a Discussion
- ๐ง Want to contribute? See CONTRIBUTING.md
โจ 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-startchannel 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b6283870a9fde4a3dea43eb3e473d16af3696e45a30bfc704210219e46fe8cd
|
|
| MD5 |
7cb157269e2c7fd28b39d2b1e6562656
|
|
| BLAKE2b-256 |
8aad5ba187272f88861d3172febdbf3fb7a5f07309846a80972da35c01e0f895
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
571efb1fb3ef3f1e477f545cc16b1a52428a76d2deb4a0fa571d3c3bb1f5fe29
|
|
| MD5 |
521095dba88171ab5127143ce8925ea8
|
|
| BLAKE2b-256 |
50683ed02911cd0b5353e939459f04bbe9cc64f5765eb11d67aa3bc654796754
|