Skip to main content
Glama

ESA MCP 服务器

一个MCP服务器,方便使用阿里云各种ESA服务。


英语|中文

安装

  1. 在Accesskey页面申请阿里云的AK和SK

https://ram.console.aliyun.com/profile/access-keys

  1. 启用 Edge Routine 服务

https://esa.console.aliyun.com/edge/function/list

  1. 在启用 MCP 的客户端配置中进行配置:

{
  "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": "sts_security_token optional, required when using STS Token (By default, no need to pass)"
      }
    }
  }
}

Related MCP server: MCP Server Demo

演示视频

克劳德·德莫

1744168230082

1744168440370

克莱恩演示

1744168966418

Cline配置成功:

1744114625974

Claude配置成功:

1744165412296

工具列表

服务器提供以下可通过 MCP 协议调用的 ESA 工具:

类别

工具

描述

例程

例程_创建

在您的阿里云帐户中创建一个新的边缘例程 (ER)。

例程_删除

从您的阿里云帐户中删除现有的边缘例程 (ER)。

例程列表

列出您的阿里云帐户中的所有边缘例程 (ER)。

例程_获取

获取 Edge Routine (ER) 的详细信息。

部署

例程代码提交

保存代码版本以供将来修改或在 Edge Routine (ER) 中发布。

例程代码部署

将选定的代码版本部署到暂存或生产环境。

部署_删除

删除与边缘例程 (ER) 关联的指定代码版本。

路线

路由创建

创建与边缘路线 (ER) 关联的新路线。

路线更新

修改现有 Edge Routine 路由的配置。

路由删除

删除与边缘路由 (ER) 关联的指定路由。

路由获取

获取与边缘例程 (ER) 相关的特定路线的详细信息。

例程路线列表

列出与特定边缘路由 (ER) 相关的所有路线。

站点路线列表

列出与特定站点相关的所有路线。

记录

er_record_create

创建与边缘例程 (ER) 相关的新记录。

er_record_delete

删除与边缘例程 (ER) 关联的指定记录。

er_record_list

列出与特定边缘例程 (ER) 相关的所有记录。

站点

站点活跃列表

列出您的阿里云帐户中注册的所有活跃站点。

站点匹配

确定帐户中的哪个站点符合提供的输入条件。

site_dns_cname_record_create

为指定站点创建 CNAME DNS 记录。

site_dns_a_record_create

为指定站点创建 A DNS 记录。

站点记录列表

列出与特定站点相关的 DNS 记录。

提示示例

  • 编写一个2048游戏并部署在Edge Routine上,并显示Edge Routine提供的默认访问URL。

  • 删除 2025 年 5 月之后创建的 Edge 例程。

  • 列出我的帐户下的所有 Edge 例程。

  • 我的名为“hello-world”的Edge Routine的默认访问地址是什么?

  • 为test.example.com创建 CNAME 记录,并将值设置为example2.com

  • 为test.example.com创建 A 记录,并将值设置为1.1.1.1

执照

麻省理工学院

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

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers