otc mcp服务器
开放电信云MCP服务器-通过Claude Desktop或n8n控制您的OTC基础设施。
特性
计算(ECS)工具:
list_ecs_servers-列出所有ECS实例get_ecs_details-获取特定服务器的详细信息start_ecs_server-启动已停止的服务器stop_ecs_server-停止正在运行的服务器reboot_ecs_server-重新启动服务器(软/硬)list_flavors-列出可用的实例类型
先决条件
- Node.js>=18
- 具有AK/SK凭证的OTC账户
- 来自OTC控制台的项目ID
安装
git clone https://github.com/flowgrammer420/otc-mcp-server.git
cd otc-mcp-server
npm install
npm run build配置
设置这些环境变量:
export OTC_ACCESS_KEY="your-access-key"
export OTC_SECRET_KEY="your-secret-key"
export OTC_PROJECT_ID="your-project-id"
export OTC_REGION="eu-de" # or eu-nl使用Claude Desktop
编辑 claude_desktop_config.json:
窗户: %APPDATA%\Claude\claude_desktop_config.json macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"otc": {
"command": "node",
"args": ["C:/path/to/otc-mcp-server/dist/index.js"],
"env": {
"OTC_ACCESS_KEY": "your-access-key",
"OTC_SECRET_KEY": "your-secret-key",
"OTC_PROJECT_ID": "your-project-id",
"OTC_REGION": "eu-de"
}
}
}
}使用n8n(Docker)
即将推出-MCP对n8n的支持。
许可证
麻省理工学院
