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": "",
        "UV_INDEX_URL": "https://pypi.org/simple",
        "UV_EXTRA_INDEX_URL": "http://artlab.alibaba-inc.com/1/pypi/simple",
        "UV_INSECURE_HOST": "artlab.alibaba-inc.com"
      }
    }
  }
}

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.1.0.tar.gz (108.7 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.1.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for aliyun_mcp_server_rabbitmq-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dc58548163926f64793350ed6454ac57e65e40d4195cba1b7765d454d731e4a6
MD5 22e3bf545936e38d849ef92419856aa4
BLAKE2b-256 05b39ae4560203ab73f115e9ff661d08677f8ea18e30f9f677cc837c03c101d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aliyun_mcp_server_rabbitmq-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 29aac727dee86240e5df40cdb4498d91e16a0a36314cd67662a8844422db52f9
MD5 32edcce808be390c047aa1c067083a3f
BLAKE2b-256 86f7e11d1c99a9d92a7016e83dc2a3e79efcceaa53af40d3328f882c5dd42940

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