ListApiMcpServers

Updated at:

Lists all API MCP servers under the Alibaba Cloud account.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

openapiexplorer:ListApiMcpServers

list

*ApiMcpServer

acs:openapiexplorer::{#accountId}:apimcpserver/*

None None

Request syntax

GET /apimcpservers HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

id

string

No

The ID of the API MCP service.

v6ZZ7ftCzEILW***

nextToken

string

No

The pagination token. Set this parameter to the nextToken value returned by the previous API call. Leave it unspecified for the first query. If a response does not contain all results, pass the returned token in the next request to retrieve more results.

AAAAAZjtYxxxxxxxx

maxResults

integer

No

The maximum number of entries per page in a paged query. Maximum value: 100. Default value: 20.

10

skip

integer

No

The number of data entries to skip.

5

description

string

No

The description of the API MCP service.

This is an API MCP server.

language

string

No

The language of the API documentation used by the API MCP service. You can select Chinese or English. The language of the prompts may affect the AI responses.

Valid values:

  • EN_US :

    English

  • ZH_CN :

    Chinese

ZH_CN

createTime

string

No

The filter condition for the creation time of the API MCP server. The time is in UTC and follows the ISO 8601 standard in the format of YYYY-MM-DDTHH:mm:ssZ.

2024-10-30T02:10:13Z

updateTime

string

No

The filter condition for the update time of the API MCP server. The time is in UTC and follows the ISO 8601 standard in the format of YYYY-MM-DDTHH:mm:ssZ.

2024-06-05T02:27:39Z

sourceType

string

No

The API MCP service type. Valid values:

  • custom: custom service

  • system: system service

system

keyword

string

No

The search keyword. Fuzzy search by API name or exact search by API ID is supported.

oss

Response elements

Element

Type

Description

Example

object

The request result.

requestId

string

The request ID.

9BFC4AC1-6BE4-5405-BDEC-CA288D404812

nextToken

string

The pagination token. A non-empty value indicates that more results are available.

AAAAAZjtYxxxxxxxx

totalCount

integer

The total number of entries.

5

maxResults

integer

The maximum number of entries per page.

30

apiMcpServers

array<object>

The list of queried API MCP servers.

array<object>

The API MCP server information.

id

string

The API MCP server ID.

v6ZZ7ftCzEILW***

description

string

The description of the API MCP server.

This is an API MCP server.

apis

array<object>

The list of API information.

object

The API information.

product

string

The product code.

You can obtain the product code from the response to the GetRequestLog operation or from the product's OpenAPI Explorer URL.

For example, the OpenAPI Explorer URL for Short Message Service is https://api.aliyun.com/product/Dysmsapi. The product code in this URL is Dysmsapi.

Ecs

apiVersion

string

The POP version of the API exposed to the MCP server.

2014-05-26

selectors

array

The list of API name matching rules.

string

The API name matching rule.

*Bucket

additionalApiDescriptions

array<object>

The list of supplementary API descriptions.

array<object>

The supplementary API description.

product

string

The product code.

You can obtain the product code from the response to the GetRequestLog operation or from the product's OpenAPI Explorer URL.

For example, the OpenAPI Explorer URL for Short Message Service is https://api.aliyun.com/product/Dysmsapi. The product code in this URL is Dysmsapi.

Ecs

apiVersion

string

The POP version of the API exposed to the MCP server.

2014-05-26

apiName

string

The API name.

DescribeRegions

apiOverrideJson

string

The API metadata in JSON format. Refer to the format at https://api.aliyun.com/meta/v1/products/Ecs/versions/2014-05-26/apis/DescribeInstances/api.json. You can override the summary and parameters fields.

{ "summary": "Queries an instance list based on the specified conditions and returns detailed information about the instances." }

executeCliCommand

boolean

Indicates whether the corresponding Alibaba Cloud CLI command is returned instead of making an API call. This mode is suitable for long-running tasks. Run the returned command by using Alibaba Cloud CLI.

true

enableOutputSchema

boolean

Specifies whether to return the output parameter schema. Returning the output parameter schema increases the overall size of the API MCP server. The default value is null, which indicates that the output parameter schema is not returned.

true

toolAlias

string

The tool alias. You can set a custom name, such as list_ecs_regions. The alias can contain letters, digits, hyphens (-), and underscores (_). Aliases must be unique.

list_ecs_regions

constParameters

array<object>

The list of constant parameters. These parameters are not included in the output during API parameter parsing.

object

The constant parameter.

key

string

The parameter name. Only top-level parameters can be specified. For ROA-style APIs, use body.xx to specify a top-level field in the request body. Deeper nested fields are not supported.

InstanceId

value

any

The parameter value.

1234

createTime

string

The time when the API MCP server was created. The time is in UTC and follows the ISO 8601 standard in the format of YYYY-MM-DDTHH:mm:ssZ.

2024-12-10T03:20:21Z

updateTime

string

The time when the API MCP server was last updated. The time is in UTC and follows the ISO 8601 standard in the format of YYYY-MM-DDTHH:mm:ssZ.

2025-01-10T02:11:43Z

prompts

array<object>

The list of prompt configurations.

array<object>

The prompt configuration.

name

string

The prompt name.

test

description

string

The prompt description.

prompt description

content

string

The prompt content. Variables are specified in the {{xxx}} format, where xxx is a variable that must be defined in the arguments parameter.

Prompt body, {{name}}

arguments

array<object>

The list of parameters supported by the prompt.

object

The parameter supported by the prompt.

name

string

The parameter name.

test

description

string

The parameter description.

argument description

required

boolean

Indicates whether the parameter is required.

true

language

string

The language of the API documentation used by the API MCP service. You can select Chinese or English. The language of the prompts may affect the AI responses.

Valid values:

  • EN_US :

    EN_US

  • ZH_CN :

    ZH_CN

ZH_CN

urls

object

The API MCP server connection information.

sse

string

The SSE protocol connection information.

https://openapi-mcp.cn-hangzhou.aliyuncs.com/accounts/xxxx/custom/xxx/id/xxxx/sse

mcp

string

The streamable HTTP protocol connection information. We recommend that you use this protocol.

https://openapi-mcp.cn-hangzhou.aliyuncs.com/accounts/xxxx/custom/xxx/id/xxxx/mcp

vpcSse

string

The SSE protocol endpoint within a VPC.

https://openapi-mcp-cn.vpc-proxy.aliyuncs.com/accounts/xxxx/custom/xxx/id/xxxx/sse

vpcMcp

string

The streamable HTTP protocol endpoint within a VPC.

https://openapi-mcp-cn.vpc-proxy.aliyuncs.com/accounts/xxxx/custom/xxx/id/xxxx/mcp

systemTools

array

The list of system tools.

string

The system tool name.

FetchRamActionDetails

name

string

The MCP server name. The name consists of 3 to 64 characters that contain lowercase letters and digits. It cannot start with a digit and must be unique within the same Alibaba Cloud account.

mcp-demo

sourceType

string

The API MCP service type. Valid values:

  • custom: custom service

  • system: system service

system

systemMcpServerInfo

object

The system MCP server information.

product

string

The product code.

You can obtain the product code from the response to the GetRequestLog operation or from the product's OpenAPI Explorer URL.

For example, the OpenAPI Explorer URL for Short Message Service is https://api.aliyun.com/product/Dysmsapi. The product code in this URL is Dysmsapi.

Ecs

name

string

The system MCP service name.

mcp-system

oauthClientId

string

The OAuth client ID used when you select a custom OAuth configuration. Only Web/Native applications are supported. The OAuth scope must include /acs/mcp-server.

403*************370

instructions

string

The MCP instructions that guide a large language model on how to use this MCP service. The client must support the instructions field defined in the MCP specification.

test

enableAssumeRole

boolean

Specifies whether multi-account access is enabled.

true

assumeRoleName

string

The name of the RAM role to assume in the target account when multi-account access is enabled for cross-account operations.

test

assumeRoleExtraPolicy

string

The additional policy for role assumption when multi-account access is enabled. If this policy is specified, the permissions for role assumption are based on this value, overriding the permissions defined in the role itself.

{ "Version": "1", "Statement": [ { "Effect": "Allow", "Action": [ "ecs:Describe*", "vpc:Describe*", "vpc:List*" ], "Resource": "*" } ] }

terraformTools

array<object>

The list of Terraform tools.

object

The Terraform tool.

code

string

The Terraform tool code. HCL language overview

variable "name" { default = "terraform-example" } provider "alicloud" { region = "cn-beijing" } resource "alicloud_vpc" "default" { ipv6_isp = "BGP" description = "test" cidr_block = "10.0.0.0/8" vpc_name = var.name enable_ipv6 = true }

name

string

The Terraform tool name.

test

description

string

The Terraform tool description.

Terraform Tool description

async

boolean

Specifies whether the execution is asynchronous. If set to true, the system proceeds to the next task immediately after initiating a task without waiting for each resource operation to complete.

true

destroyPolicy

string

The policy for cleaning up temporary resources after the task finishes. Valid values:

  • NEVER: Retain all created resources, regardless of whether the task succeeds or fails.

  • ALWAYS: Destroy all related resources immediately after the task finishes, regardless of whether it succeeds or fails.

  • ON_FAILURE: Delete related resources only if the task fails. Retain them if the task succeeds.

Valid values:

  • ON_FAILURE :

    ON_FAILURE

  • NEVER :

    NEVER

  • ALWAYS :

    ALWAYS

ON_FAILURE

publicAccess

string

Specifies whether public network access is enabled.

Valid values:

  • follow :

    follows the account-level public network access configuration

  • off :

    disables public network access

  • on :

    enables public network access

on

enableCustomVpcWhitelist

boolean

Specifies whether a custom VPC whitelist is enabled. If not enabled, the account-level configuration is used.

true

vpcWhitelists

array

The VPC whitelist that restricts the source VPCs when public network access is disabled. If not set or empty, no source restriction is applied.

string

The VPC whitelist entry. The value is the source VPC ID.

vpc-j6cgd2if5lg**0xs6m5se

Examples

Success response

JSON format

{
  "requestId": "9BFC4AC1-6BE4-5405-BDEC-CA288D404812",
  "nextToken": "AAAAAZjtYxxxxxxxx",
  "totalCount": 5,
  "maxResults": 30,
  "apiMcpServers": [
    {
      "id": "v6ZZ7ftCzEILW***",
      "description": "This is an API MCP server.",
      "apis": [
        {
          "product": "Ecs",
          "apiVersion": "2014-05-26",
          "selectors": [
            "*Bucket"
          ]
        }
      ],
      "additionalApiDescriptions": [
        {
          "product": "Ecs",
          "apiVersion": "2014-05-26",
          "apiName": "DescribeRegions",
          "apiOverrideJson": "{\n  \"summary\": \"Queries an instance list based on the specified conditions and returns detailed information about the instances.\"\n}",
          "executeCliCommand": true,
          "enableOutputSchema": true,
          "toolAlias": "list_ecs_regions",
          "constParameters": [
            {
              "key": "InstanceId",
              "value": "1234"
            }
          ]
        }
      ],
      "createTime": "2024-12-10T03:20:21Z",
      "updateTime": "2025-01-10T02:11:43Z",
      "prompts": [
        {
          "name": "test",
          "description": "prompt description",
          "content": "Prompt body, {{name}}",
          "arguments": [
            {
              "name": "test",
              "description": "argument description",
              "required": true
            }
          ]
        }
      ],
      "language": "ZH_CN",
      "urls": {
        "sse": "https://openapi-mcp.cn-hangzhou.aliyuncs.com/accounts/xxxx/custom/xxx/id/xxxx/sse",
        "mcp": "https://openapi-mcp.cn-hangzhou.aliyuncs.com/accounts/xxxx/custom/xxx/id/xxxx/mcp",
        "vpcSse": "https://openapi-mcp-cn.vpc-proxy.aliyuncs.com/accounts/xxxx/custom/xxx/id/xxxx/sse",
        "vpcMcp": "https://openapi-mcp-cn.vpc-proxy.aliyuncs.com/accounts/xxxx/custom/xxx/id/xxxx/mcp"
      },
      "systemTools": [
        "FetchRamActionDetails"
      ],
      "name": "mcp-demo",
      "sourceType": "system",
      "systemMcpServerInfo": {
        "product": "Ecs",
        "name": "mcp-system"
      },
      "oauthClientId": "403*************370",
      "instructions": "test",
      "enableAssumeRole": true,
      "assumeRoleName": "test",
      "assumeRoleExtraPolicy": "{\n  \"Version\": \"1\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Allow\",\n      \"Action\": [\n        \"ecs:Describe*\",\n        \"vpc:Describe*\",\n        \"vpc:List*\"\n      ],\n      \"Resource\": \"*\"\n    }\n  ]\n}",
      "terraformTools": [
        {
          "code": "variable \"name\" {\n  default = \"terraform-example\"\n}\n\nprovider \"alicloud\" {\n  region = \"cn-beijing\"\n}\n\nresource \"alicloud_vpc\" \"default\" {\n  ipv6_isp    = \"BGP\"\n  description = \"test\"\n  cidr_block  = \"10.0.0.0/8\"\n  vpc_name    = var.name\n  enable_ipv6 = true\n}",
          "name": "test",
          "description": "Terraform Tool description",
          "async": true,
          "destroyPolicy": "ON_FAILURE"
        }
      ],
      "publicAccess": "on",
      "enableCustomVpcWhitelist": true,
      "vpcWhitelists": [
        "vpc-j6cgd2if5lg**0xs6m5se"
      ]
    }
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParam.NextToken The specified NextToken is not valid. The specified nextToken is invalid.
400 NextTokenParameterMismatch The request uses the same nextToken as the previous request, but with different parameters. NextTokens should not be reused across non-identical requests. Each unique request must have a distinct nextToken. The request uses the same nextToken as the previous request, but with different parameters. NextTokens should not be reused across non-identical requests. Each unique request must have a distinct nextToken.
500 InternalServerError The request has failed due to a temporary failure of the server. The request failed due to a temporary server failure.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.