Nucleus MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
pip install nucleus-mcp
nucleus self-setup
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add nucleus-mcp -- node "<FULL_PATH_TO_NUCLEUS_MCP>/dist/index.js"

Replace <FULL_PATH_TO_NUCLEUS_MCP>/dist/index.js with the actual folder you prepared in step 1.

README.md

The sovereign, local-first Agent Operating System

🧠 Nucleus — Sovereign Agent OS

āš ļø official repository → nucleus-mcp

The sovereign, local-first Agent Operating System — persistent memory, governance, compliance, and audit trails for any AI agent.

🌐 **Website** • šŸ¦ **Live KYC Demo** • šŸ›  **170+ Tool Catalog** • šŸ’¬ **Discord**

[!CAUTION] Agent security is no longer optional. Recent incidents across the ecosystem — leaked API keys, supply-chain attacks, unaudited tool execution — prove that ungoverned agents are a liability. Nucleus is built security-first: hypervisor controls, resource locking, compliance governance, and full audit trails — all 100% local.


šŸŽÆ The Problem

AI agents are powerful, but ungoverned:

  • No memory — every session starts from zero
  • No audit trail — no one knows why the agent did what it did
  • No compliance — regulators can't approve what they can't trace
  • No sovereignty — your data flows through someone else's cloud

For regulated industries (banking, healthcare, legal), this is a dealbreaker.


✨ The Solution: Sovereign Agent OS

Nucleus gives every AI agent a persistent brain with built-in governance:

ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
│  🧠 Nucleus — Sovereign Agent OS                │
│                                                 │
│  ā”Œā”€ Memory ──┐  ā”Œā”€ Governance ┐  ā”Œā”€ DSoR ────┐ │
│  │ Engrams   │  │ HITL        │  │ Decision  │ │
│  │ Sessions  │  │ Kill Switch │  │ Trail     │ │
│  │ Context   │  │ Compliance  │  │ Audit     │ │
│  ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜  ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜  ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜ │
│                                                 │
│  100% Local  •  Zero Cloud  •  Full Audit Trail │
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜

šŸš€ Quick Start (2 Minutes)

Install

pip install nucleus-mcp
nucleus self-setup

Adaptive Path Discovery

Nucleus automatically locates your .brain by following this hierarchy:

  1. NUCLEUS_BRAIN_PATH environment variable.
  2. Climbing parent directories from CWD to find an existing .brain.
  3. Defaulting to $HOME/.nucleus/brain.

Try It

# One-command security hardening + posture report
nucleus secure

# Interactive AI chat (Gemini, Anthropic, Groq — hot-switchable)
nucleus chat

# See your sovereignty posture
nucleus sovereign

# Run a KYC compliance demo
nucleus kyc demo

# Apply EU DORA compliance
nucleus comply --jurisdiction eu-dora

# Generate audit-ready report
nucleus audit-report --format html -o report.html

# Browse decision trails
nucleus trace list

# System Health & Lock Recovery
nucleus status --health
nucleus status --cleanup-lock

šŸ†˜ Session Recovery (Universal)

If your IDE session freezes due to bloated conversation files:

# One-shot automatic recovery
nucleus recover auto <conversation-id>

# Or step-by-step:
nucleus recover detect                      # Find bloated conversations
nucleus recover extract <conversation-id>   # Extract context
nucleus recover bootstrap <conversation-id> # Create fresh session
nucleus recover rewrite <old-id> <new-id>   # Update test paths

Works across any IDE (Windsurf, Cursor, Antigravity) and CLI. Zero configuration required.

Configure (Claude Desktop / Cursor / Windsurf)

Add to your MCP config:

{
  "mcpServers": {
    "nucleus": {
      "command": "python3",
      "args": ["-m", "nucleus_mcp"],
      "env": {
        "NUCLEAR_BRAIN_PATH": "/path/to/your/.brain"
      }
    }
  }
}

šŸ—ļø Agent CLI — v1.6.2

Nucleus speaks MCP + CLI + SDK. Every command auto-detects TTY (table) vs pipe (JSON).

# Memory
nucleus engram search "compliance"                    # Table in terminal, JSONL when piped
nucleus engram write my_key "important insight" --context Strategy --intensity 8
nucleus engram query --context Decision --limit 10

# Tasks
nucleus task list --status READY --format json        # Force JSON output
nucleus task add "Ship v1.4.0 CLI" --priority 1
nucleus task update task-abc123 --status DONE

# Sessions
nucleus session save "Working on CLI implementation"
nucleus session resume                                # Most recent session

# Growth
nucleus growth pulse                                  # GitHub stars +

Tools (3)

engram searchSearch through stored engrams and context.
task managementManage agent tasks with status tracking.
session managementSave or resume agent sessions.

Environment Variables

NUCLEUS_BRAIN_PATHPath to the local .brain directory for persistent storage.

Configuration

claude_desktop_config.json
{"mcpServers": {"nucleus": {"command": "python3", "args": ["-m", "nucleus_mcp"], "env": {"NUCLEAR_BRAIN_PATH": "/path/to/your/.brain"}}}}

Try it

→Search my engrams for any previous decisions related to the compliance strategy.
→Add a new task to ship the v1.4.0 CLI with high priority.
→Save the current session context as 'Working on CLI implementation'.
→Generate an audit-ready report of my recent agent activities in HTML format.
→Resume my most recent agent session to continue working.

Frequently Asked Questions

What are the key features of Nucleus MCP?

Persistent memory storage for AI agents via engrams. Built-in governance controls including human-in-the-loop and kill switches. Full audit trails and decision logging for compliance. Cross-IDE compatibility for Cursor, Windsurf, and Claude Desktop. Session recovery tools for bloated conversation files.

What can I use Nucleus MCP for?

Maintaining persistent context for AI agents in regulated industries like banking or healthcare. Ensuring compliance with EU DORA or other regulatory frameworks through audit trails. Recovering IDE sessions that have become unresponsive due to large conversation history. Managing complex multi-step agent tasks with persistent state across different sessions.

How do I install Nucleus MCP?

Install Nucleus MCP by running: pip install nucleus-mcp && nucleus self-setup

What MCP clients work with Nucleus MCP?

Nucleus MCP works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Nucleus MCP docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare