RabbitMQ MassTransit MCP Server
Provides tools for managing RabbitMQ queues, exchanges, bindings, and connections, with special support for MassTransit error queue parsing, fault analysis, and message republishing.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@RabbitMQ MassTransit MCP Server show faults in the order-service error queue"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
RabbitMQ MassTransit MCP Server
An MCP (Model Context Protocol) server for RabbitMQ with MassTransit intelligence — error queue parsing, fault analysis, and message republishing.
Built for teams debugging async messaging issues across .NET microservices. Goes beyond basic queue management by understanding MassTransit conventions: _error/_skipped queues, the message envelope format, and fault message parsing.
Features
18 tools for complete RabbitMQ management via Claude Code
MassTransit-aware: Automatically detects and parses
_error/_skippedqueues, fault envelopes, and message type URNsParsed error output: Exception types, messages, stack traces, consumer types, retry counts, and original payloads — extracted from
MT-Fault-*message headersRepublish from error: The killer feature — fetch faulted messages and republish them for reprocessing
Safe defaults: Mutative tools disabled by default, two-step confirmation for destructive operations
Related MCP server: RabbitMQ MCP Server
Quickstart
1. Add to your Claude Code config (~/.claude.json or project .claude.json):
{
"mcpServers": {
"rabbitmq": {
"command": "npx",
"args": ["-y", "@stevepic95/rabbitmq-masstransit-mcp@latest"],
"env": {
"RABBITMQ_HOST": "your-rabbitmq-host",
"RABBITMQ_USERNAME": "your-username",
"RABBITMQ_PASSWORD": "your-password"
}
}
}
}2. Restart Claude Code to load the new MCP server.
3. Start using it. Ask Claude things like:
"Are there any error queues with messages?"
"Show me the faults in the submit-order error queue"
"What queues have no consumers?"
"How many messages are in the report queue?"
That's it. The 13 read-only tools are available immediately — no flags needed.
To enable write operations (purge, delete, publish, republish), set
"ALLOW_MUTATIVE_TOOLS": "true"in the env config.
Installation
npx @stevepic95/rabbitmq-masstransit-mcp@latestClaude Code Configuration
Add to your .claude.json under mcpServers:
{
"mcpServers": {
"rabbitmq": {
"command": "npx",
"args": ["-y", "@stevepic95/rabbitmq-masstransit-mcp@latest"],
"env": {
"RABBITMQ_HOST": "your-rabbitmq-host",
"RABBITMQ_PORT": "15672",
"RABBITMQ_USERNAME": "your-username",
"RABBITMQ_PASSWORD": "your-password",
"RABBITMQ_VHOST": "/",
"RABBITMQ_SSL": "false",
"ALLOW_MUTATIVE_TOOLS": "false"
}
}
}
}For local development:
{
"mcpServers": {
"rabbitmq": {
"command": "node",
"args": ["/path/to/rabbitmq-masstransit-mcp/dist/index.js"],
"env": {
"RABBITMQ_HOST": "localhost",
"RABBITMQ_USERNAME": "guest",
"RABBITMQ_PASSWORD": "guest"
}
}
}
}Configuration
Variable | Required | Default | Description |
| Yes | — | RabbitMQ Management API hostname |
| No |
| Management API port |
| Yes | — | Authentication username |
| Yes | — | Authentication password |
| No |
| Default virtual host |
| No |
| Use HTTPS for Management API |
| No |
| Enable mutative tools (purge, delete, publish, republish, move) |
You can also enable mutative tools via CLI flag: --allow-mutative-tools
Tools
Read-Only (13 tools) — Always available
Tool | Description |
| Cluster stats: queue totals, connection counts, message rates |
| List queues with depth, consumer count, rates. Filter by vhost, name pattern |
| Detailed queue stats: depth, rates, consumers, memory, policy |
| List exchanges. Filter by vhost, type |
| Exchange details and bindings |
| List bindings for a queue or exchange |
| Active connections with client info |
| Active consumers with queue assignments |
| Browse messages without consuming (non-destructive) |
| Find all |
| Find all |
| Browse error queue messages with parsed fault details |
| Quick health check: no consumers, growing depth, high error counts |
Mutative (5 tools) — Require ALLOW_MUTATIVE_TOOLS=true
Tool | Description |
| Purge all messages from a queue |
| Delete a queue |
| Publish a message to an exchange |
| Republish faulted messages from |
| Move messages from one queue to another |
MassTransit Intelligence
Error Queue Parsing
peek_errors doesn't just dump raw JSON — it reads MT-Fault-* headers that MassTransit attaches when moving messages to error queues, giving you everything you need to debug the failure:
Queue: submit-order_error (3 messages)
Message 1:
Faulted: 2026-02-15T14:30:05Z
Reason: fault
Message Type: MyApp.Messages.OrderSubmitted
Consumer: MyApp.Consumers.SubmitOrderConsumer
Exception: Microsoft.Data.SqlClient.SqlException - "Arithmetic overflow error converting numeric to data type numeric."
Retry Count: 5
Stack Trace:
at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(...)
at MyApp.Data.OrderRepository.GetFees(Int32 orderId) in /src/OrderRepository.cs:line 35
at MyApp.Services.OrderService.Process(Int32 id) in /src/OrderService.cs:line 51
at MyApp.Consumers.SubmitOrderConsumer.Consume(ConsumeContext`1 context) in /src/SubmitOrderConsumer.cs:line 11
Original Payload: { "orderId": "abc-123", "amount": 99.99 }
Source Host: order-service-swrm-app1b-p02 / order-service (PID 1)
Assembly: order-service v1.0.3.0 (.NET 8.0.8)Republish from Error (Two-Step)
The highest-value tool for debugging. First call previews the messages:
> republish_from_error(errorQueue: "submit-order_error", count: 3)
Preview: 3 message(s) from "submit-order_error" ready to republish:
[... parsed fault details ...]
To republish these messages, call again with confirm=true and count=3.Second call with confirm: true actually consumes and republishes:
> republish_from_error(errorQueue: "submit-order_error", count: 3, confirm: true)
Republished 3/3 message(s) from "submit-order_error".Queue Health Check
Quick overview of potential issues across all queues:
> get_queue_health()
⚠ Queues with NO consumers and messages (2):
order-processing — 150 message(s)
notification-sender — 42 message(s)
✗ Error queues with messages (3 queues, 89 total):
submit-order_error — 45 message(s)
payment-process_error — 32 message(s)
email-send_error — 12 message(s)
△ High depth queues (>1000 messages, 1):
analytics-events — 15234 message(s), 2 consumer(s)Requirements
Node.js >= 18.0.0
RabbitMQ with Management Plugin enabled (port 15672)
License
MIT
Available Tools
13 toolsget_exchangeB
Get exchange details and its bindings (both source and destination).
Inputs: name (required), vhost.
get_overviewA
Get RabbitMQ cluster overview: queue totals, connection counts, message rates, and version info
Inputs: no named parameters.
get_queueA
Get detailed stats for a specific queue: depth, rates, consumers, memory, policy, arguments.
Inputs: name (required), vhost.
get_queue_healthA
Quick health check: find queues with no consumers, growing depth, or high error counts. Identifies potential issues.
Inputs: vhost, minMessages.
list_bindingsA
List bindings for a specific queue or exchange.
Inputs: target (required), targetType (required), vhost.
list_connectionsA
List active RabbitMQ connections with client info, state, and channel count.
Inputs: no named parameters.
list_consumersA
List active consumers with their queue assignments, prefetch, and connection info.
Inputs: vhost.
list_error_queuesB
Find all MassTransit _error queues with message counts. Helps identify services with unprocessed failures.
Inputs: vhost, nonEmpty.
list_exchangesA
List exchanges with type and binding info. Filter by vhost, name pattern, or type.
Inputs: type, vhost, namePattern.
list_queuesA
List queues with message depth, consumer count, and rates. Filter by vhost and name pattern.
Inputs: vhost, sortBy, namePattern.
list_skipped_queuesA
Find all MassTransit _skipped queues with message counts. Skipped messages indicate routing or serialization issues.
Inputs: vhost, nonEmpty.
peek_errorsA
Browse error queue messages with parsed MassTransit fault details: exception type, message, stack trace, original payload, and source host.
Inputs: queue (required), count, vhost.
peek_messagesA
Browse messages in a queue without consuming them (non-destructive). Parses MassTransit envelopes when detected.
Inputs: queue (required), count, vhost.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Each tool targets a distinct RabbitMQ resource or action: overview, queues, exchanges, bindings, messages, connections, consumers, error/skipped queues, and health. Even the two peek tools are clearly separated by normal vs. error queues with different decoding purposes.
All tool names follow a consistent verb_noun pattern using snake_case: get_*, list_*, peek_*. There is no mixing of verb styles or casing conventions.
13 tools is well within the ideal range for a monitoring-oriented server. Each tool earns its place by covering a distinct observability or troubleshooting need without redundancy.
The observability workflow is well covered: discover queues/exchanges/bindings, inspect consumers/connections, peek messages, and surface MassTransit error/skipped queues with health findings. Minor management gaps like queue/exchange creation or purge/replay operations exist, but they appear to be outside the intended read-only monitoring scope.
Maintenance
Related MCP Connectors
MCP server for Sentry - error monitoring, issue tracking, and debugging for AI assistants
Syslog receiver and MCP server for homelab log intelligence.
Syslog receiver and MCP server for homelab log intelligence.
MCP server for customer-io
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server for RabbitMQ that exposes the RabbitMQ HTTP API as tools, enabling natural language interaction with RabbitMQ management.100166 npm1MIT
- FlicenseCqualityDmaintenanceEnables management of RabbitMQ clusters, queues, exchanges, bindings, users, and messages through natural language in chat interfaces, using the MCP protocol.201-
- -licenseNot gradedqualityNot gradedmaintenanceMCP server that parses stack traces and logs to generate deduplicated issue drafts with severity, repro steps, and owner guesses.-
- AlicenseAqualityDmaintenanceAn MCP server for auditing automation health, finding failures, stale logs, and non-functional endpoints that report success while quietly failing.7MIT