RabbitMQ MCP server: let Claude, Cursor and Copilot work with RabbitMQ

•6 min read•Product

RabbitMQ MCP server: let Claude, Cursor and Copilot work with RabbitMQ

AI coding agents are now part of how most developers work. They read your code, run your tests, query your database. But as soon as the problem involves RabbitMQ, they are blind: they cannot see that the orders queue has 40,000 messages and no consumer, or that half of your dead-letter queue failed with the same validation error.

Starting today, RabbitGUI 1.12 includes an MCP server. Your AI agent can now look at your RabbitMQ brokers, and use RabbitGUI's features, through the connections you already saved in the app.

What is an MCP server?

The Model Context Protocol (MCP) is an open standard that lets AI applications use external tools. An MCP server exposes a set of tools (here: "list queues", "estimate drain time", "republish messages"…), and any compatible client can call them: Claude Code, Claude Desktop, Cursor, VS Code with GitHub Copilot, Windsurf, and many more.

Instead of copy-pasting screenshots of the management UI into a chat, your agent queries RabbitMQ itself, and reasons about what it finds.

The problem with credentials

There are a few ways to give an agent access to RabbitMQ today: let it run rabbitmqctl or curl against the management API, or install an open-source RabbitMQ MCP server. They all share the same issue: the agent, or its configuration file, needs your RabbitMQ username and password. For a local broker, fine. For staging or production, you end up with credentials in a JSON file, in environment variables, or worse, pasted into a prompt.

RabbitGUI takes a different approach. You already saved your connections in RabbitGUI, and their passwords are stored encrypted on your machine. The MCP server lets agents use those connections by name:

"On staging, which queues have messages but no consumers?"

The agent calls list_queues with connection: "staging". RabbitGUI resolves the name, talks to RabbitMQ with the stored credentials, and returns the result. The agent never sees the password, the management URL credentials or the AMQP connection string. Every response is even scrubbed, so that a URL like amqp://user:password@host cannot leak through an error message.

You decide what the agent can do

Reading is harmless; purging a production queue is not. Every connection in RabbitGUI now has an agent access level:

  • Disabled: the connection is invisible to agents.
  • Read only (default): the agent can look at everything and explore dead-lettered messages, but cannot change anything.
  • Read & write: the agent can publish, create queues and bindings, republish messages and run destructive actions.

On top of that, destructive actions (purge, delete, republishing out of a dead-letter queue…) can require your approval: RabbitGUI pops up a native dialog that describes exactly what the agent is about to do, and nothing happens until you click Allow. A typical setup is production read only, staging read & write with approvals, and your local broker fully open.

More on that in permissions and security, and in our article on giving AI agents safe access to RabbitMQ.

Not just the management API

An agent with curl can list queues. What makes the RabbitGUI MCP server useful is that it exposes RabbitGUI's own features, the ones the management API does not have:

  • Dead-letter queue triage. Extract messages from a DLQ without removing them, group them by death reason, original queue or routing key, read the failing payloads, then republish them to their original exchange, with a dry run first and a throttle. See how to debug a dead-letter queue with AI.
  • Drain time estimates. "When will the backlog on invoices be gone?" The agent gets the same linear-regression forecast as the Forecast tab, with an ETA and the drain rate.
  • The health report. "Is anything wrong on production?" The agent runs the Health report and gets a ranked list of problems: missing consumers, growing queues, non-empty DLQs, unacked messages, alarms.
  • Routing simulation. "If I publish user.deleted to the events exchange, who receives it, and where does it end up if it is rejected?" The agent follows bindings, exchange-to-exchange routes, alternate exchanges and dead-letter exchanges, without publishing anything.
  • Live traffic sampling. "What kind of messages go through notifications right now?" The agent spies on the queue for a few seconds, without consuming anything, and summarizes what it saw.

And of course the basics: overview, vhosts, queues, exchanges, bindings, policies, publishing messages, creating queues and bindings. The full list of tools is in the documentation.

Whatever the agent does stays visible in RabbitGUI: messages it extracts appear in the Consume tab of the queue, messages it publishes appear in the publish history, and every tool call is listed in the activity log.

Set it up in two minutes

  • Update RabbitGUI to 1.12 or later.
  • On the connections screen, click Agent access (MCP) and turn the server on.
  • Copy the snippet for your agent. For Claude Code, it is a single command:
claude mcp add --transport http rabbitgui http://127.0.0.1:47672/mcp --header "Authorization: Bearer <token>"
  • Choose the access level of each connection.
  • Ask your agent: "List my RabbitGUI connections."

Snippets for Cursor, VS Code and Claude Desktop are in the app and in the setup guide.

Local, private, and under your control

The MCP server runs inside RabbitGUI, on your machine. It listens on 127.0.0.1 only, requires a secret token on every request, and refuses requests coming from web pages. Like the rest of RabbitGUI, your RabbitMQ data never goes through our servers: the agent talks to RabbitGUI, and RabbitGUI talks to your broker.

The model your agent uses does see what the tools return (queue names, metrics, and message bodies when you ask it to read messages). If your messages contain sensitive data, keep the corresponding connection disabled.

What you can ask

A few prompts our users tried first:

  • "Give me a health check of the production cluster and explain the top three problems."
  • "Why is email.send growing? Look at its consumers and its drain time."
  • "Triage orders.dlq: group the dead-lettered messages by reason, show me an example of each group and tell me which ones are safe to replay."
  • "Republish the messages from payments.dlq that failed with a timeout back to their original exchange, 20 per second. Do a dry run first."
  • "Which queues would receive a message published to events with routing key invoice.paid?"
  • "Create a quorum queue audit.events on my local broker, with a dead-letter exchange audit.dlx, and bind it to events with #.audit."

The MCP server is included in every RabbitGUI license. Download RabbitGUI and give your agent eyes on your message broker.

FAQ

Which AI tools work with the RabbitGUI MCP server?

Any MCP client that supports Streamable HTTP servers with a custom header: Claude Code, Cursor, VS Code (GitHub Copilot agent mode), Windsurf, and Claude Desktop through the mcp-remote bridge.

Does RabbitGUI need to be running?

Yes. The MCP server runs inside the RabbitGUI app. Once enabled, it starts automatically when you open RabbitGUI.

Can the agent see my RabbitMQ password?

No. Agents only know connection names. Credentials stay encrypted in RabbitGUI and are removed from every response, including error messages.

Can I give the agent read-only access to production?

Yes, and it is the default. Each connection has its own access level, and new connections are read only.

Is my data sent to RabbitGUI's servers?

No. The MCP server is local. Your agent's model provider receives the tool results, like any other tool your agent uses.

Give your AI agent a RabbitMQ superpower

Connect Claude Code, Cursor, VS Code or Claude Desktop to your brokers in one command, without sharing a single credential.

Connect my agent

Available on Windows, Mac, and Linux.

More articles like that

Introducing the Health report: every RabbitMQ problem, rankedProductIntroducing the Health report: every RabbitMQ problem, rankedRabbitGUI's new Health report scans all your RabbitMQ queues and ranks what needs attention, from queues without consumers to growing backlogs, dead-letter queues and node alarms.How we built a RabbitMQ desktop client with Electron, tRPC and SQLiteProductHow we built a RabbitMQ desktop client with Electron, tRPC and SQLiteThe architecture behind RabbitGUI. The Electron main process talks to RabbitMQ over the management API and AMQP, exposes a typed tRPC API over IPC, and keeps messages in a local SQLite database.We built our own license server. Here's why we're ditching itProductWe built our own license server. Here's why we're ditching itWe built our own license management backend for RabbitGUI. Here is why we are now moving to LicenseManager.dev, and what it changes for you.How to browse RabbitMQ messages without consuming themProductHow to browse RabbitMQ messages without consuming themRabbitMQ has no read-only API to browse a queue. Learn what the management UI's "Get messages" actually does, the side effects of requeueing, and how to inspect messages safely with RabbitGUI.How to spy on real-time queue traffic in RabbitMQ?ProductHow to spy on real-time queue traffic in RabbitMQ?Inspecting live messages flowing through a RabbitMQ queue is tricky because consuming is destructive. Learn how RabbitGUI creates a shadow queue to capture traffic without affecting your application.How to predict when a RabbitMQ queue will be empty?ProductHow to predict when a RabbitMQ queue will be empty?A step-by-step explanation of how to estimate backlog drain time for a RabbitMQ queue, from naive division to linear regression with adaptive windowing.