
Rabbit Mcp
io.github.lazogioPublished by GitHub account lazogiov3.0.0Updated Nov 3, 2026
Contract-first MCP server for RabbitMQ: one typed tool per message contract, safe error recovery.
Overview
Rabbit's local MCP server; no sign-in required; STDIO.
No AI overview yet: these facts come from the registry entry and the server itself.
Installation
In SourceWeft
- Open Rabbit Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
rabbit-mcp
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>andrequest_<contract>, validated against the contract first. - See: queues, messages (with fault details) and who consumes each contract.
- Recover: move messages from
_errorqueues 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 diffcatches wire-breaking changes in CI; roles, rate limits and audit for teams.
Install
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
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
required, nullability,[Description]and DataAnnotations go into the schema and are enforced.- Names follow MassTransit (
urn:message:Namespace:Type, exchangeNamespace:Type);UrnandExchangeoverride them. - Your contracts: a class library referencing the
RabbitMcp.Contractspackage, loaded withRabbitMcp__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).
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:
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 sendX-Api-Key. - JWT / OIDC:
RabbitMcp__JwtAuthority(https) +RabbitMcp__JwtAudience.
Roles (HTTP only; without roles every caller may use every enabled tool):
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.
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
mandatoryturn 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 ownconfirm=trueand 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.
Source: README.md at commit 64ee94f
Tools
0Version history
6- v3.0.0LatestNov 3, 2026
- v2.1.1Nov 1, 2026
- v2.1.0Oct 31, 2026
- v2.0.0Oct 30, 2026
- v1.0.3Oct 29, 2026
- v1.0.2Oct 25, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts