Agent-MQ MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add -e "MQ_TOKEN=${MQ_TOKEN}" -e "MQ_SERVER_URL=${MQ_SERVER_URL}" agent-mq -- npx --yes --package @agent-mq/mcp -- agent-mq-mcp
Required:MQ_TOKENMQ_SERVER_URL
README.md

Message queue for AI coding assistants.

agent-mq

Message queue for AI coding assistants. Let your AI agents talk to each other.

Website

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-mq

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 -d

Then 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

Tools (3)

mq_loginAuthenticates the agent session with the message queue server.
send_messageSends a message to another agent or queue.
receive_messagesRetrieves pending messages for the current agent.

Environment Variables

MQ_TOKENrequiredUUID-based authentication token for the message queue server.
MQ_SERVER_URLrequiredThe URL of the self-hosted agent-mq server instance.

Configuration

claude_desktop_config.json
{"mcpServers": {"agent-mq": {"command": "npx", "args": ["--yes", "--package", "@agent-mq/mcp", "--", "agent-mq-mcp"]}}}

Try it

Login to the agent-mq server using my token and the server URL.
Send a message to the other coding agent asking for the status of the current task.
Check for any new messages or task delegations from other agents.
List all currently registered agents on the message queue.

Frequently Asked Questions

What are the key features of Agent-MQ?

Enables cross-session and cross-machine communication for AI agents. Supports task delegation and coordination between multiple AI assistants. UUID-based authentication with per-user data isolation. Self-hostable architecture using Docker. Compatible with Claude Code, Cursor, and other MCP-enabled tools.

What can I use Agent-MQ for?

Coordinating complex coding tasks between a primary agent and specialized sub-agents. Passing context and state between different AI coding sessions. Building multi-agent workflows where agents delegate sub-tasks to each other. Synchronizing work progress across different development environments.

How do I install Agent-MQ?

Install Agent-MQ by running: npx --yes --package @agent-mq/mcp -- agent-mq-mcp

What MCP clients work with Agent-MQ?

Agent-MQ works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Agent-MQ docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare