The Agent Control Plane - Default-Deny Security for MCP Servers
Project description
🧠 Nucleus Sovereign OS
The Operating System for AI Agents — Persistent Operational Memory, Swarm Orchestration, and Local-First Sovereignty.
Nucleus is the Recursive Aggregator that gives your AI agents a persistent brain (.brain/) and a file system. It turns stateless chatbots into stateful Sovereign Agents.
Context vs. Control
Claude's CLAUDE.md provides static context. Nucleus provides active control.
| Feature | CLAUDE.md / .cursorrules | Nucleus (Agent Control Plane) |
|---|---|---|
| State | Static (read-only text) | Dynamic (Stateful DB, Event Ledger) |
| Memory | Session-bound (forgotten on close) | Persistent (Project-bound, recallable) |
| Security | None (Prompt injection risk) | Enforced (Auth boundary, Default Deny) |
| Tools | Suggestions only | Orchestrated Execution (DAGs) |
| Audit | None | Full Decision Trail (Who/Why/When) |
✨ Governance Features (The Moat)
- Default Deny Security — All mounted servers start with NO network/filesystem access.
- Explicit Consent — You approve every command. No silent execution.
- Isolation Boundaries — Tools cannot see each other or the full chat history.
- Auth Firewall — Tokens are stored in Nucleus (Host), never passed to agents.
- Event Ledger — Immutable audit trail of every agent decision (
DecisionMade). - Decision Provenance — v0.6.0 DSoR: Full audit trail with context hashing.
- IPC Security — Per-request auth tokens prevent socket impersonation (CVE-2026-001).
- 135 Native Tools — For orchestration, swarms, memory, and DSoR inspection.
🚀 Quick Start (2 Minutes)
1. Install
pip install mcp-server-nucleus
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", "mcp_server_nucleus"],
"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", "mcp_server_nucleus"],
"env": {
"NUCLEAR_BRAIN_PATH": "/path/to/your/.brain"
}
}
}
}
Configuration (Cursor)
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"nucleus": {
"command": "python3",
"args": ["-m", "mcp_server_nucleus"],
"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.
- Check config: Open
~/Library/Application Support/Claude/claude_desktop_config.json - Verify path: Ensure
NUCLEAR_BRAIN_PATHpoints to your active project (e.g.,/Users/me/my-project/.brain) - Restart: You MUST restart Claude Desktop after any config change.
✨ Core Features (Included)
- Persistent Memory —
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.
🔐 Sovereign Edition (Closed Beta)
The "Dark Wheel" is reserved for active builders.
Early Access Program The Sovereign Edition (Task Engine, Swarm, Federation) is currently invite-only to ensure stability. To join the cohort:
- Install Core (PyPI).
- DM u/NucleusOS on Reddit for an invite code.
Unlockable Features:
- Task Engine —
brain_add_task,brain_claim_task. - Swarm Orchestration —
brain_orchestrate_swarm. - Session Persistence —
brain_save_session. - Federation — Peer-to-Peer Agent Mesh.
🚀 Quick Start (Core)
1. Install
pip install mcp-server-nucleus
2. Initialize
nucleus-init
3. Use the Memory
Restart Claude and try:
"Write an engram: 'The project goal is World Domination'. Then audit the ledger."
🛠 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 |
🔒 Sovereign (Beta Key Required)
| Feature | Capabilities |
|---|---|
| Task Engine | Priority queues, dependency DAGs, agent assignment |
| Swarm | Multi-agent recursive orchestration |
| Federation | Cross-machine agent communication |
| Deep Monitoring | Real-time dashboards and metrics |
�️ Community & Feedback
We represent the Sovereign Web. We build in the open, but we protect the signal.
- 🐛 Found a bug? Open an Issue on GitHub.
- 💡 Have an idea? Discuss it on GitHub Discussions.
- 🗝️ Want to join the Inner Circle? Check the Early Access Program above.
�📜 License
MIT © Nucleus Team
Built for the AI-native developer. Star us on GitHub if Nucleus saves you from context amnesia! ⭐
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 mcp_server_nucleus-0.6.1.tar.gz.
File metadata
- Download URL: mcp_server_nucleus-0.6.1.tar.gz
- Upload date:
- Size: 67.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1dc4a5af603b45bb4d623d5d4ff00ea481a72df1f0168edc1f37f459667aac4f
|
|
| MD5 |
4bd2df3e6143cdbce136bdb2615b61e3
|
|
| BLAKE2b-256 |
82fa94a3d4eada493b844330bde4bebb246e5fac2ca591b9a9686f028af38da9
|
File details
Details for the file mcp_server_nucleus-0.6.1-py3-none-any.whl.
File metadata
- Download URL: mcp_server_nucleus-0.6.1-py3-none-any.whl
- Upload date:
- Size: 297.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43876325065cb4ae2655986ec3da3a241b7478b59c79047f82d987d90e0ac00f
|
|
| MD5 |
32c35adaad531e8acd2db2e6a67db28e
|
|
| BLAKE2b-256 |
6fd737636494dfb432fe59a79584568ba3475642dead6cda8220b49f8f4b82d8
|