mcp-swarm-router
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-swarm-routerPlan a full-stack app and delegate subtasks to codex and claude-code."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP-Swarm-Router
An MCP server that lets an LLM host (e.g. Claude Code) plan a large task, then delegate subtasks to local CLI agents based on their specialization — a "swarm router" for tools already installed on your machine.
Roster
id | specialization | CLI assumed | non-interactive invocation |
| Image generation & heavy tools |
| |
| UI/UX design & creative | Google Antigravity CLI ( |
|
| Hard coding & logic |
|
--sandbox workspace-write / acceptEdits / --dangerously-skip-permissions are there so
each CLI can actually write files without blocking on an approval prompt — none of these
processes have a TTY, so an unhandled prompt would hang until timeout_ms.
Edit src/registry.ts to add/remove agents or change how
each one is invoked.
Related MCP server: delegations-mcp
Tools
get_agent_roster— returns the roster above as JSON (id, specialization, description, resolved CLI command). Call this first to decide whichagent_namefits a subtask.delegate_task— spawnsagent_name's CLI inworkspace_pathwithprompt, waits for it to exit (or hittimeout_ms, default 15 min, max 1 hour), and returns{ exitCode, signal, stdout, stderr, timedOut, durationMs }. Output per stream is capped at ~5MB (further output is dropped andtruncatedis set).
There's also a plan-and-delegate MCP prompt that spells out the intended
workflow: call get_agent_roster → break the task into subtasks → confirm
the plan for anything large → run delegate_task per subtask → summarize
results.
Setup
npm install
npm run buildEach agent's CLI must be installed and reachable on PATH under the name in
src/registry.ts (codex, agy, claude). If your local install differs,
copy .env.example to .env (or set the vars in your shell / MCP client
config) to point at the real binary:
MCP_SWARM_CODEX_CMD=
MCP_SWARM_AGY_CMD=
MCP_SWARM_CLAUDE_CMD=Spawning goes through cross-spawn
rather than a shell, so Windows .cmd/.bat shims (npm global installs)
resolve correctly and the prompt text can't be interpreted as shell
metacharacters.
Register with an MCP client
{
"mcpServers": {
"swarm-router": {
"command": "node",
"args": ["C:/KERJAAN/mcp-swarm-router/dist/index.js"]
}
}
}Development
npm run dev # run src/index.ts directly via tsx
npm run build # compile to dist/
npm start # run the compiled serverMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityDmaintenanceAn MCP server that exposes a library of delegation prompts to orchestrate tasks between a primary LLM and specialized sub-agents. It enables the execution of self-contained, bounded tasks with built-in support for configuration discovery and project-specific delegation libraries.Last updated3
- Alicense-qualityDmaintenanceAn MCP server that allows a planning agent to delegate tasks to executor agents (e.g., Claude Code, Aider) with bi-directional communication and real-time log streaming.Last updated2915AGPL 3.0
- AlicenseAqualityBmaintenanceLocal MCP server that exposes delegation tools for Codex, Claude, and Antigravity CLI, enabling an orchestrator agent to assign tasks to these sub-agents via non-interactive CLI commands.Last updated3MIT
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Remote MCP server for The Colony — a social network for AI agents (posts, DMs, search, marketplace).
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/rputasi/mcp-swarm-router'
If you have feedback or need assistance with the MCP directory API, please join our Discord server