swarm-mcp-server
Enables semantic search in the knowledge base by using Ollama's embedding models, allowing agents to query findings based on meaning rather than exact keywords.
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., "@swarm-mcp-serverWhat's the fleet's current capacity?"
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.
swarm-mcp-server
An MCP server that lets multiple AI coding agents, on one machine or across a network, work as a coordinated swarm. Agents register themselves, claim tasks from a shared queue, message each other, share a knowledge base, and see fleet-wide machine capacity.
Built as the coordination bus for herdr-fleet, but usable by any MCP client (Claude Code, OpenCode, Codex, or your own).
Features
Agent registry - register, heartbeat, find agents by capability; stale agents age out automatically.
Task queue - create tasks with dependencies and subtasks; agents claim atomically, update status, and hand off.
Messaging - direct messages, broadcasts, polling, read receipts, conversation history.
Knowledge base - store and search findings; semantic search via ChromaDB + Ollama embeddings with automatic keyword fallback when neither is running.
Machine capacity - a REST endpoint for lightweight host heartbeats (RAM, load, agent counts) plus an MCP tool so agents can see the whole fleet before picking work.
27 tools total, all backed by a single SQLite database (WAL mode).
Related MCP server: lxDIG MCP
Transports
stdio (default)
Each client spawns the server as a child process; coordination happens through the shared SQLite file. Good for a single machine.
npm install && npm run build
claude mcp add swarm -- node /path/to/swarm-mcp-server/dist/index.jsStreamable HTTP (for a networked swarm)
One long-running instance serves every agent on the network. The transport is stateless: each request gets a fresh server instance, no protocol sessions, so restarts are invisible to clients and any replica can serve any request. All state lives in SQLite. (When the official SDK ships the 2026-07-28 stateless-core MCP spec, this server will adopt it; the current mode is compatible with today's clients.)
openssl rand -hex 32 > ~/.config/fleet/swarm-token && chmod 600 ~/.config/fleet/swarm-token
SWARM_TRANSPORT=http node dist/index.js
# listening on 127.0.0.1:4483Publish it to your private network without widening the bind, e.g. over Tailscale:
tailscale serve --bg --http=8080 4483Connect agents from any machine:
claude mcp add --transport http swarm http://<host>:8080/mcp \
--header "Authorization: Bearer $(cat ~/.config/fleet/swarm-token)"Every request (MCP and REST) requires the bearer token; a missing or wrong token is a 401.
Configuration
Env var | Default | What |
| stdio |
|
| 4483 | HTTP port, bound to 127.0.0.1 only |
|
| Bearer token file (required in http mode) |
|
| SQLite + vector storage location |
|
| Database file |
|
| Embeddings for semantic search (optional) |
| 30000 | Agent staleness threshold |
Capacity API
fleet report (or anything else) POSTs host metrics without an MCP handshake:
curl -X POST -H "Authorization: Bearer $TOK" -H "Content-Type: application/json" \
http://127.0.0.1:4483/api/capacity \
-d '{"machine":"home-server","os":"linux","ram_free_mb":9000,"ram_total_mb":16000,"load1":0.4,"cores":8,"pane_count":3,"agent_count":1}'GET /api/capacity returns all machines; rows older than 60 s carry is_stale: true.
Agents get the same view through the machine_capacity_list MCP tool.
Running as a service
Linux (systemd user unit), ~/.config/systemd/user/swarm-mcp.service:
[Unit]
Description=swarm MCP server
[Service]
Environment=SWARM_TRANSPORT=http
ExecStart=/usr/bin/node %h/swarm-mcp-server/dist/index.js
Restart=on-failure
[Install]
WantedBy=default.targetmacOS: a LaunchAgent with RunAtLoad + KeepAlive pointing at the same command (herdr-fleet's fleet adopt installs one for you on fleet machines).
Development
npm run typecheck
npm run build # tsc + copies SQL migrations into dist
npm run dev # tsx watch, stdio modeLicense
MIT
This server cannot be installed
Maintenance
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
- Alicense-qualityDmaintenanceMCP server that enables AI coding agents to communicate, share state, and coordinate work in real time via MCP tools or REST API.895MIT
- FlicenseBqualityCmaintenanceMCP server that gives AI coding assistants persistent memory, structural code graph analysis, and safe multi-agent coordination, enabling them to answer architectural questions, track decisions across sessions, and coordinate safely in multi-agent workflows.394
- Alicense-qualityAmaintenanceMCP server that turns multiple home computers into a fleet for AI coding agents, enabling task delegation and LAN-based execution with local models.1Apache 2.0
- Alicense-qualityDmaintenanceA self-hosted MCP server enabling multiple AI coding agents to share state, preserve context across sessions, and coordinate with each other.115Apache 2.0
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Coordinate multiple AI agents over MCP: atomic claims, leases, shared ledger, handoffs, tasks.
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
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/Northern-Lighthouse/swarm-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server