Skip to main content
Glama

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

Related MCP server: MCP Server Demo

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:

Module

Binary

Best for

Pages

mcp-server-esa-pages

Frontend devs — deploy HTML/static files to the edge

ER

mcp-server-esa-er

Edge developers — full Edge Routine lifecycle

Site

mcp-server-esa-site

DevOps / 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

Claude Demo 2

Cline

Cline Demo

Cline configured successfully:

Cline configured

Claude Desktop configured successfully:

Claude configured

Tools

Pages

Tool

Description

html_deploy

Deploy an HTML page to ESA Pages, returns a default access URL

folder_deploy

Deploy a local folder of static files (HTML/CSS/JS/images) to ESA Pages, auto-packaged

Edge Routine (ER)

Category

Tool

Description

Routines

routine_create

Create a new Edge Routine

routine_delete

Delete an Edge Routine

routine_list

List all Edge Routines

routine_get

Get Edge Routine details

Deployments

routine_code_commit

Save a code version for an Edge Routine

routine_code_deploy

Deploy a code version to staging or production

deployment_delete

Delete a code version

Routes

route_create

Create a route for an Edge Routine

route_update

Update a route configuration

route_delete

Delete a route

route_get

Get route details

routine_route_list

List routes for an Edge Routine

site_route_list

List routes for a site

Records

er_record_create

Create a record for an Edge Routine

er_record_delete

Delete a record

er_record_list

List records for an Edge Routine

Site

Category

Tool

Description

Sites

list_sites

List all sites

site_active_list

List active sites

site_match

Find a site matching given criteria

create_site

Create a new site

get_site_pause

Query ESA proxy configuration

update_site_pause

Update ESA proxy configuration

DNS

site_record_list

List DNS records for a site

create_site_a_or_aaaa_record

Create an A/AAAA record

create_site_cname_record

Create a CNAME record

create_site_txt_record

Create a TXT record

create_site_ns_record

Create an NS record

create_site_mx_record

Create an MX record

update_record

Update a DNS record

get_record

Get a DNS record

list_records

List DNS records

delete_record

Delete a DNS record

IPv6

update_ipv6

Update IPv6 configuration

get_ipv6

Query IPv6 configuration

Transform

update_managed_transform

Update managed transform configuration

get_managed_transform

Query managed transform configuration

Certificate

set_certificate

Enable/update certificate for a site

apply_certificate

Apply for a free SSL certificate

get_certificate

Get certificate details

delete_certificate

Delete a certificate

list_certificates

List certificates for a site

get_certificate_quota

Query 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

Available Tools

42 tools
apply_certificateC

Applies for a free SSL certificate.

Inputs: siteId (required), domains (required), type (required).

create_siteA

Adds a website. Make sure that you have an available plan before you add a website. Make sure that your website domain name has an ICP filing if the location you want to specify covers the Chinese mainland.

Inputs: siteName (required), coverage (required), accessType (required), instanceId (required), +1 more.

create_site_a_or_aaaa_recordC

Creates a DNS record for a specific website. Only A/AAAA records are supported.

Inputs: siteId (required), recordName (required), data (required), proxied, +3 more.

create_site_cname_recordA

Creates a DNS record for a specific website. Only supports records with type=CNAME and sourceType=Domain.

Inputs: siteId (required), recordName (required), data (required), sourceType, +4 more.

create_site_mx_recordC

Creates a DNS record for a specific website. Only MX records are supported.

Inputs: siteId (required), recordName (required), data (required), bizName, +2 more.

create_site_ns_recordA

Creates a DNS record for a specific website. Only NS records are supported.

Inputs: siteId, recordName, ttl, data, +3 more.

create_site_txt_recordB

Creates a DNS record for a specific website. Only TXT records are supported.

Inputs: siteId (required), recordName (required), data (required), ttl, +1 more.

delete_certificateC

Deletes a certificate for a website.

Inputs: siteId (required), id (required).

delete_recordC

Deletes a DNS record of a website based on the specified RecordId.

Inputs: recordId (required).

deployment_deleteC

Delete a specified code version associated with an Edge Routine (ER).

Inputs: name (required), codeVersion (required).

er_record_createC

Create a new record associated with an Edge Routine (ER)

Inputs: name (required), siteId (required), recordName (required).

er_record_deleteC

Delete a specified record associated with an Edge Routine (ER).

Inputs: name (required), siteId (required), recordName (required), recordId.

er_record_listC

List all records associated with a specific Edge Routine (ER).

Inputs: Name (required), PageNumber, PageSize, SearchKeyWord.

get_certificateC

Retrieve the certificate, private key, and certificate information

Inputs: siteId (required), id (required).

get_certificate_quotaC

Query certificate quota and usage.

Inputs: siteId (required), type (required).

get_ipv6C

Queries the IPv6 configuration of a website.

Inputs: siteId (required).

get_managed_transformB

Query Managed Transform Configuration.

Inputs: siteId (required), siteVersion.

get_recordB

Queries the configuration of a single DNS record, such as the record value, priority, and origin authentication setting (exclusive to CNAME records).

Inputs: recordId (required).

get_site_pauseB

Queries the ESA proxy configuration of a website.

Inputs: siteId (required).

html_deployB

Quickly deploy an HTML page to ESA Edge Routine (ER) and return a default access URL to the user.

Inputs: name (required), html (required).

list_certificatesC

Lists certificates of a website.

Inputs: siteId (required), keyword, validOnly, pageNumber, +1 more.

list_recordsB

Queries a list of Domain Name System (DNS) records of a website, including the record value, priority, and authentication configurations. Supports filtering by specifying parameters such as RecordName and RecordMatchType.

Inputs: siteId (required), recordName, recordMatchType, pageNumber, +5 more.

list_sitesC

用于查询当前用户下的站点列表 ,包括站点的名称、状态、配置等信息。

Inputs: siteName, siteSearchType, pageNumber, pageSize, +8 more.

route_createC

Create a new route associated with an Edge Routine (ER).

Inputs: siteId (required), mode (required), rule (required), routineName (required), +5 more.

route_deleteC

Delete a specified route associated with an Edge Routine (ER).

Inputs: siteId (required), configId (required).

route_getB

Get details of a specific route associated with an Edge Routine (ER).

Inputs: siteId (required), configId (required).

route_updateC

Modify the configuration of an existing Edge Routine route.

Inputs: siteId (required), configId (required), routeName (required), routeEnable (required), +4 more.

routine_code_commitC

Save a code version for future modifications or release within an Edge Routine (ER).

Inputs: name (required), code (required), description.

routine_code_deployB

Deploy a selected code version to the staging or production environment. If version is not exist, should call routine_code_commit first

Inputs: name (required), codeVersion (required), env (required).

routine_createC

Create a new Edge Routine (ER) in your Alibaba Cloud account.

Inputs: name (required), description.

routine_deleteB

Delete an existing Edge Routine (ER) from your Alibaba Cloud account.

Inputs: name (required).

routine_getC

Get a the details of a Edge Routine (ER).

Inputs: name (required).

routine_listB

List all Edge Routines (ERs) in your Alibaba Cloud account.

Inputs: no named parameters.

routine_route_listC

List all routes associated with a specific Edge Routine (ER).

Inputs: routineName (required), routeName, pageNumber, pageSize.

set_certificateB

Configures whether to enable certificates and update certificate information for a website.

Inputs: siteId (required), type (required), name, casId, +4 more.

site_active_listB

List all active sites

Inputs: no named parameters.

site_matchC

Identify which site in the account matches the provided input criteria.

Inputs: recordName (required).

site_route_listC

List all routes associated with a specific site.

Inputs: siteId (required), routeName, pageNumber, pageSize.

update_ipv6C

Modifies the IPv6 configuration of a website.

Inputs: siteId (required), enable (required), region.

update_managed_transformC

Modifies the configuration of managed transforms for your website.

Inputs: siteId (required), addClientGeolocationHeader, siteVersion, addRealClientIpHeader, +1 more.

update_recordC

This operation allows you to update multiple types of DNS records, including but not limited to A/AAAA, CNAME, NS, MX, TXT, CAA, SRV, and URI. You can modify the record content by providing the necessary fields such as Value, Priority, and Flag. For origins added in CNAME records such as OSS and S3, the API enables you to configure authentication details to ensure secure access. Usage notes: The record value (Value) must match the record type. For example, the CNAME record should correspond to the target domain name. You must specify a priority (Priority) for some record types, such as MX and SRV. You must specify specific fields such as Flag and Tag for CAA records. When you update security records such as CERT and SSHFP, you must accurately set fields such as Type and Algorithm.If your origin type is OSS or S3, configure the authentication details in AuthConf based on the permissions.

Inputs: recordId (required), data (required), ttl, proxied, +6 more.

update_site_pauseB

Modifies the ESA proxy configuration of a website.

Inputs: siteId (required), paused (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 42 tools

    Disambiguation4/5

    Most tools have distinct purposes, but there is some overlap in DNS record creation tools (e.g., create_site_a_or_aaaa_record, create_site_cname_record, etc.), which could cause confusion as they all create DNS records but for different types. The descriptions help differentiate them, but the naming doesn't clearly indicate the record type in all cases.

    Naming Consistency3/5

    The naming is mixed with some consistency within groups (e.g., create_site_*_record for DNS, er_record_* for Edge Routine records), but there are deviations like html_deploy, site_active_list, and site_match that don't follow a clear pattern. Overall, it's readable but lacks a uniform convention across all tools.

    Tool Count2/5

    With 42 tools, the count is too high for the apparent scope of managing websites, DNS, certificates, and Edge Routines. This many tools can overwhelm agents and suggests fragmentation, such as separate tools for each DNS record type instead of a unified create_record with parameters.

    Completeness5/5

    The tool set provides comprehensive coverage for the domain, including site management (create, list, pause), DNS operations (create, get, list, update, delete for various record types), certificate handling (apply, get, set, delete, list), and Edge Routine lifecycle (create, get, list, delete, code commit/deploy, route management). No obvious gaps are present for core workflows.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers