Agent Swarm
MCP server by desplega-ai Community
Agent Swarm is an open-source, self-hosted operating system for AI work from Desplega Labs. It has a lead agent delegate goals to worker agents like Claude Code or Codex, for people who want to run multi-agent work on their own infrastructure.
Install Agent Swarm
Built from the published package, never by AI.
claude mcp add agent-swarm -e AGENT_SWARM_API_KEY=YOUR_AGENT_SWARM_API_KEY -- npx -y @desplega.ai/agent-swarmRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"agent-swarm": {
"env": {
"AGENT_SWARM_API_KEY": "YOUR_AGENT_SWARM_API_KEY"
},
"args": [
"-y",
"@desplega.ai/agent-swarm"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"agent-swarm": {
"env": {
"AGENT_SWARM_API_KEY": "YOUR_AGENT_SWARM_API_KEY"
},
"args": [
"-y",
"@desplega.ai/agent-swarm"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"agent-swarm": {
"env": {
"AGENT_SWARM_API_KEY": "YOUR_AGENT_SWARM_API_KEY"
},
"args": [
"-y",
"@desplega.ai/agent-swarm"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add agent-swarm --env AGENT_SWARM_API_KEY=YOUR_AGENT_SWARM_API_KEY -- npx -y @desplega.ai/agent-swarm{
"mcpServers": {
"agent-swarm": {
"env": {
"AGENT_SWARM_API_KEY": "YOUR_AGENT_SWARM_API_KEY"
},
"args": [
"-y",
"@desplega.ai/agent-swarm"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add agent-swarm npx -y @desplega.ai/agent-swarmGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the agent-swarm block.
About
Agent Swarm is an open-source, self-hosted operating system for AI work, built by Desplega Labs. A lead agent receives goals from Slack, repositories, issue trackers, email, or the API, and delegates them to worker agents such as Claude Code or Codex. Workers run in isolated Docker containers. Shared memory, tools, schedules, and review gates help preserve work across sessions.
The project supports several harnesses and models, including Claude Code, Codex, pi, opencode, Cursor, and Amp. It provides an API with docs at /docs and an OpenAPI spec, and a dashboard with a guided first-run setup. Deployment is possible with Docker Compose or a Helm chart for Kubernetes. It is aimed at people who want to self-host their multi-agent work.
Written from the project's README and checked against it.
Tools it gives your assistant
Schema-validated task resultsReturns task results as structured JSON for callers that need a defined output shape.Deferred tasksWakes a task when all or any watched tasks reach an outcome, or when a deadline arrives.Persistent memory and identityKeeps memory and identity across sessions, with citation ratings and self-rating hints enabled by default.Workflows and schedulesRuns recurring work through workflows, schedules, scripts, and apps.Isolated worker containersRuns workers in isolated Docker containers with development environments.Multi-harness supportLets you choose the harness and models, including Claude Code, Codex, Cursor, and ACP agents.Realtime roomsProvides shared page state, presence, and live channels for teams.
What you need
- Docker and Docker Compose v2
- An API_KEY for the Agent Swarm API
- A credential for your HARNESS_PROVIDER
- At least 4 vCPU, 8 GB RAM and 40 GB of free disk for self-hosting
| Setting | Needed | What it is |
|---|---|---|
AGENT_Environment variable, secret | Required | API key for your local Agent Swarm instance. |
AuthorizationHeader, secret | Required | Bearer aswt_<token> for an active user on your swarm. Ask a swarm operator to mint it in People > your user > Tokens, or via POST /api/users/{id}/mcp-tokens. Copy the plaintext when minted (shown once). Include the Bearer prefix. The shared |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Delegate this bug fix to a worker agent and open a pull request
- Create a deferred task that runs when these three tasks finish
- Set up a recurring schedule that runs this workflow every morning
Good to know
- The Cloud trial on E2B deletes its data when the sandboxes stop
- Keep MULTI_RUNTIME_ENABLED=false when upgrading older workers that lack runtime identities
- Database retention defaults to dry-run
Security check
C- Downloads a script from the internet and runs itIn
README.md:curl -fsSL https://agent-swarm.dev/install.sh | bash
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Agent Swarm
All alternatives →Oh My Posh Validator is listed as an MCP server, but the source is the README for oh-my-posh, a cross platform prompt theme engine. It does not describe an MCP server, tools, or schema validation.
Sim is a workspace for building, deploying and managing AI agents and workflows. Its MCP server lets Claude, Claude Code, Codex or another MCP client manage workspaces, workflows, tables, knowledge bases, files and logs.
Omnara deploys durable AI agents on any model and any machine. It is an open-source, self-hostable managed agent platform under Apache 2.0, with a REST API, TypeScript SDK, CLI, and MCP server.
Strata is an MCP server from Klavis AI for progressive tool usage, described as a way to optimize the AI agent's context window. The repository is deprecated, but it remains public for reference and for local or hosted use.
VoiceMode is an MCP server that adds voice conversations to Claude Code and other MCP capable agents. It uses speech-to-text and text-to-speech. It suits people whose hands or eyes are busy.
Gives an AI agent access to the skills, plugins, MCP connections, and Google Workspace and Microsoft 365 capabilities assigned to you by your OpenWork organization, through one OAuth MCP URL. Intended for people and teams who want to reuse the same setup across agents, tools, and machines.
Compare with Oh My Posh Validator, Sim or Omnara
Agent Swarm: common questions
Is Agent Swarm open source?
The self-hosted software is covered by the MIT License. The source describes it as open-source and self-hosted.
Which AI tools can Agent Swarm use?
The source lists Claude Code, Codex, pi, opencode, Cursor, Amp, Grok, fx, Devin, and ACP agents as harness options.
Where can tasks come from?
The source says the lead agent receives work from Slack, repositories, issue trackers, email, or the API.
How do I install Agent Swarm?
In Claude Code run claude mcp add agent-swarm -e AGENT_SWARM_API_KEY=YOUR_AGENT_SWARM_API_KEY -- npx -y @desplega.ai/agent-swarm. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Agent Swarm the official server?
Agent Swarm is a community project by desplega-ai, not verified by a company domain.
Is Agent Swarm free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Agent Swarm safe to use?
It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.
What are alternatives to Agent Swarm?
Similar MCP servers: Oh My Posh Validator, Sim, Omnara, strata.
Does Agent Swarm work with ChatGPT?
Yes. Add its server URL in ChatGPT as a custom connector. See MCP in ChatGPT.
