ahmedselimmansor-ctrl

Alibaba Cloud MCP Server

Updated

Alibaba cloud MCP server

Alibaba Cloud MCP Server

A comprehensive, high-performance Model Context Protocol (MCP) server for managing Alibaba Cloud resources.

This server enables AI assistants (like Claude, Cursor, and others) to seamlessly interact with Alibaba Cloud infrastructure using natural language. It features a Hybrid Architecture:

  1. Explicit Service Tools: Pre-configured, typed handlers for the most common services (ECS, VPC, RDS, RAM, ACK, SLB) to ensure rapid, error-free AI interactions.
  2. Universal API Invoker: A dynamic tool built on @alicloud/pop-core that can invoke any of the 10,000+ API endpoints across all Alibaba Cloud services, giving you true 100% cloud management coverage.

Features

  • ๐Ÿš€ Zero-Config Universal Management: Dynamically call any Alibaba Cloud RPC/ROA API.
  • ๐Ÿ“ฆ Explicit Typed Tools:
    • ECS: Manage Compute Instances (ecs_list_instances, ecs_start_instance)
    • VPC: Manage Networking (vpc_list, vpc_create)
    • RDS: Manage Databases (rds_list_instances)
    • RAM: Manage IAM & Security (ram_list_users)
    • ACK: Manage Kubernetes Clusters (ack_list_clusters)
    • SLB: Manage Load Balancers (slb_list)
  • ๐Ÿณ Docker Ready: Run safely in an isolated container.
  • ๐Ÿ›ก๏ธ Secure: Uses Zod for strict parameter validation and environment variables for credentials.

Prerequisites

  • Node.js 18+ (if running locally)
  • Docker (optional, for containerized execution)
  • Alibaba Cloud Access Key ID and Secret with appropriate IAM permissions.

Setup & Installation

Option 1: Running Locally

  1. Clone the repository and install dependencies:

    npm install
    
  2. Build the TypeScript source:

    npm run build
    
  3. Create a .env file in the root directory:

    ALIBABA_CLOUD_ACCESS_KEY_ID="your_access_key"
    ALIBABA_CLOUD_ACCESS_KEY_SECRET="your_access_secret"
    ALIBABA_CLOUD_REGION_ID="cn-hangzhou"
    

Option 2: Running with Docker

  1. Build the Docker image:
    docker build -t alibaba-cloud-mcp .
    

Configuring Your MCP Client

Claude Desktop

To integrate this server with Claude Desktop, add the following to your claude_desktop_config.json (usually located at %APPDATA%\Claude\claude_desktop_config.json on Windows or ~/Library/Application Support/Claude/claude_desktop_config.json on Mac):

If using Node.js locally:

{
  "mcpServers": {
    "alibaba-cloud": {
      "command": "node",
      "args": ["/absolute/path/to/Alibaba_cloud_MCP_server/dist/index.js"],
      "env": {
        "ALIBABA_CLOUD_ACCESS_KEY_ID": "your_access_key",
        "ALIBABA_CLOUD_ACCESS_KEY_SECRET": "your_access_secret",
        "ALIBABA_CLOUD_REGION_ID": "cn-hangzhou"
      }
    }
  }
}

If using Docker:

{
  "mcpServers": {
    "alibaba-cloud": {
      "command": "docker",
      "args": [
        "run", 
        "-i", 
        "--rm", 
        "-e", "ALIBABA_CLOUD_ACCESS_KEY_ID", 
        "-e", "ALIBABA_CLOUD_ACCESS_KEY_SECRET", 
        "-e", "ALIBABA_CLOUD_REGION_ID", 
        "alibaba-cloud-mcp"
      ],
      "env": {
        "ALIBABA_CLOUD_ACCESS_KEY_ID": "your_access_key",
        "ALIBABA_CLOUD_ACCESS_KEY_SECRET": "your_access_secret",
        "ALIBABA_CLOUD_REGION_ID": "cn-hangzhou"
      }
    }
  }
}

Note: Restart Claude Desktop after updating the configuration.

Security Warning

โš ๏ธ IMPORTANT: This MCP server is incredibly powerful, especially due to the aliyun_invoke_api tool which can manage any resource. Always adhere to the Principle of Least Privilege. Ensure that the IAM/RAM user associated with your Access Keys only has the minimum permissions necessary for the tasks you intend the AI to perform.

Architecture

Built using:

  • @modelcontextprotocol/sdk
  • @alicloud/pop-core
  • zod for validation
  • TypeScript

MCP Server ยท Populars

MCP Server ยท New

    uarlouski

    ๐Ÿš€ TestRail MCP Server

    AI-native MCP server connecting Claude, Cursor, Windsurf, and other AI assistants to TestRail โ€” manage test cases, runs, and results through natural-language conversation, with typed schemas built for LLMs.

    Community uarlouski
    metabase

    Metabase MCP Server

    The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

    Community metabase
    mindsdb

    USE CASES

    Platform dedicated to building an open foundation for applied Artificial Intelligence, designed for people seeking production-ready AI systems they can truly control, extend and deploy anywhere.

    Community mindsdb
    reflex-search

    Reflex

    Reflex - The instant, code-aware local search engine.

    Community reflex-search
    Licinexus

    @licinexusbr/mcp

    MCP server for Brazilian public procurement data (PNCP + Receita Federal). Maintained by Licinexus.

    Community Licinexus