基本能力
产品定位
alibaba-cloud-ops-mcp-server 是一个用于管理阿里云资源的 MCP 服务,提供了一系列工具和功能来操作和监控阿里云的 ECS、VPC 和 CloudMonitor 等服务。
核心功能
- ECS 管理:包括启动、停止、重启、删除实例,查看实例信息,修改密码,替换操作系统等。
- VPC 管理:查看 VPC 和 VSwitch 信息。
- CloudMonitor 监控:获取 CPU、内存、磁盘等监控数据。
适用场景
- 需要批量管理阿里云 ECS 实例的场景。
- 需要监控阿里云资源使用情况的场景。
- 需要自动化操作阿里云资源的场景。
工具列表
| Product | Tool | Function | Implematation | Status |
| --- | --- | --- | --- | --- |
| ECS | RunCommand | Run Command | OOS | Done |
| | StartInstances | Start Instances | OOS | Done |
| | StopInstances | Stop Instances | OOS | Done |
| | RebootInstances | Reboot Instances | OOS | Done |
| | DescribeInstances | View Instances | API | Done |
| | DescribeRegions | View Regions | API | Done |
| | DescribeZones | View Zones | API | Done |
| | DescribeAvailableResource | View Resource Inventory | API | Done |
| | DescribeImages | View Images | API | Done |
| | DescribeSecurityGroups | View Security Groups | API | Done |
| | RunInstances | Create Instances | OOS | Done |
| | DeleteInstances | Delete Instances | API | Done |
| | ResetPassword | Modify Password | OOS | Done |
| | ReplaceSystemDisk | Replace Operating System | OOS | Done |
| VPC | DescribeVpcs | View VPCs | API | Done |
| | DescribeVSwitches | View VSwitches | API | Done |
| CloudMonitor | GetCpuUsageData | Get CPU Usage Data for ECS Instances | API | Done |
| | GetCpuLoadavgData | Get CPU One-Minute Average Load Metric Data | API | Done |
| | GetCpuloadavg5mData | Get CPU Five-Minute Average Load Metric Data | API | Done |
| | GetCpuloadavg15mData | Get CPU Fifteen-Minute Average Load Metric Data | API | Done |
| | GetMemUsedData | Get Memory Usage Metric Data | API | Done |
| | GetMemUsageData | Get Memory Utilization Metric Data | API | Done |
| | GetDiskUsageData | Get Disk Utilization Metric Data | API | Done |
| | GetDiskTotalData | Get Total Disk Partition Capacity Metric Data | API | Done |
| | GetDiskUsedData | Get Disk Partition Usage Metric Data | API | Done |
使用教程
使用依赖
安装 uv
```bash
On macOS and Linux.
curl -LsSf https://astral.sh/uv/install.sh | sh
```
安装教程
使用 VS Code + Cline 配置 MCP Server。
手动添加以下配置并重启以使更改生效:
json
{
"mcpServers": {
"alibaba-cloud-ops-mcp-server": {
"command": "uvx",
"args": [
"alibaba-cloud-ops-mcp-server@latest"
],
"env": {
"ALIBABA_CLOUD_ACCESS_KEY_ID": "Your Access Key ID",
"ALIBABA_CLOUD_ACCESS_KEY_SECRET": "Your Access Key SECRET"
}
}
}
}
调试方式
安装完成后,可以通过运行配置的命令和参数来启动服务,确保环境变量正确设置。