Back to MCP directory
publicPublicdnsLocal runtime

Sakura Cloud

为Sakura Cloud API实现的标准MCP服务接口

article

README

🚀 Sakura Cloud MCP 服务器文档

Sakura Cloud MCP 服务器为用户提供了对 Sakura Cloud 资源的便捷管理功能,支持云服务器、负载均衡器等资源的管理,还集成了 AppRun 容器化应用平台和 Claude 工具,同时具备多区域支持能力。

🚀 快速开始

下载代码

你可以通过以下命令下载 Sakura Cloud MCP 服务器的代码:

git clone https://github.com/your-username/sakura-cloud-mcp.git

安装依赖

进入项目目录后,安装所需的依赖项:

npm install

启动服务器

安装完成后,启动服务器:

node dist/server.js

✨ 主要特性

Sakura Cloud 资源管理

  • 云服务器:查看和管理你的云服务器实例。
  • 负载均衡器:配置和监控负载均衡器。
  • 域名与 DNS:管理域名和 DNS 记录。

AppRun 容器化应用平台集成

Sakura Cloud 提供了一个容器化应用平台,允许你运行 Docker 容器而无需管理基础设施。该 MCP 服务器提供完整的 AppRun 管理功能:

  • 查看所有 AppRun 应用程序。
  • 使用自定义 Docker 镜像创建新应用程序。
  • 更新现有应用程序(修改镜像、配置等)。
  • 启动和停止应用程序。
  • 查看应用日志。
  • 删除不再需要的应用程序。

区域支持

所有 API 调用都支持指定区域参数以 targeting 特定的 Sakura Cloud 数据中心。默认区域为 tk1v(东京),但你可以指定其他区域,例如:

  • is1a(石川)
  • tk1a(东京)

与 Claude 集成

Claude Desktop 应用提供了 MCP 支持。按照以下步骤将此服务器与 Claude 进行集成:

步骤 1:确保服务器运行

  • 确保服务器在本地或可访问的主机上运行。

步骤 2:创建配置文件

为你的操作系统创建一个 claude_desktop_config.json 文件:

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

步骤 3:添加配置

将以下配置添加到文件中:

{
  "sacloud-server": {
    "command": "node",
    "args": ["path/to/mcp/dist/server.js"],
    "env": {
      "SACLOUD_API_TOKEN": "your_token_here",
      "SACLOUD_API_SECRET": "your_secret_here"
    }
  }
}

步骤 4:重启 Claude Desktop 应用

重新启动 Claude Desktop 应用以应用配置。

步骤 5:在对话中使用

现在你可以在与 Claude 的对话中访问 Sakura Cloud 资源和工具。

📚 详细文档

安全注意事项

⚠️ 重要提示

  • 该服务器处理敏感的 API 凭证。
  • 绝对不要将 API 令牌或密钥提交到版本控制系统。
  • 使用环境变量存储所有敏感信息。
  • 在生产环境中实施适当的访问控制。

📄 许可证

ISC

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client