RabbitMQ MCP server
RabbitGUI includes a local MCP server (Model Context Protocol) that lets AI agents such as Claude Code, Cursor, VS Code Copilot or Claude Desktop work with your RabbitMQ brokers. Agents use the connections you already saved in RabbitGUI, by name: they never see your usernames, passwords or AMQP connection strings.
Once it is enabled, you can ask your agent things like:
- “List the queues on staging that have messages but no consumers.”
- “When will the
invoicesqueue on production be drained?” - “What is in
orders.dlq? Group the messages by death reason and tell me why they failed.” - “Republish the messages that expired in
payments.dlqback to their original exchange, 50 per second.” - “If I publish to
eventswith routing keyuser.created, which queues receive it?”
Why use RabbitGUI as your RabbitMQ MCP server
Credentials stay in RabbitGUI. Your connection passwords are stored and encrypted locally by RabbitGUI. The agent only knows the connection names, and every response is scrubbed so that a password or an amqp://user:password@ string never reaches the model, not even inside an error message.
You decide what each agent can do. Every connection has its own access level: disabled, read only, or read and write. Production can stay read only while your local broker is fully open. Destructive actions can require your approval in a native RabbitGUI dialog. See permissions and security.
Agents get RabbitGUI’s features, not only the raw API. On top of listing queues and exchanges, agents can extract and filter dead-lettered messages, republish them, estimate drain times, run the health report, simulate routing and sample live traffic. These are the same features you use in the app, so what the agent does shows up in RabbitGUI too: messages it extracts appear in the queue’s Consume tab.
Everything runs on your machine. The MCP server listens on 127.0.0.1 only, it is never exposed to your network, and your broker data does not go through any RabbitGUI server. The agent talks to RabbitGUI, and RabbitGUI talks to RabbitMQ, exactly like when you use the app. See security and privacy.
Enable the MCP server
- Open RabbitGUI and, on the connections screen, click Agent access (MCP).
- Turn on the switch at the top of the page. RabbitGUI starts the server and shows its address,
http://127.0.0.1:47672/mcpby default. - A secret token is generated the first time. Agents must send it with every request.
- Copy the configuration snippet for your agent from the tabs below the token, and connect your agent.
- In the Connections section, choose the access level of each connection.
RabbitGUI must be running for agents to connect. The server starts automatically with the app once it is enabled, and stops when you turn the switch off or quit RabbitGUI.
The MCP server requires an active RabbitGUI license. Without one, every tool call is refused with a message asking to activate the license in the app.
Change the port
If port 47672 is already used on your machine, type another port (between 1024 and 65535) and click Save. The server restarts on the new port. Remember to update the URL in your agent configuration.
Activity log
The Activity section lists the latest tool calls made by agents since RabbitGUI started: the time, the tool, the connection it targeted, whether it succeeded, failed or was denied, and how long it took. It is useful to understand what your agent actually did, or why a call was refused.