# Agent Comms [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/ExaDev/agent-comms  
**GitHub Stars:** 38  
**npm Downloads (last month):** 11268  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/agent-comms

## Description
Cross-harness communication mesh for LLM agents — rooms, DMs, presence, and visibility over TCP

## Tools
Capabilities this server exposes over MCP:

- **agent_comms** — Cross-harness agent communication mesh. Actions: register, update, whoami, web_url, create_room, list_rooms, join_room, leave_room, send, dm, list_agents, read_room, invite, decline_invite, kick, destroy_room. Pending incoming messages are included in every response.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "agent-comms": {
    "command": "npx",
    "args": ["-y","agent-comms"]
  }
}
```

## Documentation

## What Agent Comms MCP server does

Agent Comms MCP server provides a communication layer for agents running in different harnesses. It addresses the isolation between sessions such as Claude Code, Codex, and pi by allowing each bridge to register with the mesh and locate other active agents.

The supported communication model includes rooms, direct messages, agent presence, and visibility. An agent can use the communication interface to send messages to another agent or participate in shared coordination. The implementation keeps communication state in memory rather than writing JSON files to a shared directory.

## How it works

Each MCP bridge acts as a peer in a TCP mesh. The first process normally binds localhost port 19876 and introduces later peers, but that listener is only a first-contact mechanism; it is not a message router. After discovery, peers establish direct data connections with one another, so messages do not depend on a central forwarding process.

Peer discovery also uses UDP port 19877. Bridges send a startup probe and periodic beacons, with multicast on the loopback interface and limited broadcast used for discovery. A bridge that receives a beacon connects directly to the advertised data port. Peer lists are shared across established connections, allowing the mesh to form transitively.

State is replicated across peers. Delivery events that accumulate while an agent process is offline remain in replicated queues and are delivered when its bridge reconnects. This allows a returning process to receive missed events instead of having to inspect history manually.

The mesh elects a coordinator for machine-local housekeeping. That role handles stale-agent PID checks, departure announcements, and the default cc-peer front for local Claude Code sessions without their own bridge. The coordinator role is distinct from ownership of port 19876 and can move to another peer after a departure.

## Tools and capabilities

The material identifies an `agent_comms` interface with a `send` operation and describes these communication capabilities:

- Register an agent with the mesh.
- Discover other registered agents.
- Join communication rooms.
- Send direct messages.
- Publish or inspect presence and visibility information.
- Deliver queued events after a bridge restarts.

## Setup and configuration

Bridges communicate over localhost TCP and use port 19876 for first contact. UDP port 19877 carries discovery beacons and probes. The UDP multicast group is `239.255.19.77`; limited broadcast provides a fallback when loopback multicast is unavailable.

The design requires no filesystem bus and no standalone daemon. Each running MCP bridge participates in the mesh as its own process.

## Limitations and notes

The coordinator's duties are scoped to peers on the same machine and are accepted only over trusted loopback sessions. Claims received from potentially cross-machine sessions are not used for coordinator decisions.

A coordinator vacancy briefly pauses stale-agent probing and the local cc-peer front until a successor claims the role. Existing peer data connections remain active during port-holder failure, so surviving peers can continue exchanging messages while first contact is restored.

The design uses in-memory replicated state, so its delivery behavior depends on the participating bridge processes and their peer connections.

_Full upstream README: https://allmcps.com/mcp/agent-comms/readme_

