Skip to main content
Glama
MNS MCP Manager

MNS MCP Manager

by Houlong66

MNS MCP Server

MNS MCP Manager 是一个基于阿里云消息服务(MNS)的管理工具。通过 MCP 框架实现,用户可以通过 MCP Host 配置文件轻松集成并使用。

功能特性

  • 创建队列:支持动态创建 MNS 队列。

  • 删除队列:支持删除指定队列。

  • 发送消息:向指定队列发送消息。

  • 接收消息:从指定队列接收并删除消息。

  • 列出队列:支持按前缀过滤列出所有队列。


Related MCP server: Minecraft Ops MCP

环境要求

  • Python 3.8+

  • 阿里云 MNS SDK (aliyun-mns-sdk)


安装与配置

1. 克隆项目

git clone https://github.com/Houlong66/mns-mcp-server.git
cd mns-mcp-server

2. 配置 MCP Servers

在 MCP Host 的配置文件中添加以下内容以注册 MNS MCP Server 服务器:

{
  "mcpServers": {
    "mns-mcp-server": {
      "command": "/absolute/path/to/uv",
      "args": [
        "--directory",
        "/absolute/path/to/mns-mcp-server",
        "run",
        "server.py"
      ],
      "env": {
        "MNS_ACCESS_KEY_ID": "your-access-key-id",
        "MNS_ACCESS_KEY_SECRET": "your-access-key-secret",
        "MNS_ENDPOINT": "your-mns-endpoint"
      }
    }
  }
}

配置说明:

  • command: 启动服务器的 uv 路径。

  • env: 配置阿里云 MNS 的访问密钥和端点信息。

将 your-access-key-id、your-access-key-secret 和 your-mns-endpoint 替换为您的实际值。

Available Tools

5 tools
create_mns_queueC
创建一个 MNS 队列。

Args:
    queue_name (str): 队列名称。

Returns:
    str: 创建结果信息。

Inputs: queue_name (required).

delete_queueB
删除 MNS 队列。

Args:
    queue_name (str): 队列名称。

Returns:
    str: 删除结果信息。

Inputs: queue_name (required).

list_queuesA
获取给定前缀的所有队列。如果未提供前缀,则列出所有队列。

Args:
    prefix (str): 队列名称的前缀,默认为空字符串。

Returns:
    List[str]: 包含队列信息的列表,每条信息格式为 "QueueName: <name>, QueueURL: <url>"。

Inputs: prefix.

receive_and_delete_messagesA
接收并删除队列中的消息。

Args:
    queue_name (str): 队列名称。
    wait_seconds (int): 长轮询等待时间(秒)。

Returns:
    List[str]: 收到的消息列表。

Inputs: queue_name (required), wait_seconds.

send_messageB
发送消息到指定队列。

Args:
    queue_name (str): 队列名称。
    message_body (str): 消息内容。

Returns:
    str: 发送结果信息。

Inputs: queue_name (required), message_body (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool clearly targets a distinct operation: create, delete, list, send, and receive/delete. There is no overlapping functionality or ambiguity in purpose.

    Naming Consistency3/5

    Names generally follow a verb_noun pattern, but there are inconsistencies: 'create_mns_queue' includes 'mns' while 'delete_queue' and 'list_queues' do not, and 'receive_and_delete_messages' is a compound verb phrase. Still, the overall style is readable and predictable.

    Tool Count5/5

    With 5 tools, the set is well-scoped for core MNS queue management. Each tool serves a necessary function without redundancy or bloat.

    Completeness4/5

    The set covers the essential lifecycle: create, list, delete, send, and receive/delete messages. Missing operations like queue attribute management or purging are minor gaps that agents can typically work around.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      Not graded
      maintenance
      A service discovery and proxy for MCP servers that enables registration, discovery, and execution of tools on remote MCP servers. Uses vector-based similarity search through Alibaba Cloud services to intelligently route requests to appropriate MCP services.
      3
      -
    • A
      license
      B
      quality
      D
      maintenance
      An MCP server for managing and operating Minecraft servers through multiple backend protocols including MCSManager API, RCON, and MSMP. It provides tools for instance lifecycle management, file operations, console commands, player administration, and server configuration with built-in security controls.
      71
      2
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      MCP server for RabbitMQ with full SSL/CA certificate support, enabling queue, exchange, binding, and message management operations.
      16
      Apache 2.0
    • A
      license
      C
      quality
      D
      maintenance
      Enables AI assistants to manage ActiveMQ message brokers through MCP tools, supporting queue and topic operations, dynamic connection management, message browsing, and health monitoring.
      22
      25 npm
      1
      MIT