# Agent Swarm MCP server

> Orchestrate teams of AI coding agents with a lead agent, Docker workers, shared memory, and task delegation on your own swarm.

- Listing: https://mcp.tc/i/agent-swarm
- Connect: this is a local (stdio) server; install it on your machine (see Install). The listing link is a page, not an MCP endpoint.
- Type: local (stdio)
- Auth: API key
- Category: [AI & Machine Learning](https://mcp.tc/c/ai-ml)
- Vendor: desplega-ai
- Homepage: <https://docs.agent-swarm.dev>
- Repository: <https://github.com/desplega-ai/agent-swarm>
- Package: npm `@desplega.ai/agent-swarm`

## About

Agent Swarm is an open-source, self-hosted operating system for AI work. A lead agent receives tasks from Slack, repositories, issue trackers, email, or the API and delegates them to workers such as Claude Code or Codex running in isolated Docker containers. The MCP server exposes the swarm API, backed by local SQLite storage, for multi-agent orchestration.

It runs locally as the npm package @desplega.ai/agent-swarm over stdio, or as a streamable HTTP endpoint on your own swarm host. The local package needs an AGENT\_SWARM\_API\_KEY for your instance. The remote endpoint needs an Authorization header with a Bearer token minted for a user on your swarm.

## What it can do

- Delegate tasks from a lead agent to workers
- Get schema-validated structured task results
- Defer tasks until watched tasks finish or a deadline arrives
- Use persistent memory and identity across sessions
- Manage workflows, schedules, and scripts for recurring work
- Receive work from Slack, GitHub, GitLab, Linear, Jira, and email

## Example prompts

- "Send a task to the swarm to fix the failing tests in the api repo"
- "Defer this task until the two watched tasks complete"
- "Schedule a recurring task that summarizes new issues every morning"
- "Show the status of the tasks currently running on my swarm"

## Install

### Claude Code

1. Run this in a terminal, in your project folder:

```bash
claude mcp add --transport stdio agent-swarm --env "AGENT_SWARM_API_KEY=<YOUR_AGENT_SWARM_API_KEY>" -- npx -y @desplega.ai/agent-swarm api
```

2. Start Claude Code and type `/mcp`. **agent-swarm** should show as connected.

Add `--scope user` to make it available in every project. Replace the placeholders with your own values.

### Claude Desktop

1. Open **Settings → Developer → Edit Config**. It opens `claude_desktop_config.json`. Add:

`claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "agent-swarm": {
      "command": "npx",
      "args": [
        "-y",
        "@desplega.ai/agent-swarm",
        "api"
      ],
      "env": {
        "AGENT_SWARM_API_KEY": "<YOUR_AGENT_SWARM_API_KEY>"
      }
    }
  }
}
```

2. Save the file and restart Claude Desktop. Replace the placeholders with your own values.

Needs Node.js on your computer. The file lives in `~/Library/Application Support/Claude/` on macOS and `%APPDATA%\Claude\` on Windows.

### Cursor

[Add to Cursor](<https://cursor.com/install-mcp?name=agent-swarm&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBkZXNwbGVnYS5haS9hZ2VudC1zd2FybSIsImFwaSJdLCJlbnYiOnsiQUdFTlRfU1dBUk1fQVBJX0tFWSI6IjxZT1VSX0FHRU5UX1NXQVJNX0FQSV9LRVk%2BIn19>) (opens Cursor)

Or add it by hand to `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (this project):

`mcp.json`:

```json
{
  "mcpServers": {
    "agent-swarm": {
      "command": "npx",
      "args": [
        "-y",
        "@desplega.ai/agent-swarm",
        "api"
      ],
      "env": {
        "AGENT_SWARM_API_KEY": "<YOUR_AGENT_SWARM_API_KEY>"
      }
    }
  }
}
```

Needs Node.js on your computer. Replace the placeholders with your own values.

### VS Code

Add it to `.vscode/mcp.json`. VS Code asks for the secret the first time and stores it securely:

`.vscode/mcp.json`:

```json
{
  "servers": {
    "agent-swarm": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@desplega.ai/agent-swarm",
        "api"
      ],
      "env": {
        "AGENT_SWARM_API_KEY": "${input:agent-swarm-api-key}"
      }
    }
  },
  "inputs": [
    {
      "type": "promptString",
      "id": "agent-swarm-api-key",
      "description": "AGENT_SWARM_API_KEY",
      "password": true
    }
  ]
}
```

Needs Node.js on your computer.

### Devin Desktop

1. Add it to `~/.config/devin/mcp_config.json` (macOS and Linux) or `%APPDATA%\devin\mcp_config.json` (Windows):

`mcp_config.json`:

```json
{
  "mcpServers": {
    "agent-swarm": {
      "command": "npx",
      "args": [
        "-y",
        "@desplega.ai/agent-swarm",
        "api"
      ],
      "env": {
        "AGENT_SWARM_API_KEY": "<YOUR_AGENT_SWARM_API_KEY>"
      }
    }
  }
}
```

2. Refresh the MCP server list in Cascade. Replace the placeholders with your own values.

Devin Desktop is the new name for Windsurf.

### Codex

```bash
codex mcp add agent-swarm --env "AGENT_SWARM_API_KEY=<YOUR_AGENT_SWARM_API_KEY>" -- npx -y @desplega.ai/agent-swarm api
```

Or edit `~/.codex/config.toml` directly:

`config.toml`:

```toml
[mcp_servers.agent-swarm]
command = "npx"
args = ["-y", "@desplega.ai/agent-swarm", "api"]
env = { AGENT_SWARM_API_KEY = "<YOUR_AGENT_SWARM_API_KEY>" }
```

Needs Node.js on your computer. Replace the placeholders with your own values.

### Gemini CLI

```bash
gemini mcp add -e "AGENT_SWARM_API_KEY=<YOUR_AGENT_SWARM_API_KEY>" agent-swarm npx -- -y @desplega.ai/agent-swarm api
```

This adds it to the current project. Add `-s user` to use it everywhere.

### Any client

Most clients that start local servers accept this shape:

```json
{
  "mcpServers": {
    "agent-swarm": {
      "command": "npx",
      "args": [
        "-y",
        "@desplega.ai/agent-swarm",
        "api"
      ],
      "env": {
        "AGENT_SWARM_API_KEY": "<YOUR_AGENT_SWARM_API_KEY>"
      }
    }
  }
}
```

Zed puts servers under `context_servers` in its settings, with the same `command`, `args` and `env` fields.

Needs Node.js on your computer. Replace the placeholders with your own values.

## Recent changes

- 2026-11-18 05:30 UTC: New version 2.13.5 (was 2.13.4), read from npm. Source: automatic check.
- 2026-11-16 05:32 UTC: New version 2.13.3 (was 2.13.2), read from npm. Source: automatic check.
- 2026-11-15 05:31 UTC: New version 2.13.2 (was 2.13.1), read from npm. Source: automatic check.
- 2026-11-14 05:29 UTC: New version 2.13.1 (was 2.13.0), read from npm. Source: automatic check.
- 2026-11-12 08:23 UTC: New version 2.12.0 (was 2.11.0), read from npm. Source: automatic check.

More on the History tab, with descriptions before and after for the newest entries: https://mcp.tc/i/agent-swarm#history (Atom feed: https://mcp.tc/i/agent-swarm/history.xml). It records what mcp.tc's anonymous checks saw, every 3 hours where the tool list can be read without sign-in; it is not a security review.

## Details

- Server version: 2.13.5
- Last checked: 2026-10-11
- Listed: 2026-10-11
- Updated: 2026-10-26

---
Source: https://mcp.tc/i/agent-swarm (mcp.tc is an independent directory, not affiliated with this server's publisher). Corrections: https://mcp.tc/report
