Skip to main content

A Model Context Protocol server for Aliyun RabbitMQ

Project description

Aliyun RabbitMQ MCP Server

一个用于阿里云 RabbitMQ 的 Model Context Protocol (MCP) 服务器,允许 LLM 通过 MCP 协议管理和操作阿里云 RabbitMQ 资源。

如何运行 MCP Server

本文档说明如何将 server.py 作为 MCP server 运行起来。

前置条件

  1. 安装依赖(如果还没有安装):

    # 使用 uv(推荐)
    uv sync
    
    # 或使用 pip
    pip install -e .
    
  2. 配置阿里云凭据(通过环境变量):

    export ALIBABA_CLOUD_ACCESS_KEY_ID="你的AccessKeyID"
    export ALIBABA_CLOUD_ACCESS_KEY_SECRET="你的AccessKeySecret"
    

MCP 客户端配置

Cursor 配置

通过配置文件配置

在项目根目录下创建 .cursor/mcp.json 文件(如果目录不存在,需要先创建),或在用户目录下创建 ~/.cursor/mcp.json

方案 1:使用 uv 运行(需要设置 PYTHONPATH)

{
  "mcpServers": {
    "aliyun-rabbitmq": {
      "command": "/pathTo/aliyun-mcp-server-rabbitmq/.venv/bin/python",
      "args": ["-m", "src.server"],
      "cwd": "/pathTo/aliyun-mcp-server-rabbitmq" 
    }
  }
}

方案 2:使用已安装的命令(推荐,最简单)

项目已经发布到阿里内部仓库,可以使用下列方式直接依赖。

{
  "mcpServers": {
    "aliyun-rabbitmq": {
      "command": "uvx",
      "args": [
        "aliyun-mcp-server-rabbitmq"
      ],
      "env": {
        "CONNECTION_STRING": ""
      }
    }
  }
}

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

aliyun_mcp_server_rabbitmq-0.3.0.tar.gz (113.1 kB view details)

Uploaded Source

Built Distribution

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

aliyun_mcp_server_rabbitmq-0.3.0-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file aliyun_mcp_server_rabbitmq-0.3.0.tar.gz.

File metadata

File hashes

Hashes for aliyun_mcp_server_rabbitmq-0.3.0.tar.gz
Algorithm Hash digest
SHA256 1bc1e172d6caac6a0a6cfcfd9d07c4467367a8f0f4579c460dac86f7435f6104
MD5 fd87d5819a973dccfb67f404e10c25a8
BLAKE2b-256 6480a4f53dbae2174d9fd3acbb4663eca6131c702bad4831ec6324f7d975561d

See more details on using hashes here.

File details

Details for the file aliyun_mcp_server_rabbitmq-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aliyun_mcp_server_rabbitmq-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ff4bacdebc9f21e37ab0aca1906dbea77a3069deadd15ad31999005785f3e5a
MD5 c44a2172a77e0b1cc3c34c4f3e7ac88a
BLAKE2b-256 ca566c8b2e75041ce0f43f1b8c3e67795590d08da240b8219be329020d14ddf6

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