Alibaba Cloud Function Compute MCP server

Integrates with Alibaba Cloud Function Compute to deploy and manage serverless functions with multi-language runtime support, custom domain routing, and VPC configuration for automated cloud function lifecycle management.
Back to servers
Setup instructions
Provider
Alibaba Cloud
Release date
May 29, 2025
Stats
6 stars

The Alibaba Cloud FC MCP Server integrates Alibaba Cloud Function Compute capabilities into agent applications that support MCP Client (such as Cursor, Claude, and Cline). It serves as a bridge between AI agents and cloud functions, allowing them to deploy and manage serverless workloads.

Prerequisites

  • Node.js version 18 or above
  • Alibaba Cloud credentials (AccessKeyId and AccessKeySecret)

Required permissions:

  • AliyunFCFullAccess (required)
  • AliyunDevsFullAccess (recommended)
  • AliyunVPCFullAccess (recommended)
  • AliyunLogFullAccess (recommended)
  • AliyunEventBridgeFullAccess (optional)

Installation and Setup

Using npm Package (Recommended)

You can start the MCP server in stdio mode with the following command:

ALIBABA_CLOUD_ACCESS_KEY_ID=${your-access-key-id} ALIBABA_CLOUD_ACCESS_KEY_SECRET=${your-access-key-secret} npx alibabacloud-fc-mcp-server

From Source Code

If you prefer to run from source:

git clone https://github.com/alibaba/alibabacloud-fc-mcp-server.git
cd alibabacloud-fc-mcp-server
npm install
npm run build
ALIBABA_CLOUD_ACCESS_KEY_ID=${your-access-key-id} ALIBABA_CLOUD_ACCESS_KEY_SECRET=${your-access-key-secret} node /absolute-path-to-project/build/index.js

Configuring MCP Clients

Cursor Configuration (Recommended)

Edit the Cursor configuration file and add:

"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}"
    }
}

Cline Configuration

Edit the Cline configuration file and add:

"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}"
    }
}

Using with AI Agents

After configuring the MCP server:

  1. Create a new empty project and open it in your MCP-enabled client
  2. Chat with the agent in agent mode
  3. Ask the agent to generate a project (like a 2048 game) and deploy it to Alibaba Cloud Function Compute
  4. The agent will generate the project and deploy it using the MCP server

Available Tools

Function Management

  • put-custom-runtime-function: Package and deploy a project to a function
  • update-custom-runtime-function: Update an existing custom runtime function
  • get-function: Retrieve detailed information about a function
  • list-functions: List all functions in the specified region
  • delete-function: Delete a specified function

Domain Configuration

  • get-custom-domain-config: Query custom domain route configuration
  • update-custom-domain-config: Update custom domain route configuration
  • create-custom-domain-config: Create custom domain route configuration
  • delete-custom-domain-config: Delete custom domain route configuration

Utilities

  • get-custom-runtime-prompt: Get the custom runtime prompt

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "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}"}}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "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}"
            }
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "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}"
            }
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later