mcp-server-esa

aliyun/mcp-server-esa

3.4

If you are the rightful owner of mcp-server-esa and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

An MCP server to conveniently use various Alibaba Cloud ESA services.

ESA MCP Server

npm version

MCP server for Alibaba Cloud ESA — deploy to the edge, manage DNS, certificates, and Edge Routines, all from your AI-powered IDE.

|

Features

  • 🚀 Pages — One-command deploy HTML or static folders (dist/, build/) to the edge
  • Edge Routine — Full lifecycle management: create, commit, deploy, route, and tear down
  • 🌐 Site — DNS records, SSL certificates, IPv6, managed transforms, and site configuration
  • 🧩 Modular — Load all 40+ tools or pick only the module you need
  • 🔌 Works everywhere — Cursor, Claude Desktop, Cline, and any MCP-compatible client

Quick Start

Prerequisites

  1. Get your AccessKey ID and Secret from the Alibaba Cloud AccessKey page
  2. Enable the Edge Routine service

Configuration

Add to your MCP client config (e.g., Cursor ~/.cursor/mcp.json, Claude Desktop, Cline):

Pages (recommended) — deploy static sites to the edge in seconds:

{
  "mcpServers": {
    "esa-pages": {
      "command": "npx",
      "args": ["-y", "-p", "mcp-server-esa", "mcp-server-esa-pages"],
      "env": {
        "ALIBABA_CLOUD_ACCESS_KEY_ID": "your AK",
        "ALIBABA_CLOUD_ACCESS_KEY_SECRET": "your SK"
      }
    }
  }
}

All-in-one — includes Pages, ER, and Site tools:

{
  "mcpServers": {
    "esa-mcp-server": {
      "command": "npx",
      "args": ["-y", "mcp-server-esa"],
      "env": {
        "ALIBABA_CLOUD_ACCESS_KEY_ID": "your AK",
        "ALIBABA_CLOUD_ACCESS_KEY_SECRET": "your SK",
        "ALIBABA_CLOUD_SECURITY_TOKEN": "optional, required when using STS Token"
      }
    }
  }
}

Modular — load only what you need:

ModuleBinaryBest for
Pagesmcp-server-esa-pagesFrontend devs — deploy HTML/static files to the edge
ERmcp-server-esa-erEdge developers — full Edge Routine lifecycle
Sitemcp-server-esa-siteDevOps / SREs — DNS, certificates, IPv6, site config

Run a specific module: npx -p mcp-server-esa <binary> Pin a version: npx -p mcp-server-esa@1.1.0 <binary>

Edge Routine — full lifecycle management for serverless edge functions:

{
  "mcpServers": {
    "esa-er": {
      "command": "npx",
      "args": ["-y", "-p", "mcp-server-esa", "mcp-server-esa-er"],
      "env": {
        "ALIBABA_CLOUD_ACCESS_KEY_ID": "your AK",
        "ALIBABA_CLOUD_ACCESS_KEY_SECRET": "your SK"
      }
    }
  }
}

Site — DNS, certificates, IPv6, and site configuration:

{
  "mcpServers": {
    "esa-site": {
      "command": "npx",
      "args": ["-y", "-p", "mcp-server-esa", "mcp-server-esa-site"],
      "env": {
        "ALIBABA_CLOUD_ACCESS_KEY_ID": "your AK",
        "ALIBABA_CLOUD_ACCESS_KEY_SECRET": "your SK"
      }
    }
  }
}

Multiple modules:

{
  "mcpServers": {
    "esa-pages": {
      "command": "npx",
      "args": ["-y", "-p", "mcp-server-esa", "mcp-server-esa-pages"],
      "env": {
        "ALIBABA_CLOUD_ACCESS_KEY_ID": "your AK",
        "ALIBABA_CLOUD_ACCESS_KEY_SECRET": "your SK"
      }
    },
    "esa-site": {
      "command": "npx",
      "args": ["-y", "-p", "mcp-server-esa", "mcp-server-esa-site"],
      "env": {
        "ALIBABA_CLOUD_ACCESS_KEY_ID": "your AK",
        "ALIBABA_CLOUD_ACCESS_KEY_SECRET": "your SK"
      }
    }
  }
}

Demo

Claude Desktop

Claude Demo 1

Cline

Cline configured successfully:

Cline configured

Claude Desktop configured successfully:

Claude configured

Tools

Pages

ToolDescription
html_deployDeploy an HTML page to ESA Pages, returns a default access URL
folder_deployDeploy a local folder of static files (HTML/CSS/JS/images) to ESA Pages, auto-packaged

Edge Routine (ER)

CategoryToolDescription
Routinesroutine_createCreate a new Edge Routine
routine_deleteDelete an Edge Routine
routine_listList all Edge Routines
routine_getGet Edge Routine details
Deploymentsroutine_code_commitSave a code version for an Edge Routine
routine_code_deployDeploy a code version to staging or production
deployment_deleteDelete a code version
Routesroute_createCreate a route for an Edge Routine
route_updateUpdate a route configuration
route_deleteDelete a route
route_getGet route details
routine_route_listList routes for an Edge Routine
site_route_listList routes for a site
Recordser_record_createCreate a record for an Edge Routine
er_record_deleteDelete a record
er_record_listList records for an Edge Routine

Site

CategoryToolDescription
Siteslist_sitesList all sites
site_active_listList active sites
site_matchFind a site matching given criteria
create_siteCreate a new site
get_site_pauseQuery ESA proxy configuration
update_site_pauseUpdate ESA proxy configuration
DNSsite_record_listList DNS records for a site
create_site_a_or_aaaa_recordCreate an A/AAAA record
create_site_cname_recordCreate a CNAME record
create_site_txt_recordCreate a TXT record
create_site_ns_recordCreate an NS record
create_site_mx_recordCreate an MX record
update_recordUpdate a DNS record
get_recordGet a DNS record
list_recordsList DNS records
delete_recordDelete a DNS record
IPv6update_ipv6Update IPv6 configuration
get_ipv6Query IPv6 configuration
Transformupdate_managed_transformUpdate managed transform configuration
get_managed_transformQuery managed transform configuration
Certificateset_certificateEnable/update certificate for a site
apply_certificateApply for a free SSL certificate
get_certificateGet certificate details
delete_certificateDelete a certificate
list_certificatesList certificates for a site
get_certificate_quotaQuery certificate quota and usage

Prompt Examples

Write a 2048 game and deploy it on Edge Routine, show me the access URL.
Deploy the ./dist folder to ESA Pages.
List all Edge Routines under my account.
Delete Edge Routines created after May 2025.
What is the default access URL for my Edge Routine "hello-world"?
Create a CNAME record for test.example.com pointing to example2.com.
Create an A record for test.example.com with value 1.1.1.1.
Apply a free SSL certificate for my site example.com.
Show me the IPv6 configuration for my site.

License

MIT