# rafapra3008/cervellaswarm [Health: Active]

**Category:** 🔒 Security  
**Repository:** https://github.com/rafapra3008/cervellaswarm/tree/main/packages/mcp-server  
**GitHub Stars:** 12  
**npm Downloads (last month):** 104  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/rafapra3008-cervellaswarm

## Description
Verify AI agent communication protocols using session types. Formal specification with Lean 4 proofs, linter, formatter, and LSP. Catches deadlocks and role violations before deployment.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "cervellaswarm": {
    "command": "npx",
    "args": ["-y","@cervellaswarm/mcp-server"],
    "env": {
      "ANTHROPIC_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `ANTHROPIC_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What rafapra3008/cervellaswarm does

rafapra3008/cervellaswarm exposes a multi-agent coding workflow to Claude Code through MCP. It includes 17 agents divided into an architect, three quality guardians, an orchestrator, and 12 specialized workers. The agents cover implementation, testing, documentation, deployment, data work, security, research, architecture, marketing, and review.

The system is aimed at delegating software tasks to an appropriate worker rather than handling every task through one general-purpose coding role. An example request is asking Claude Code to create a REST API endpoint for user authentication; Claude Code can invoke `spawn_worker` with the `backend` worker.

## How it works

The MCP server runs as a local command named `cervellaswarm-mcp` and communicates with Claude Code through the MCP configuration. Worker execution calls the Anthropic API using the configured API key. The worker list is static, while status checks inspect configuration and usage checks return quota information.

The agent groups have distinct responsibilities. The `architect` prepares plans for complex tasks, the `orchestrator` coordinates agents, and the three guardians review code quality, research accuracy, and deployment safety or security. Workers use Sonnet 4.5, while the architect, guardians, and orchestrator use Opus 4.5.

## Setup and configuration

Install the MCP package globally with:

```bash
npm install -g @cervellaswarm/mcp-server
```

Add an MCP entry to `~/.claude/settings.json` or the project’s `.mcp.json`:

```json
{
  "mcpServers": {
    "cervellaswarm": {
      "command": "cervellaswarm-mcp"
    }
  }
}
```

The API key can be initialized through the companion CLI:

```bash
npm install -g cervellaswarm
cervellaswarm init
```

Alternatively, set `ANTHROPIC_API_KEY` in the environment. Restart Claude Code after adding the server configuration.

For local development, build the package and point Claude Code at the generated JavaScript entry point:

```json
{
  "mcpServers": {
    "cervellaswarm": {
      "command": "node",
      "args": ["/path/to/CervellaSwarm/packages/mcp-server/dist/index.js"]
    }
  }
}
```

## Tools and capabilities

- `spawn_worker`: assign a task to a specialized AI worker.
- `list_workers`: list the available workers and their specialties.
- `check_status`: verify configuration and API-key status.
- `check_usage`: inspect usage quota information.

The worker catalog includes `backend`, `frontend`, `tester`, `docs`, `devops`, `data`, `security`, `researcher`, `marketing`, `ingegnera`, `scienziata`, and `reviewer`, alongside the architect, guardians, and orchestrator roles.

## Limitations and notes

The documented setup targets Claude Code and requires access to the Anthropic API through an API key. Worker execution depends on that external API. The MCP package shares configuration with the CervellaSwarm CLI, including the API key initialized by `cervellaswarm init`.

The repository also provides contributor commands for installation, development watch mode, MCP Inspector testing, and building. These are intended for local development rather than the normal global-install workflow.

_Full upstream README: https://allmcps.com/mcp/rafapra3008-cervellaswarm/readme_

