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.4.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.4.0-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for aliyun_mcp_server_rabbitmq-0.4.0.tar.gz
Algorithm Hash digest
SHA256 7b5eed8a8ec003070b37864919c51592d26251544728794670545dbc1a40d6f0
MD5 60283fdb60375744765508ca891a6361
BLAKE2b-256 b09ea9bfc4775d971af9546faab19d8b011f1ecddbbff7a8928c25995b53ec99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aliyun_mcp_server_rabbitmq-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 68bf0550eac3f06c4650b20509228b8677d05cd57db6103de0409cef6f159de6
MD5 4ae308b46dba2d27b8f97f6bba145f77
BLAKE2b-256 383123385e5de8d0ce1da772d4ade8d090801eb4e525088853d9b84c7355d816

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