Skip to main content

A Model Context Protocol server providing access to RabbitMQ by LLMs

Project description

RabbitMQ MCP Server

smithery badge

A Model Context Protocol server implementation for RabbitMQ. Enabling MCP client to interact with queues and topics hosted in a RabbitMQ instance.

Running locally with the Claude desktop app

Installing via Smithery

To install RabbitMQ MCP Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @kenliao94/mcp-server-rabbitmq --client claude

Try it online

https://smithery.ai/server/@kenliao94/mcp-server-rabbitmq

Manual Installation

  1. Clone this repository.
  2. Add the following to your claude_desktop_config.json file:
  • On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
  • On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
    "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>"
        ]
      }
    }
}
  1. Install and open the Claude desktop app.
  2. Try asking Claude to do a read/write operation of some sort to confirm the setup (e.g. ask it to publish a message to a queue). If there are issues, use the Debugging tools provided in the MCP documentation here.

Roadmap

  1. Expose admin API tools and pika SDK tools
  2. Support Streamable HTTP when it is GA in Python SDK
  3. Support OAuth 2.1 and use it with RabbitMQ OAuth
  4. Support Dynamic setting of broker info
  5. Publish to PyPI

Development

Setup Development Environment

# Clone the repository
git clone https://github.com/kenliao94/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

mcp_server_rabbitmq-2.0.0.tar.gz (61.9 kB view details)

Uploaded Source

Built Distribution

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

mcp_server_rabbitmq-2.0.0-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_rabbitmq-2.0.0.tar.gz.

File metadata

  • Download URL: mcp_server_rabbitmq-2.0.0.tar.gz
  • Upload date:
  • Size: 61.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for mcp_server_rabbitmq-2.0.0.tar.gz
Algorithm Hash digest
SHA256 cc0d0845a7781b1b34a47ce3b878ef4f786e2075989bb6468d6941f0a5cbefb0
MD5 110849cdf82b7a838f26e8f067e5d2ee
BLAKE2b-256 cf61cecec790d91c36fb73eb6c2479bfc749b6d6523f7c72993a45131436ce70

See more details on using hashes here.

File details

Details for the file mcp_server_rabbitmq-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_rabbitmq-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1c9994cb22a7cb01047062e3e075ebad6e50e1593962c61442f9872700267c2a
MD5 0462914d5086ab2d3dbc700fc2e4a7da
BLAKE2b-256 943df369e624b430c80b810ddd84f25861789b2f8c33346a4d8acf56adddff30

See more details on using hashes here.

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