mcpField
M
Mcp Server Esa

Mcp Server Esa

Local
github.com/aliyunCloud & Infra27Updated 35w ago

About Mcp Server Esa

mcp-server-esa is an MCP server for Alibaba Cloud ESA (Edge Security Acceleration). It lets users deploy to the edge, manage DNS, certificates and Edge Routines from an AI-enabled IDE. It is split into Pages, Edge Routine and Site modules, so users can load only the ones they need.

Key features

  1. 01Pages for deploying HTML or static folders to the edge
  2. 02Edge Routine lifecycle management from creation to routing
  3. 03Site management for DNS, SSL certificates and IPv6
  4. 04Modular loading of individual tool sets

Use cases

  1. 01Front-end developers deploying static sites to the edge quickly
  2. 02DevOps staff managing DNS records and certificates from an AI client
  3. 03Developers managing the full lifecycle of Edge Routines

MCP support

This project is an MCP server that exposes over 40 tools for ESA Pages, Edge Routines and site management to MCP clients such as Cursor, Claude Desktop and Cline.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"esa": {
"command": "npx",
"args": [
"-y",
"mcp-server-esa"
],
"env": {
"ALIBABA_CLOUD_ACCESS_KEY_ID": "<ALIBABA_CLOUD_ACCESS_KEY_ID>",
"ALIBABA_CLOUD_ACCESS_KEY_SECRET": "<ALIBABA_CLOUD_ACCESS_KEY_SECRET>"
}
}
}
}
Run commandnpx -y mcp-server-esa
Environment variables to set
ALIBABA_CLOUD_ACCESS_KEY_IDSecret
ALIBABA_CLOUD_ACCESS_KEY_SECRETSecret

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmmcp-server-esa

Tools

44

Saved tool list · updated 3w ago

ParameterTypeRequiredDescription
namestringYesThe name of the routine, supports lowercase English letters, numbers, and hyphens, must start with a lowercase letter, and must be at least 2 characters long. For example: hello-world
htmlstringYesAn HTML string which user want to deploy. For example: <html><body>Hello World</body></html>

Details

From the project README

ESA MCP Server

npm version license

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

English | 中文

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 [email protected] <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

Claude Demo 2

Cline

Cline Demo

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

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.