Skip to main content

A Model Context Protocol server providing access to RabbitMQ by LLMs

Project description

RabbitMQ MCP Server

A Model Context Protocol server implementation for RabbitMQ operation.

Features

Manage your RabbitMQ message brokers using AI agent

This MCP servers wraps admin APIs of a RabbitMQ broker as MCP tools. It also uses Pika to interact with RabbitMQ to operate at the message level. You can also specify a different RabbitMQ broker that you want to connect to mid-conversation (default is configured during server initialization).

Supports streamable HTTP with FastMCP's BearerAuthProvider

You can start a remote RabbitMQ MCP server by configuring your own IdP and 3rd party authorization provider.

Seamless integration with MCP clients

The package is available on PyPI, you can use uvx without having to fork and build the MCP server locally first.

Installation

PyPI

https://pypi.org/project/mcp-server-rabbitmq/

Use uvx directly in your MCP client config

{
    "mcpServers": {
      "rabbitmq": {
        "command": "uvx",
        "args": [
            "mcp-server-rabbitmq@latest",
            "--rabbitmq-host",
            "<hostname ex. test.rabbit.com, localhost>",
            "--port",
            "<port number ex. 5672>",
            "--username",
            "<rabbitmq username>",
            "--password",
            "<rabbitmq password>",
            "--api-port",
            "<port number for the admin API, default to 15671>",
            "--use-tls",
            "<true if uses amqps, false otherwise>"
        ]
      }
    }
}

From source

  1. Clone this repository.
{
    "mcpServers": {
      "rabbitmq": {
        "command": "uv",
        "args": [
            "--directory",
            "/path/to/repo/mcp-server-rabbitmq",
            "run",
            "mcp-server-rabbitmq",
            "--rabbitmq-host",
            "<hostname ex. test.rabbit.com, localhost>",
            "--port",
            "<port number ex. 5672>",
            "--username",
            "<rabbitmq username>",
            "--password",
            "<rabbitmq password>",
            "--use-tls",
            "<true if uses amqps, false otherwise>"
        ]
      }
    }
}

Roadmap

  1. Full feature parity with rabbitmqadmin
  2. Support RabbitMQ OAuth instead of basic authentication

Development

Setup Development Environment

# Clone the repository
git clone https://github.com/amazon-mq/mcp-server-rabbitmq.git
cd mcp-server-rabbitmq

# Install pre-commit hooks
pre-commit install

Running Tests

pytest

Code Quality

This project uses ruff for linting and formatting:

# Run linter
ruff check .

# Run formatter
ruff format .

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

amq_mcp_server_rabbitmq-2.2.0.tar.gz (77.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

amq_mcp_server_rabbitmq-2.2.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file amq_mcp_server_rabbitmq-2.2.0.tar.gz.

File metadata

  • Download URL: amq_mcp_server_rabbitmq-2.2.0.tar.gz
  • Upload date:
  • Size: 77.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for amq_mcp_server_rabbitmq-2.2.0.tar.gz
Algorithm Hash digest
SHA256 7a1253422dd145920c5dcf41aa3f3aeaf9e45c431ebb72bf0e46edea6f996066
MD5 d2377439f64f037caf13ff753639aa22
BLAKE2b-256 d274d3c3a6a0c065026a7435472acb29f84a2c3ab9f636b2cfbbb4b13fd86698

See more details on using hashes here.

Provenance

The following attestation bundles were made for amq_mcp_server_rabbitmq-2.2.0.tar.gz:

Publisher: release.yml on amazon-mq/mcp-server-rabbitmq

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file amq_mcp_server_rabbitmq-2.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for amq_mcp_server_rabbitmq-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 031de115340e107cca6dc3b7153d245156d4b10ffbfe8338bb0b154d3fd2e27f
MD5 e5ee92978c38f8aa6bf84dca3a9420b3
BLAKE2b-256 a92604db773e8838e5c91be46b191ccb267abf0321804af71a39e7f5f7119a29

See more details on using hashes here.

Provenance

The following attestation bundles were made for amq_mcp_server_rabbitmq-2.2.0-py3-none-any.whl:

Publisher: release.yml on amazon-mq/mcp-server-rabbitmq

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page