Swarmcode logo

Swarmcode

Coordinates Claude Code workspaces across machines with Redis-backed messaging, workspace status, artifact sharing, and real-time notifications.

Install Swarmcode

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "swarmcode": {
      "command": "npx",
      "args": [
        "-y",
        "swarmcode-mcp"
      ],
      "env": {
        "SWARMCODE_REDIS_URL": "YOUR_VALUE_HERE",
        "SWARMCODE_WORKSPACE_ID": "YOUR_VALUE_HERE",
        "DASHBOARD_USER": "YOUR_VALUE_HERE",
        "DASHBOARD_PASS": "YOUR_VALUE_HERE",
        "DASHBOARD_PORT": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y swarmcode-mcp

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

swarmcode connects Claude Code workspaces across machines through a shared Redis instance. Its MCP tools send and receive direct or broadcast messages, track workspace descriptions, inspect registered workspaces, and wait for incoming messages. Redis pub/sub drives event-based notifications in VS Code, while a web dashboard can monitor workspaces and send messages from a browser. Reach for it when agents on separate machines need to exchange API details, schemas, questions, or status without manual copy-paste.

Use cases

  • Coordinate API and client agents working on separate machines
  • Share schemas, configuration, and interface details between workspaces
  • Broadcast project updates to every registered workspace
  • Monitor agent workspaces and send messages from a browser

Key features

  • Redis-backed cross-machine messaging
  • Direct and broadcast workspace delivery
  • Real-time task notifications through Redis pub/sub
  • Workspace registration and status visibility
  • Long-running message listener
  • Browser dashboard with inbox and message controls

Tools5

What Swarmcode lets your agent do. Expand a tool for its parameters.

Self-reported~72 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

7/7 checks healthy over the last 26d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10d ago via OSV.dev · swarmcode-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars8Stargazers on the source repository.
npm downloads51Package downloads in the last 30 days.
Last commit8d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed5Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Swarmcode works

What swarmcode does

swarmcode provides a Redis-backed communication channel for Claude Code workspaces running on different machines. Each workspace registers an identifier and description, then uses MCP tools to exchange messages with another workspace or with every workspace through the * broadcast target.

The message channel is suited to coordination between agents working on related parts of a project. One workspace can share an API schema, configuration detail, artifact, or question while another agent continues its own task. Workspace status gives agents visibility into which workspaces are registered and what they are working on.

A separate web dashboard provides browser-based monitoring and control. It displays workspace activity, exposes per-workspace inboxes, shows a real-time global message log, and can send messages to selected workspaces.

How it works

All participating workspaces point to the same Redis instance. Redis stores messages and provides the pub/sub channel used for delivery. Workspace-specific channels isolate direct messages, while broadcast messages are delivered through a shared broadcast channel.

The event path uses a one-shot listener. A background listener waits for the next Redis message; when one arrives, it completes and triggers a task notification in VS Code. The agent can then call swarm_receive to read and mark pending messages as read, reply with swarm_send, and start listening again. A five-minute cron-based inbox check runs as a fallback alongside the event listener.

The package includes a CLI initializer that creates the workspace setup, including its MCP configuration and hooks. Repeat initialization on each machine and use the same Redis connection for all workspaces.

Setup and configuration

Install the package globally with npm, provide a Redis instance, and initialize a workspace:

Terminal
npm install -g swarmcode-mcp
swarmcode-mcp init my-workspace --redis redis://your-redis:6379

For local Redis, the project demonstrates running the redis:alpine Docker image with port 6379 exposed. After initialization, restart Claude Code and repeat the process for other workspaces.

SWARMCODE_REDIS_URL controls the Redis connection and defaults to redis://localhost:6379. SWARMCODE_WORKSPACE_ID identifies the workspace when it is not supplied through the generated MCP configuration.

The optional dashboard uses SWARMCODE_REDIS_URL, DASHBOARD_USER, DASHBOARD_PASS, and DASHBOARD_PORT. Its documented container listens on port 4200; the default dashboard credentials are admin and bridge, so set explicit values before exposing it beyond a trusted environment.

Redis and dashboard manifests are also available for Kubernetes deployment, including a Redis NodePort and an ingress configuration that requires a hostname edit.

Tools and capabilities

  • swarm_send sends a message to a named workspace or broadcasts with to: "*".
  • swarm_receive reads pending messages and marks them as read.
  • swarm_status lists registered workspaces and their status information.
  • swarm_register creates or updates the current workspace description.
  • swarm_listen waits until the next message arrives.
  • The dashboard provides workspace monitoring, inbox viewing, real-time message logging, and browser-based sending.

The package was renamed from mcp-agent-bridge. Existing deployments can migrate to swarmcode-mcp; the old package name and bridge_* tools are retained only for compatibility, while new setup uses the swarm_* names and SWARMCODE_* variables.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Swarmcode

swarmcode is an MCP server that connects Claude Code workspaces across machines through Redis, providing tools to send and receive messages, inspect registered workspaces, publish workspace descriptions, and wait for incoming messages. It supports broadcast delivery and real-time notifications for coordinating agents and sharing artifacts such as schemas or configuration details.

Install it globally with npm, then initialize each workspace against the same Redis instance. Run `npm install -g swarmcode-mcp`, followed by `swarmcode-mcp init my-workspace --redis redis://your-redis:6379`, and restart Claude Code.

swarmcode uses Redis for message storage and pub/sub delivery between workspaces. Each machine points to the same Redis URL, allowing direct workspace messages, broadcasts, real-time listener notifications, and workspace coordination.

Run the SwarmCode dashboard container and configure its Redis URL and dashboard credentials. The dashboard shows workspace activity, workspace inboxes, a real-time global message log, and controls for sending messages to workspaces.

Replace the old global package with `swarmcode-mcp`, then rerun `swarmcode-mcp init` for each workspace. The new tools use the `swarm_*` names and the configuration uses `SWARMCODE_*` variables; the old Redis wire format remains compatible during migration.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSwarmcode AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/swarmcode?style=directory)](https://allmcps.com/mcp/swarmcode)
HTML Embed
<a href="https://allmcps.com/mcp/swarmcode"><img src="https://allmcps.com/api/badge/swarmcode?style=directory" alt="Swarmcode on AllMCPs" /></a>