Basic information
About Alibaba Cloud Function Compute MCP Server
Easily manage serverless functions with Alibaba Cloud Function Compute, enabling multi-language runtime, custom domains, and VPC integration.
Alibaba Cloud Function Compute is a MCP server in the Cloud Infrastructure category listed in the AddMCP.net directory, published by aliyun. It exposes 12 tools, including put-custom-runtime-function, update-custom-runtime-function, get-function, list-functions and more. Supported transport: stdio. Runtime: JavaScript. License: MIT. The repository has 8 GitHub stars. Source code is hosted on github.com. Related topics: alibabacloud, cloud-infrastructure, developer-tools, function-compute, mcp-server.
Setup
{
"mcpServers": {
"alibabacloud-fc-mcp-server": {
"command": "npx",
"args": [
"-y",
"alibabacloud-fc-mcp-server"
],
"env": {
"ALIBABA_CLOUD_ACCESS_KEY_ID": "${your-access-key-id}",
"ALIBABA_CLOUD_ACCESS_KEY_SECRET": "${your-access-key-secret}"
}
}
}
}
{
"mcpServers": {
"alibabacloud-fc-mcp-server": {
"command": "npx",
"args": [
"-y",
"alibabacloud-fc-mcp-server"
],
"env": {
"ALIBABA_CLOUD_ACCESS_KEY_ID": "${your-access-key-id}",
"ALIBABA_CLOUD_ACCESS_KEY_SECRET": "${your-access-key-secret}"
}
}
}
}
{
"servers": {
"alibabacloud-fc-mcp-server": {
"command": "npx",
"args": [
"-y",
"alibabacloud-fc-mcp-server"
],
"env": {
"ALIBABA_CLOUD_ACCESS_KEY_ID": "${your-access-key-id}",
"ALIBABA_CLOUD_ACCESS_KEY_SECRET": "${your-access-key-secret}"
}
}
}
}
Alibaba Cloud Function Compute MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"alibabacloud-fc-mcp-server": {
"command": "npx",
"args": [
"-y",
"alibabacloud-fc-mcp-server"
],
"env": {
"ALIBABA_CLOUD_ACCESS_KEY_ID": "${your-access-key-id}",
"ALIBABA_CLOUD_ACCESS_KEY_SECRET": "${your-access-key-secret}"
}
}
}
}
Alibaba Cloud Function Compute MCP Server tools
-
put-custom-runtime-function
— 将构建完成的匹配阿里云自定义运行时的工程,部署到函数计算。代码工程不需要手动打包,会自动处理。如果函数已存在,则尝试覆盖并更新目标函数。建议使用该方法前先确认函数是否存在
location:string*, functionName:string*, region:string, cpu:number, memorySize:number, customRuntimeConfig:object*, description:string, diskSize:number*, instanceConcurrency:number*, environmentVariables:object, internetAccess:boolean, logConfig, … -
update-custom-runtime-function
— 更新并部署custom runtime函数。如果需要修改代码,必须先完成构建。如果需要更新函数配置,需要提供更新的参数,未提供的参数将保持不变
location:string, functionName:string*, region:string, cpu:number, memorySize:number, customRuntimeConfig:object, description:string, diskSize:number, instanceConcurrency:number, environmentVariables:object, internetAccess:boolean, logConfig, … -
get-function
— 获取创建的函数计算的函数信息
functionName:string*, region:string -
list-functions
— 获取函数计算的函数列表,只返回函数名称与部分函数信息,不返回所有函数信息。如果需要获取所有函数信息,请使用get-function工具
region:string, prefix:string, nextToken:string, limit:number, tags:array, runtime:string -
delete-function
— 删除函数计算的函数
functionName:string*, region:string -
get-custom-domain-config
— 查询函数计算的域名路由配置
region:string, domain:string* -
update-custom-domain-config
— 更新函数计算的域名路由配置,修改域名路由配置
region:string, domain:string*, updateCustomDomainConfig:object* -
create-custom-domain-config
— 创建函数计算的域名路由配置,域名必须已经CNAME到函数计算的公网域名(格式为${uid}.${regionId}.fc.aliyuncs.com,例如14**49.cn-hangzhou.fc.aliyuncs.com)上,否则会创建失败。
region:string, createCustomDomainConfig:object* -
delete-custom-domain-config
— 删除函数计算的域名路由配置,CNAME记录不会被删除,需要手动删除CNAME记录
region:string, domain:string* -
publish-function-version
— 将函数的最新代码发布为新版本
functionName:string*, region:string, description:string* -
list-function-versions
— 获取函数计算的函数版本列表
functionName:string*, region:string, nextToken:string, direction:string, limit:number -
delete-function-version
— 删除函数计算的函数版本
functionName:string*, region:string, versionId:string*
Overview
What is Alibaba Cloud Function Compute?
Alibaba Cloud FC MCP Server integrates Alibaba Cloud Function Compute (FC) capabilities into MCP Client applications such as Cursor, Claude, and Cline. It is built on Serverless Devs and OpenAPI, and allows managing FC functions and custom runtimes through MCP tools.
How to use Alibaba Cloud Function Compute?
Install Node.js 18+, prepare Alibaba Cloud AccessKeyId and AccessKeySecret with required permissions. Start the server via npx -y alibabacloud-fc-mcp-server with environment variables set. Configure the MCP server in Cursor or Cline using the provided JSON configuration, then interact with the server through agent chat.
Key features of Alibaba Cloud Function Compute
- Create and update custom runtime functions.
- Retrieve and list function details.
- Delete functions.
- Manage custom domain configurations.
- Get custom runtime prompts.
- Supports stdio transport mode.
Use cases of Alibaba Cloud Function Compute
- Deploy a project to Alibaba Cloud Function Compute directly from an MCP client.
- Automate function lifecycle management in CI/CD pipelines.
- Configure custom domains for serverless applications.
- Query function metadata for monitoring or debugging.
- Generate and deploy code projects with runtime constraints.
Frequently asked questions
1 What prerequisites are needed?
Node.js version 18 or above, and Alibaba Cloud credentials with at least AliyunFCFullAccess and AliyunDevsFullAccess permissions.
2 How do I configure the server in Cursor or Cline?
Add the MCP server configuration to the tool’s config file, using the command npx -y alibabacloud-fc-mcp-server and setting ALIBABA_CLOUD_ACCESS_KEY_ID and ALIBABA_CLOUD_ACCESS_KEY_SECRET environment variables.
3 What tools are available?
The server provides tools for managing custom runtime functions (put, update, get, list, delete), custom domain configuration (create, update, delete, get), and a get-custom-runtime-prompt tool.
4 What runtime environments does Function Compute support?
Python 3.10, Node 20, OpenJDK 21, and Golang. Specific paths are added to PATH and JAVA_HOME for each runtime.
5 How can I deploy a project using this server?
Use the put-custom-runtime-function tool to package and deploy a project that meets custom runtime requirements. If the function already exists, it will attempt to overwrite and update. Use update-custom-runtime-function for partial updates.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In