Nucleus MCP
Local-first, cross-platform memory sync for AI coding tools (Cursor, Claude, Windsurf) with persistent engrams and hypervisor security.
๐ง 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.
Related Servers
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
OpenAPI MCP Server
Explore and analyze OpenAPI specifications from local files or remote URLs.
Remote MCP Server (Authless)
A template for deploying a remote, auth-less MCP server on Cloudflare Workers.
Supervisord MCP
A tool for managing Supervisord processes, integrated with AI agents via the Model Context Protocol (MCP). It offers standardized process control, real-time monitoring, and robust operations.
Markdown2PDF
Convert Markdown documents to PDF files with syntax highlighting, custom styling, and optional watermarking.
Remote MCP Server (Authless)
An authentication-free, remote MCP server deployable on Cloudflare Workers or locally via npm.
MCP Montano Server
A general-purpose server project built with TypeScript.
MCP่ฟญไปฃ็ฎก็ๅทฅๅ ท
An iteration management tool to automate the collection and submission of iteration information to a CodeReview system.
Remote MCP Server (Authless)
An example of a remote MCP server without authentication, deployable on Cloudflare Workers.
mcp-of-mcps
MCP of MCPs is a meta-server that merges all your MCP servers into a single smart endpoint.โจIt gives AI agents instant tool discovery, selective schema loading, and massively cheaper execution, so you stop wasting tokens and time. With persistent tool metadata, semantic search, and direct code execution between tools, it turns chaotic multi-server setups into a fast, efficient, hallucination-free workflow.โจIt also automatically analyzes the tools output schemas if not exist and preserves them across sessions for consistent behavior.
Google MCP Servers
Collection of Google's official MCP servers