SwarmCode MCP server
Commit 31. Okt. 2026Ermöglicht die geräteübergreifende Kommunikation zwischen Claude Code Instanzen über einen Redis-basierten Channel für Messaging in Echtzeit und das Teilen von Artifacts.
Auch bekannt als spranab/swarmcode
- Stars
- 9
- Tools
- 5
- Downloads, 30 Tage
- —
- Neueste Version
- —
- Letzter Commit
- 31. Okt. 2026
- Lizenz
- MIT
Was ist SwarmCode MCP?
SwarmCode ist ein MCP server. Ermöglicht die geräteübergreifende Kommunikation zwischen Claude Code Instanzen über einen Redis-basierten Channel für Messaging in Echtzeit und das Teilen von Artifacts. Er stellt 5 Tools bereit, etwa swarm_send, swarm_receive, swarm_status.
Zusammenfassung generiert aus dem README des Projekts
Über SwarmCode MCP server
SwarmCode bietet eine Communication Layer für Claude Code Instanzen, die auf verschiedenen Maschinen laufen. Es fungiert als Message Bus, der es Agents in einem Netzwerk ermöglicht, Workspace-Status, Nachrichten und Artifacts zu teilen, ohne dass manuelles Copy-Paste nötig ist. Durch die Nutzung eines Redis-basierten Channels ermöglicht der Server Push-Benachrichtigungen in Echtzeit direkt in VS Code, sodass Änderungen, die auf einer Maschine vorgenommen werden, den Agents auf anderen Maschinen sofort bekannt sind.
Entwickler richten das System ein, indem sie das swarmcode-mcp Package via npm installieren und einen Workspace mit einem Redis Connection String initialisieren. Die Architektur nutzt Redis pub/sub für die eventgesteuerte Zustellung, ergänzt durch einen fünfminütigen Backup-Polling-Mechanismus. Nutzer können zudem ein Web-Dashboard bereitstellen, um aktive Workspaces zu überwachen und Nachrichten über einen Browser zu verwalten. Das System unterstützt die plattformübergreifende Nutzung auf Mac, Windows und Linux und bietet Tools wie swarm_send, swarm_receive und swarm_register, um die Koordination zu erleichtern.
Was du damit machen kannst
- 1API-Änderungen geräteübergreifend synchronisierenEin Agent auf einem Desktop kann einen Agenten auf einem Laptop über ein neues API-Schema Update informieren.
- 2Technische Artifacts und Configs teilenEntwickler können Schemas und Interfaces automatisch zwischen verschiedenen Workspaces verteilen.
- 3Multi-Agent-Aktivitäten überwachenNutze ein zentrales Web-Interface, um den Status und die Message-Logs aller verbundenen Workspaces einzusehen.
Geschrieben aus dem README des Projekts. Jeder Use Case wurde gegen ein Zitat daraus geprüft.
SwarmCode MCP tools 5
Erkannt aus dem READMEswarm_sendswarm_receiveswarm_statusswarm_registerswarm_listen
| swarm_send | — | |
| swarm_receive | — | |
| swarm_status | — | |
| swarm_register | — | |
| swarm_listen | — |
Automatisierte Checks
Geluften am 14. Nov. 2026Vollständiger Bericht →Noch nicht verifiziert. Ein Server benötigt einen Score von 80, keine kritischen Befunde und genug Daten für unsere Prüfung. Wie die Checks funktionieren
- Source Repository verknüpft und erreichbarspranab/swarmcode is public and reachablegithub.com/spranab/swarmcode ↗Bestanden
- Paket nennt dieses Repository als QuelleNicht geprüft
- Build-Herkunft (Sigstore-Attestierung)Nicht geprüft
- Open Source Lizenz (OSI)MITspdx.org/licenses/MIT.html ↗Bestanden
- Commit oder Release im letzten JahrLast commit or release 2026-10-31github.com/spranab/swarmcode ↗Bestanden
- OpenSSF ScorecardNicht geprüft
- Package-Name ähnelt keinem populären PackageNicht geprüft
- Kein kritischer Hinweis im Paket oder seinen AbhängigkeitenNicht geprüft
- Keine versteckten Anweisungen an das Modell5 tool descriptions and the README read; no override phrases, credential paths or hidden charactersBestanden
- Destruktive Tools sind markiertNo tool named like delete, drop or execBestanden
- Remote-Endpoint beantwortet den MCP-HandshakeNicht geprüft
README
Auf GitHub ansehenSwarmCode
Using
mcp-agent-bridge? That is the old name of this project and it no longer gets updates. Switch withnpm uninstall -g mcp-agent-bridge && npm install -g swarmcode-mcp, then re-runswarmcode-mcp init <workspace>. Same Redis, same protocol; the tools are nowswarm_*instead ofbridge_*. See Migrating from mcp-agent-bridge.
Two Claude Code instances can't talk to each other. The one on your desktop that just changed the API schema has no way to tell the one on your laptop that's writing the client against it — so you copy-paste between windows and act as the message bus yourself.
SwarmCode is that message bus. Agents on any machine on your network join a Redis-backed channel and send each other messages, artifacts, and workspace status, delivered as real-time push into VS Code — no polling, no manual relay.
Desktop (VS Code) Laptop (VS Code) Server
Claude A ───────────────── Claude B ───────────────── Claude C
\ | /
-------- Redis (single instance) ------------
|
Web Dashboard
(monitor & control)
Install (60 seconds)
npm install -g swarmcode-mcp
# Redis, if you don't already have one
docker run -d --name redis -p 6379:6379 redis:alpine
swarmcode-mcp init my-workspace --redis redis://your-redis:6379
Restart Claude Code. Repeat on every other machine, all pointing at the same Redis. That's the whole setup.
What it looks like
Desktop (building the API):
> swarm_register("Building user auth REST API")
> swarm_send(to: "laptop", type: "info",
content: "POST /api/users is live, schema: {id, email, role}")
Laptop — the message arrives as a task-notification while its agent is mid-task:
[task-notification] New message from "desktop": POST /api/users is live...
> swarm_receive()
> swarm_send(to: "desktop", type: "question",
content: "Does /api/users support pagination?")
Desktop, instantly:
[task-notification] New message from "laptop": Does /api/users support pagination?
> swarm_receive()
> swarm_send(to: "laptop", type: "answer", content: "Yes, use ?page=1&limit=20")
No user in the loop. A terminal recording of the same exchange is in
demo/demo.cast (asciinema play demo/demo.cast).
What Can It Do?
- Cross-machine messaging — Claude on your desktop sends a message, Claude on your laptop receives it instantly
- Real-time push — no polling, messages delivered via Redis pub/sub + background task notifications
- Workspace awareness — every agent knows what the others are working on
- Artifact sharing — share schemas, configs, interfaces across workspaces
- Web dashboard — monitor all workspaces, send messages from your browser
- Auto-setup — one command initializes any workspace
vs Claude Desktop
| Claude Desktop | SwarmCode | |
|---|---|---|
| Cross-machine communication | No | Yes |
| Multi-workspace coordination | No — each window isolated | Yes — agents talk to each other |
| Real-time push notifications | No | Yes |
| Artifact/schema sharing | No | Yes |
| Web dashboard | No | Yes |
| Works in VS Code | No | Yes |
| Cross-platform | Mac only | Mac, Windows, Linux |
| Open source | No | Yes (MIT) |
How It Works
Real-time message loop
1. Background listener subscribes to Redis pub/sub channel
2. Message arrives → listener exits → task-notification fires in VS Code
3. Claude reads the message → swarm_receive() → swarm_send() reply
4. New listener started → back to step 1
No polling. No cron. True event-driven push in VS Code.
Per-workspace isolation
swarmcode:ws:desktop-api ← only desktop-api hears this
swarmcode:ws:laptop-frontend ← only laptop-frontend hears this
swarmcode:ws:broadcast ← everyone hears this (to="*")
Backup polling
A 5-minute CronCreate runs alongside the listener as a safety net.
Tools
| Tool | Description |
|---|---|
swarm_send |
Send a message to a workspace or broadcast (to: "*") |
swarm_receive |
Read and mark pending messages as read |
swarm_status |
See all registered workspaces |
swarm_register |
Register/update this workspace's description |
swarm_listen |
Long-running task that completes when the next message arrives |
Web Dashboard
Monitor and control all workspaces from your browser.
docker run -d -p 4200:4200 \
-e SWARMCODE_REDIS_URL=redis://your-redis:6379 \
-e DASHBOARD_USER=admin \
-e DASHBOARD_PASS=your-password \
ghcr.io/spranab/swarmcode-dashboard:latest
Features:
- All workspaces with active/idle status
- Per-workspace inbox viewer
- Global message log (real-time via SSE)
- Send messages to any workspace
- Dark theme
Architecture
src/
├── channel.js # MCP server — tools + Redis pub/sub + instructions
├── listener.js # One-shot Redis listener → task-notification push
├── check-inbox-http.js # UserPromptSubmit hook — inbox check on each prompt
├── init.js # CLI — one-command workspace setup
└── server.js # CLI entry point
dashboard/
├── server.js # Express app with SSE, basic auth, REST API
└── index.html # Real-time dashboard UI
Configuration
| Variable | Default | Description |
|---|---|---|
SWARMCODE_REDIS_URL |
redis://localhost:6379 |
Redis connection |
SWARMCODE_WORKSPACE_ID |
(from .mcp.json) | Workspace identifier |
DASHBOARD_USER |
admin |
Dashboard username |
DASHBOARD_PASS |
bridge |
Dashboard password |
DASHBOARD_PORT |
4200 |
Dashboard port |
Kubernetes
Redis + Dashboard manifests in k8s/:
kubectl apply -f k8s/namespace.yml
kubectl apply -f k8s/redis.yml # includes NodePort on 30379
kubectl apply -f k8s/dashboard.yml
kubectl apply -f k8s/ingress.yml # edit hostname
Built With
- Model Context Protocol (MCP) — tool interface
- Redis — pub/sub + message storage
- ioredis — Redis client
- Claude Code — the agents
Migrating from mcp-agent-bridge
SwarmCode was published as mcp-agent-bridge until the rename. The old
package still works but is frozen — new features and fixes only land in
swarmcode-mcp.
npm uninstall -g mcp-agent-bridge
npm install -g swarmcode-mcp
swarmcode-mcp init my-workspace --redis redis://your-redis:6379
What changes:
Old (mcp-agent-bridge) |
New (swarmcode-mcp) |
|---|---|
bridge_send / bridge_receive / bridge_register |
swarm_send / swarm_receive / swarm_register |
AGENT_BRIDGE_REDIS_URL |
SWARMCODE_REDIS_URL |
AGENT_BRIDGE_WORKSPACE_ID |
SWARMCODE_WORKSPACE_ID |
binary mcp-agent-bridge |
binary swarmcode / swarmcode-mcp |
The old AGENT_BRIDGE_* environment variables are still read as a fallback,
and the Redis wire format is unchanged, so a migrated workspace can talk to a
not-yet-migrated one during the switchover. Re-running init rewrites the
workspace's .mcp.json entry and hooks for you.
Related projects
Other agent infrastructure by the same author, built to be used together:
- saga-mcp — SQLite-backed project tracker so a swarm of agents shares one plan.
- yantrikdb-mcp — persistent cognitive memory across sessions and machines.
- brainstorm-mcp — multi-model debate as an MCP tool.
- mcpier — self-hosted MCP control plane that keeps API keys off your clients.
License
MIT — Pranab Sarkar
SwarmCode MCP Fragen
Welche Tools bietet SwarmCode MCP?
Er stellt 5 Tools bereit, darunter swarm_send, swarm_receive, swarm_status, swarm_register, swarm_listen.
Wie installiere ich SwarmCode?
Du kannst es global via npm mit npm install -g swarmcode-mcp installieren und dein Workspace anschließend mit swarmcode-mcp init <workspace> initialisieren.
Kann ich meine Agents über einen Browser überwachen?
Ja, SwarmCode enthält ein Web-Dashboard, mit dem du alle Workspaces überwachen, Inboxes einsehen und Nachrichten direkt aus deinem Browser versenden kannst.
Was ist der Unterschied zwischen SwarmCode und Claude Desktop?
Im Gegensatz zu Claude Desktop unterstützt SwarmCode die geräteübergreifende Kommunikation, die Koordination mehrerer Workspaces, Push-Benachrichtigungen in Echtzeit und das Teilen von Artifacts.
Gibt es eine Möglichkeit, vom alten mcp-agent-bridge zu migrieren?
Ja, du kannst das alte Package deinstallieren und swarmcode-mcp installieren; das Redis Wire Format bleibt unverändert, sodass migrierte Workspaces während des Umstiegs weiterhin kommunizieren können.