Skip to content
MCP server
Registry

rabbit-mcp MCP Server

Contract-first MCP server for RabbitMQ: one typed tool per message contract, safe error recovery.

rabbit-mcp scores 66 (Good), licensed MIT and written in C#. It installs as a local process. It declares 6 tools. Filed under Uncategorized. GitHub shows 0 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by lazogioMITC#0 stars
Trust score
66Good
Trust score 66 of 100, Good

Good trust

66 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 66 comes from

22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity0 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 0 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "lazogio-rabbit-mcp": {      "command": "dnx",      "args": [        "RabbitMcp.Server"      ],      "env": {        "RabbitMcp__Uri": "YOUR_RabbitMcp__Uri",        "RabbitMcp__EnablePublish": "",        "RabbitMcp__EnableRepublish": "",        "RabbitMcp__EnableTopology": "",        "RabbitMcp__HumanConfirmation": "required",        "RabbitMcp__ManagementUri": "",        "RabbitMcp__ContractAssemblies": "",        "RabbitMcp__ContractFiles": ""      }    }  }}

Environment variables

NameRequiredNotes
RabbitMcp__UriSecretRequiredAMQP URI of the broker, e.g. amqp://user:pass@localhost:5672/vhost.
RabbitMcp__EnablePublishOptionaltrue to enable the publish_*/request_* tools (off by default).
RabbitMcp__EnableRepublishOptionaltrue to enable republish_from_error / dead_letter_from_error (off by default).
RabbitMcp__EnableTopologyOptionaltrue to enable declare_exchange / declare_queue (off by default).
RabbitMcp__HumanConfirmationOptionalrequired (default): changes and replies need the person's OK in the client's dialog, refused when it cannot ask. auto: then the model's own call counts.
RabbitMcp__ManagementUriOptionalRabbitMQ Management API, e.g. http://localhost:15672 (list_queues, contract_consumers).
RabbitMcp__ContractAssembliesOptionalYour [MessageContract] DLLs (";"-separated). Empty: built-in sample contracts.
RabbitMcp__ContractFilesOptionalAsyncAPI files (YAML/JSON) whose messages become contracts (";"-separated).
RabbitMcp__TransportRequiredstdio for a local client (the image defaults to http).
RabbitMcp__UriSecretRequiredAMQP URI of the broker, reachable from the container.

Tools6Tool docs quality grade C

All capabilities
  • Parks messages that can never succeed in <queue>dead, with a reason

  • Finds a message by id or text and tells which queue it is in

  • Reads a RabbitMQ stream from first, last, an offset or a time (10m)

  • Audit: "who republished yesterday?"

  • Moves messages back from an error or dead-letter queue: preview, then confirm=true. Filters (exceptionType, contract, since …) for incidents

  • Sends a fixed copy of a failed message and parks the original

About

rabbit-mcp

CI License: MIT NuGet

English · ქართული

An MCP server for RabbitMQ built on message contracts (.NET 10). Each contract becomes a typed tool whose input schema is the contract itself. Messages use the MassTransit wire format, so MassTransit services receive them as they are; services without MassTransit get plain JSON. The server itself does not depend on MassTransit.

  • Send: publish_<contract> and request_<contract>, validated against the contract first.
  • See: queues, messages (with fault details) and who consumes each contract.
  • Recover: move messages from _error queues back, fix and resend them, or park poison messages. Nothing is ever deleted.
  • Answer: in responder mode the model answers requests sent by your services.
  • Protect: contracts diff catches wire-breaking changes in CI; roles, rate limits and audit for teams.

Install

WayHow
BinaryReleases: self-contained for Linux, Windows and macOS. macOS: xattr -d com.apple.quarantine rabbit-mcp
.NET toolNuGet: dotnet tool install -g RabbitMcp.Server, or without installing: dnx RabbitMcp.Server --yes (from the first release)
Dockerghcr.io/lazogio/rabbit-mcp — HTTP mode, see For teams
Sourcedotnet publish src/RabbitMcp.Server -c Release -o out (never dotnet run: it writes to stdout)
claude mcp add rabbit-mcp \
  -e RabbitMcp__Uri=amqp://guest:guest@localhost:5672/ \
  -e RabbitMcp__EnablePublish=true \
  -- /full/path/to/rabbit-mcp

Claude Desktop: the same as "command" and "env" in claude_desktop_config.json. Local RabbitMQ: docker compose up -d.

Let Claude set it up: copy docs/skills/rabbit-mcp-setup to ~/.claude/skills/ and ask "set up rabbit-mcp".

Try it: samples/Shop starts RabbitMQ, PostgreSQL, a MassTransit shop and rabbit-mcp with one command, and walks through orders, error recovery and approvals.

Tools

ToolWhat it doesEnabled by
list_contracts, validate_messageContracts and their details; check JSON without sendingalways
queue_stats, peek_messagesQueue counts; messages without removing them (payload, contract check, fault, x-death)always
find_messageFinds a message by id or text and tells which queue it is inalways
read_streamReads a RabbitMQ stream from first, last, an offset or a time (10m)always
list_queues, contract_consumersQueues; which queues a contract reaches and who consumes itManagementUri
recent_activityAudit: "who republished yesterday?"AuditLogPath
publish_<contract>, request_<contract>Publishes an event / sends a request and returns the replyEnablePublish
republish_from_errorMoves messages back from an error or dead-letter queue: preview, then confirm=true. Filters (exceptionType, contract, since …) for incidentsEnableRepublish
dead_letter_from_errorParks messages that can never succeed in <queue>_dead, with a reasonEnableRepublish
resend_correctedSends a fixed copy of a failed message and parks the originalEnableRepublish + EnablePublish
declare_exchange, declare_queueCreates a missing exchange / queue, optionally with a binding; never changes or deletes oneEnableTopology
pending_requests, reply_<response>, reject_requestRequests from services waiting for an answerRespondTo

Results are structured (outputSchema); errors say what to do next. Prompts diagnose_errors, investigate_message, review_approvals and contract_health walk through common tasks, and every contract is a resource contract://<Name>.

Contracts

// Event → publish_payment_captured
[MessageContract("Payment was captured by the PSP.", Version = 1)]
public sealed record PaymentCaptured
{
    [Description("Order the payment belongs to.")]
    public required Guid OrderId { get; init; }

    [Range(typeof(decimal), "0.01", "1000000")]
    public required decimal Amount { get; init; }
}

// Request → request_get_order_status
[MessageContract("Asks for the current status of an order.",
    Responses = new[] { typeof(OrderStatus), typeof(OrderNotFound) })]
public sealed record GetOrderStatus
{
    public required Guid OrderId { get; init; }
}
  • required, nullability, [Description] and DataAnnotations go into the schema and are enforced.
  • Names follow MassTransit (urn:message:Namespace:Type, exchange Namespace:Type); Urn and Exchange override them.
  • Your contracts: a class library referencing the RabbitMcp.Contracts package, loaded with RabbitMcp__ContractAssemblies=/path/Billing.Contracts.dll.

Services without MassTransit — Format = MessageFormat.Raw: the body is plain JSON, metadata goes into AMQP properties, and you set Exchange and/or RoutingKey. Requests use RabbitMQ RPC (reply_to + correlation_id; the reply type in the AMQP type).

[MessageContract("Asks the shipping desk for a quote.", Format = MessageFormat.Raw, RoutingKey = "shipping-quotes",
    Responses = new[] { typeof(ShippingQuote), typeof(ShippingUnavailable) })]
public sealed record GetShippingQuote { … }

Without C# (AsyncAPI) — RabbitMcp__ContractFiles=warehouse.yaml: every message of an AsyncAPI 3.0 or 2.x file becomes a tool with the file's JSON Schema; routing comes from the AMQP bindings, x-rabbit-mcp: { format: masstransit } for MassTransit services. Example: samples/asyncapi/warehouse.yaml. rabbit-mcp contracts asyncapi Billing.Contracts.dll exports C# contracts.

Compatibility check — compare two builds (or two AsyncAPI files) in CI; exit code 1 on breaking changes:

rabbit-mcp contracts diff old/Billing.Contracts.dll new/Billing.Contracts.dll
# BREAKING OrderPlaced customer: Type changed from string to number.
# WARNING  OrderPlaced: Breaking change without a version bump (still v1).

Request/response

request_<contract> waits for the reply (timeout 1–120 s) and returns responded, faulted or timeout, with the reply checked against its contract.

Responder: RabbitMcp__RespondTo=ApproveLargeOrder lets your service ask and the model answer. Requests appear in pending_requests; the model answers with reply_<response> or reject_request (the requester gets a RequestFaultException), and the person confirms each answer (HumanConfirmation). Requests are kept in memory; one instance per ClientName answers, others stand by.

For teams (HTTP)

RabbitMcp__Transport=http serves /mcp (and /healthz). It refuses to start without authentication:

  • API keys: RabbitMcp__ApiKeys="alice:KEY1;ci:KEY2" (≥ 32 characters); clients send X-Api-Key.
  • JWT / OIDC: RabbitMcp__JwtAuthority (https) + RabbitMcp__JwtAudience.
docker run -d -p 5080:5080 \
  -e RabbitMcp__Uri=amqp://user:pass@rabbit:5672/ \
  -e RabbitMcp__ApiKeys="team:$(openssl rand -base64 32)" \
  -e RabbitMcp__ContractAssemblies=/contracts/Billing.Contracts.dll -v ./contracts:/contracts:ro \
  ghcr.io/lazogio/rabbit-mcp:1.0

Roles (HTTP only; without roles every caller may use every enabled tool):

RabbitMcp__Roles__viewer="read"
RabbitMcp__Roles__operator="read;publish:Order*;request;republish:*_error"
RabbitMcp__UserRoles="alice=operator;ci=viewer"
RabbitMcp__DefaultRoles="viewer"

Permissions: read, publish, request, republish, respond, topology, *; patterns limit them by contract, queue or (topology) exchange/queue name. Users are matched by API key name, token user or the JWT roles claim. Callers see only the tools they may use, and each call is checked again.

Configuration

Environment variable RabbitMcp__<Option> or appsettings.json. Lists are ;-separated, * is a wildcard.

OptionDefaultDescription
Uriamqp://guest:guest@localhost:5672/AMQP URI, vhost at the end
ContractAssemblies / ContractFiles—Contract DLLs / AsyncAPI files. Empty: built-in samples
ManagementUri—Management API, e.g. http://localhost:15672
EnablePublish / EnableRepublishfalseAllow sending / moving messages
EnableTopology / TopologyAllow / TopologyDenyfalse / — / —Allow creating exchanges and queues / names that may / may never be created
TopologyArgumentsDLX, alternate exchange, single active consumerx-arguments the declare tools accept (* any, none); TTL and max-length drop messages, so add them deliberately
TopologyRulesrequire-dead-letter;check-references;protect-masstransitSafety rules of the declare tools (none for none); opt-in bind-existing, templates-only
TopologyTemplates__<name>—Named settings the declare tools' template uses, e.g. kind=queue;type=quorum;x-dead-letter-exchange=billing.dlx
PublishAllow / PublishDeny—Contracts that may / may never be sent
DeadLetterQueue{queue}_deadWhere poison messages are parked
RespondTo / MaxPendingRequests— / 100Responder contracts / waiting-request limit
HumanConfirmation / ConfirmToolsrequired / recovery, declare and reply toolsThe person confirms changes and replies in the client's dialog (required refuses when it cannot ask; auto then trusts the model, off always does)
AuditLogPath / AuditIncludePayload— / falseAudit file (JSON Lines) / include message bodies
MaxMessagesPerCall / MaxBulkMessages / MaxPayloadChars50 / 1000 / 16000Limits
PublishTimeoutSeconds30How long a send or move waits for the broker's confirm (1-300)
RateLimits—Changes per caller, e.g. publish:100/h;*:1000/d
Transport / HttpUrls / HttpPathstdio / http://localhost:5080 / /mcpTransport
ApiKeys, JwtAuthority, JwtAudience, JwtScopes—HTTP authentication
Roles__<role>, UserRoles, DefaultRoles—Roles
ClientName, HttpPublicUrl, HttpAllowedOrigins, HttpAllowAnonymous, ExchangeCacheSeconds, JwtRolesClaimRarely needed

OpenTelemetry: set OTEL_EXPORTER_OTLP_ENDPOINT; traces join the MassTransit consumer's trace.

Guarantees

  • No silent loss: invalid messages are not sent; publisher confirms and mandatory turn an undeliverable message into an error.
  • Safe moves: a message leaves the error queue only after the broker confirmed its new copy; the body never changes.
  • Nothing is deleted: poison messages are parked with every header, and can be brought back; exchanges and queues are only ever created. Use RabbitMQ 4: on 3.x quorum queues with a delivery limit, peeking counts towards the limit and can drop a message.
  • A person confirms: clients with MCP elicitation (e.g. Claude Code over stdio) show a dialog with the server's own preview before anything moves or a service's request is answered, and only the previewed messages move. Clients without it, and stateless HTTP, are refused unless you set HumanConfirmation=auto (the model's own confirm=true and replies then count, and a message it reads could talk it into one). A client that answers these dialogs automatically (e.g. by asking the model) defeats them.
  • Audited: every send, move and answer — including refused ones — with the user.
  • Untrusted content: message headers never redirect where messages go; passwords never appear in logs or errors.

License

MIT. Development, tests and releases: CONTRIBUTING.md.

Frequently asked questions

What is rabbit-mcp MCP Server?

Contract-first MCP server for RabbitMQ: one typed tool per message contract, safe error recovery.

How do I install rabbit-mcp MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. rabbit-mcp MCP Server runs locally from the NuGet package RabbitMcp.Server with the command dnx RabbitMcp.Server.

Is rabbit-mcp MCP Server free and open source?

Yes. rabbit-mcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does rabbit-mcp MCP Server support remote (HTTP) connections?

No remote endpoint is listed for rabbit-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does rabbit-mcp MCP Server provide?

rabbit-mcp MCP Server provides 6 tools, including dead_letter_from_error, find_message, read_stream, and recent_activity. See the full tool list for descriptions and parameters.

How is rabbit-mcp MCP Server's trust score calculated?

rabbit-mcp MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server