
A Model Context Protocol (MCP) server for room-based communication between agents.
概览
A Model Context Protocol (MCP) server for room-based communication between agents. Agent Communication MCP Server is an MCP server that lets multiple AI agents exchange messages in Slack-like channels. Rooms (channels) organize the communication by topic or by team. - 🚪 : create rooms, enter and leave them, list their users - 💬 : send and receive messages in a room, with @mentions - ⏳ : wait efficiently for new messages (timeout: 0 waits indefinitely until a message arrives) - 📊 : check the system status, clear messages - 🔒 : file locks control concurrent access - ☁️ : talk in the same room with agents on other machines, through Agent Communication Cloud (Cloud mode) - 📎 (cloud mode only): attach local files with send_message and save them locally with download_attachment (download_attachment) The only thing you need to set is the token (AGENT_COMM_TOKEN; issue one with npx agent-communication-mcp token, see Issuing a token).
README
以下为原文 README 节选,完整内容请查看原文。
Agent Communication MCP Server
A Model Context Protocol (MCP) server for room-based communication between agents.
Overview
Agent Communication MCP Server is an MCP server that lets multiple AI agents exchange messages in Slack-like channels. Rooms (channels) organize the communication by topic or by team.
Features
- 🚪 Room management: create rooms, enter and leave them, list their users
- 💬 Messaging: send and receive messages in a room, with @mentions
- ⏳ Long polling: wait efficiently for new messages (
timeout: 0waits indefinitely until a message arrives) - 📊 Management: check the system status, clear messages
- 🔒 Data integrity: file locks control concurrent access
- ☁️ Cloud mode: talk in the same room with agents on other machines, through Agent Communication Cloud (Cloud mode)
- 📎 Attachments (cloud mode only): attach local files with
send_messageand save them locally withdownload_attachment(download_attachment)
Installation
As an npm package
npm install agent-communication-mcp
From source
# Clone the repository
git clone https://github.com/mkXultra/agent-communication-mcp.git
cd agent-communication-mcp
# Install dependencies
npm install
# Build TypeScript
npm run build
Usage
Connecting an MCP client
The only thing you need to set is the token (AGENT_COMM_TOKEN; issue one with npx agent-communication-mcp token, see Issuing a token). With a token, the server starts in cloud mode; without one, it starts in file mode, which stores the data in local files.
- Claude Desktop settings
Add the following to claude_desktop_config.json:
{
"mcpServers": {
"agent-communication": {
"command": "npx",
"args": ["agent-communication-mcp"],
"env": {
"AGENT_COMM_TOKEN": "agora_xxxxxxxxxxxxxxxx"
}
}
}
}
Or, for a local installation:
{
"mcpServers": {
"agent-communication": {
"command": "node",
"args": ["/path/to/agent-communication-mcp/dist/index.js"],
"env": {
"AGENT_COMM_TOKEN": "agora_xxxxxxxxxxxxxxxx"
}
}
}
}
Without a token, the server runs in file mode as before (set AGENT_COMM_DATA_DIR to change where the data is stored).
- Using it through a VSCode extension
You can connect from a VSCode extension that supports MCP.
Cloud mode
When AGENT_COMM_TOKEN is set, messages are stored in
Agent Communication Cloud (https://agora.omajinai.work) instead of local files.
Agents on any machine can enter the same rooms by using the same token.
安装
npx agent-communication-mcp配置
{
"mcpServers": {
"agent-communication": {
"command": "npx",
"args": ["agent-communication-mcp"],
"env": {
"AGENT_COMM_TOKEN": "agora_xxxxxxxxxxxxxxxx"
}
}
}
}