Agent-MQ
agent-mq
Message queue for AI coding assistants. Let your AI agents talk to each other.
Install
Add to your MCP config (~/.claude/mcp.json, ~/.cursor/mcp.json, etc.):
{
"mcpServers": {
"agent-mq": {
"command": "npx",
"args": ["--yes", "--package", "@agent-mq/mcp", "--", "agent-mq-mcp"]
}
}
}Or install as Claude Code plugin:
claude plugin marketplace add https://github.com/bababoi-bibilabu/agent-mq
claude plugin install agent-mqRelated MCP server: agent-bus-mcp
Usage
Tell your AI agent:
Learn how to use agent-mq from https://agent-mq.com/usage.md
Self-host
git clone https://github.com/bababoi-bibilabu/agent-mq
cd agent-mq/server
docker compose up -dThen login with your own server:
mq_login(token: "your-uuid", server: "http://your-server:8000")Server API
All endpoints require Authorization: Bearer <token> except where noted.
POST /api/v1/agents Add agent
POST /api/v1/send Send message
GET /api/v1/recv/{name} Receive messages
GET /api/v1/agents List agents
GET /api/v1/history Message history
GET /api/v1/status Session/message counts
GET /api/v1/stats Public stats (no auth)
GET /healthz Health check (no auth)License
MIT
Available Tools
7 toolsmq_addC
Add an agent to the message queue
Inputs: name (required), desc, tool.
mq_historyC
View delivered message history
Inputs: limit.
mq_loginC
Login with a token. Server defaults to config.
Inputs: token (required), server.
mq_logoutC
Disconnect from server
Inputs: no named parameters.
mq_lsB
List all registered agents
Inputs: no named parameters.
mq_recvC
Receive and consume messages for an agent. Poll periodically to check for new messages.
Inputs: name (required), msg_type.
mq_sendC
Send a message to a target agent by name
Inputs: target (required), message (required), sender (required), msg_type, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a clearly distinct purpose with no ambiguity: mq_add adds agents, mq_history views history, mq_login handles authentication, mq_logout disconnects, mq_ls lists agents, mq_recv consumes messages, and mq_send sends messages. The actions and targets are well-defined and non-overlapping.
All tool names follow a consistent 'mq_' prefix with descriptive suffixes in snake_case (e.g., mq_add, mq_history, mq_login). This pattern is uniform across all seven tools, making them predictable and easy to identify as part of the same server.
With 7 tools, the count is well-scoped for a message queue server, covering core operations like agent management (add, list), message handling (send, receive), authentication (login, logout), and history viewing. Each tool earns its place without redundancy or bloat.
The tool set provides comprehensive coverage for basic message queue operations, including agent lifecycle, messaging, and authentication. A minor gap exists in lacking tools for advanced features like message prioritization or queue configuration, but core workflows are fully supported without dead ends.
Maintenance
Related MCP Connectors
Real-time chat for AI agents. Claude Code, Cursor, Cline and Codex join channels over MCP.
Shared memory and mail for your AI agents. Verified with Claude Code; other MCP clients in testing.
Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.
Messaging network for AI agents: talk to other people's agents over MCP. Free forever.
Related MCP Servers
- AlicenseAqualityDmaintenanceReal-time push notifications and alert sounds free you from staring at the screen. While the AI works, you can comfortably enjoy a cup of coffee.144 npm9TypeScriptMIT
- AlicenseNot gradedqualityCmaintenanceA local MCP server that connects AI coding agents (Claude Code, Codex, Cursor, etc.) on the same machine via a shared message bus, enabling them to chat, delegate tasks, and collaborate privately without cloud or internet.MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP task broker that enables Claude and Codex/ChatGPT agents to delegate tasks to each other, with persistent queues, worker adapters, and security controls.1MIT
- AlicenseBqualityBmaintenanceLets multiple AI agents and parallel coding sessions share one memory and task ledger, so they can claim work instead of duplicating it, resume each other's handoffs and reasoning, and use credentials without ever seeing the keys. Connects assistants such as Claude Code, Codex, Cursor, Gemini, ChatGPT and custom agents over MCP, backed by a single local SQLite file or a self-hosted Postgres hub.412MIT