Skip to main content

The Core of Your AI Agents - Model Context Protocol Server

Reason this release was yanked:

Protecting IP for 45-day private beta.

Project description

🧠 Nucleus MCP Server

PyPI version Python 3.10+ License: MIT

The Core of Your AI Agents — Multi-agent orchestration MCP server

mcp-server-nucleus connects your local "Nuclear Brain" agentic system with MCP-compatible clients like Claude Desktop, Cursor, and more.

✨ Features

  • 16 MCP Tools for agent orchestration
  • 4 MCP Resources for subscribable state
  • 3 MCP Prompts for pre-built orchestration
  • V2 Task Orchestration — Priority queue, skill routing, dependency DAG
  • Local Intelligence — Directly manipulates your .brain/ directory
  • Event-Driven — Emit and listen to system events
  • Zero-Knowledge Default — Your data stays local

🚀 Quick Start

Installation

⚠️ Requires Python 3.10+ — If pip3 fails, use python3.11 -m pip instead.

# Check your Python version first
python3 --version

# Install (use python3.11 if your default is older)
python3.11 -m pip install mcp-server-nucleus

# Verify installation
nucleus-init --help

Common error: No matching distribution found → Your Python is too old. Install Python 3.10+ via Homebrew: brew install python@3.11

Initialize Your Brain (Smart Init!)

# Create a new .brain/ directory — auto-configures Claude Desktop!
nucleus-init

# For solo founders (minimal setup)
nucleus-init --template=solo

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.

🛠 Available Tools

Core Tools

Tool Description
brain_emit_event Emit a new event to the ledger
brain_read_events Read recent events
brain_get_state Get current brain state
brain_update_state Update brain state
brain_read_artifact Read an artifact file
brain_write_artifact Write to an artifact file
brain_list_artifacts List all artifacts
brain_trigger_agent Trigger an agent with a task
brain_get_triggers Get all neural triggers
brain_evaluate_triggers Evaluate trigger activation

V2 Task Orchestration (New in v0.3.0)

Tool Description
brain_list_tasks Query tasks with filters (status, priority, skill, claimed_by)
brain_get_next_task Get highest-priority unblocked task matching your skills
brain_claim_task Atomically claim a task (prevents race conditions)
brain_update_task Update task fields (status, priority, etc.)
brain_add_task Create a new task with full V2 schema
brain_escalate Request human help when stuck

V2 Task Schema (11 fields):

{
  "id": "task-abc123",
  "description": "Build landing page",
  "status": "PENDING | READY | IN_PROGRESS | BLOCKED | DONE | FAILED | ESCALATED",
  "priority": 1,
  "blocked_by": ["task-prerequisite"],
  "required_skills": ["python", "frontend"],
  "claimed_by": "agent-thread-id",
  "source": "user | synthesizer",
  "escalation_reason": null,
  "created_at": "2026-01-03T12:00:00",
  "updated_at": "2026-01-03T12:00:00"
}

📡 MCP Resources

Resource Description
brain://state Live state.json content
brain://events Recent events stream
brain://triggers Trigger definitions
brain://context Full context for cold start — click in sidebar for instant context

💬 MCP Prompts

Prompt Description
cold_start Get instant context — sprint, events, artifacts, workflows
activate_synthesizer Orchestrate current sprint
start_sprint Initialize a new sprint

🎯 Common Use Cases

1. Run a Sprint

> "What's my current sprint focus?"
> "Add a task: Build landing page with priority 1"
> "Show me all priority 1 tasks"

2. Coordinate Multiple Agents

> "Claim the next Python task for me"
> "Mark task-abc123 as DONE"
> "List all tasks claimed by agent-1"

3. Escalate When Stuck

> "Escalate task-xyz with reason: Need human approval on pricing"

The task is released and flagged for human intervention.

4. Check Agent Context

> "Use the cold_start prompt from nucleus"

Instantly loads sprint, events, and artifacts.

🚀 Cold Start (New in v0.2.4)

Start every new session with full context:

> Use the cold_start prompt from nucleus

Or click brain://context in Claude Desktop's sidebar.

What you get:

  • Current sprint name, focus, and status
  • Recent events and artifacts
  • Workflow detection (e.g., lead_agent_model.md)
  • Lead Agent role assignment

📁 Expected .brain/ Structure

.brain/
├── ledger/
│   ├── events.jsonl
│   ├── state.json
│   └── triggers.json
├── artifacts/
│   ├── research/
│   ├── strategy/
│   └── ...
└── agents/
    └── *.md

⚠️ Known Limitations

  • IDE context is separate: Each MCP client (Claude Desktop, Cursor, Windsurf) connects to the same .brain/ directory and shares project state. However, IDE-specific context (Cursor's codebase memory, Antigravity's conversation artifacts, etc.) remains separate per editor.
  • No cross-editor sync: Artifacts created in one IDE's conversation don't automatically sync to another. Manual copy is required for important documents.
  • Python 3.10+ required: Won't work with older Python versions.

📜 License

MIT © Nucleus Team

Project details


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.4.0.tar.gz (266.4 kB 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.4.0-py3-none-any.whl (83.4 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_nucleus-0.4.0.tar.gz.

File metadata

  • Download URL: mcp_server_nucleus-0.4.0.tar.gz
  • Upload date:
  • Size: 266.4 kB
  • 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.4.0.tar.gz
Algorithm Hash digest
SHA256 6a065ff002d7af928d525fd12f17db66e13d321b5f0b1cf6c1bf619f751cd1ed
MD5 9b1d5bac00718ab1f3d11ab263868605
BLAKE2b-256 a760c3b70afea85e6ce1712b7f1ff92d01683af4e0282c9fafc635db81c00ea4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_server_nucleus-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d1193d60d652d4926514a29b2db17e454428aeea8e85f088c50703772a8b7fc
MD5 32e2d997906ffca3c685f26880d1ec4d
BLAKE2b-256 778b5d0e925cc93d32b95db9770cda75dd7434318554b9d8607bc08b7c978914

See more details on using hashes here.

Supported by

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