Skip to main content

🧠 Nucleus Sovereign OS

PyPI version Website Watch Launch Trailer License: MIT

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.

  1. Check config: Open ~/Library/Application Support/Claude/claude_desktop_config.json
  2. Verify path: Ensure NUCLEAR_BRAIN_PATH points to your active project (e.g., /Users/me/my-project/.brain)
  3. Restart: You MUST restart Claude Desktop after any config change.

✨ Core Features (Included)

  • Persistent Memorybrain_write_engram / brain_query_engrams (Vector-lite).
  • Audit Ledger — Immutable SHA-256 logs of every action (brain_audit_log).
  • Recursive Mountingbrain_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:

  1. Install Core (PyPI).
  2. DM u/NucleusOS on Reddit for an invite code.

Unlockable Features:

  • Task Enginebrain_add_task, brain_claim_task.
  • Swarm Orchestrationbrain_orchestrate_swarm.
  • Session Persistencebrain_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! ⭐

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_nucleus-0.6.1.tar.gz (67.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_nucleus-0.6.1-py3-none-any.whl (297.1 kB view details)

Uploaded Python 3

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

Hashes for mcp_server_nucleus-0.6.1.tar.gz
Algorithm Hash digest
SHA256 1dc4a5af603b45bb4d623d5d4ff00ea481a72df1f0168edc1f37f459667aac4f
MD5 4bd2df3e6143cdbce136bdb2615b61e3
BLAKE2b-256 82fa94a3d4eada493b844330bde4bebb246e5fac2ca591b9a9686f028af38da9

See more details on using hashes here.

File details

Details for the file mcp_server_nucleus-0.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_nucleus-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 43876325065cb4ae2655986ec3da3a241b7478b59c79047f82d987d90e0ac00f
MD5 32c35adaad531e8acd2db2e6a67db28e
BLAKE2b-256 6fd737636494dfb432fe59a79584568ba3475642dead6cda8220b49f8f4b82d8

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.6.1 This release

2 files

0.6.0

1 file

0.4.0

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.6

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page