Sakura Cloud MCP server

Enables management of Sakura Cloud infrastructure resources including servers, disks, networks, and containerized applications through natural language commands.
Back to servers
Provider
Hidenori Goto
Release date
Apr 05, 2025
Language
TypeScript
Stats
8 stars

Sakura Cloud MCP Server is a Model Context Protocol implementation that enables AI assistants to interact with Sakura Cloud infrastructure through a standardized interface. It allows AI systems to access and manage cloud resources including servers, disks, networks, and containerized applications via AppRun.

Installation

Prerequisites

  • Node.js (v16 or higher)
  • Sakura Cloud API credentials (token and secret)
  • Claude Desktop app for using with Claude (MCP is currently only supported in the desktop app)

Setup

# Clone the repository
git clone https://github.com/hidenorigoto/sacloud-mcp.git
cd sacloud-mcp

# Install dependencies
npm install

# Build the project
npm run build

Configuration

Set the following environment variables:

  • SACLOUD_API_TOKEN: Your Sakura Cloud API token
  • SACLOUD_API_SECRET: Your Sakura Cloud API secret

Usage

Available Resources

The MCP server provides access to numerous Sakura Cloud resources through URIs:

  • sakura:///servers - Lists all servers
  • sakura:///switches - Lists all switches
  • sakura:///appliances - Lists all appliances
  • sakura:///disks - Lists all disks
  • sakura:///archives - Lists all archives
  • sakura:///cdrom - Lists all ISO images
  • sakura:///bridge - Lists all bridges
  • sakura:///internet - Lists all routers
  • sakura:///interface - Lists all network interfaces
  • sakura:///icon - Lists all icons
  • sakura:///note - Lists all startup scripts and notes
  • sakura:///sshkey - Lists all SSH keys
  • sakura:///region - Lists all regions
  • sakura:///zone - Lists all zones
  • sakura:///product - Lists all available products
  • sakura:///commonserviceitem - Lists all common service items
  • sakura:///license - Lists all licenses
  • sakura:///auth-status - Shows current authentication status
  • sakura:///bill - Shows monthly billing information
  • sakura:///bill-detail - Shows detailed billing breakdown
  • sakura:///coupon - Lists all available coupons
  • sakura:///privatehost - Lists all private hosts
  • sakura:///public-price - Shows public pricing information (no auth required)
  • sakura:///apprun - Lists all AppRun applications

Available Tools

The server provides tools to interact with Sakura Cloud resources:

Servers

  • get_server_list - Lists all servers
  • get_server_info - Details about a specific server (requires serverId)

Networking

  • get_switch_list - Lists all switches
  • get_switch_info - Details about a specific switch (requires switchId)
  • get_router_list - Lists all routers
  • get_router_info - Details about a specific router (requires routerId)
  • get_interface_list - Lists all network interfaces
  • get_interface_info - Details about a specific interface (requires interfaceId)
  • get_bridge_list - Lists all bridges
  • get_bridge_info - Details about a specific bridge (requires bridgeId)

Storage

  • get_disk_list - Lists all disks
  • get_disk_info - Details about a specific disk (requires diskId)
  • get_archive_list - Lists all archives
  • get_archive_info - Details about a specific archive (requires archiveId)
  • get_cdrom_list - Lists all ISO images
  • get_cdrom_info - Details about a specific ISO image (requires cdromId)

Infrastructure

  • get_appliance_list - Lists all appliances
  • get_appliance_info - Details about a specific appliance (requires applianceId)
  • get_zone_list - Lists all zones
  • get_zone_info - Details about a specific zone (requires zoneId)
  • get_region_list - Lists all regions
  • get_region_info - Details about a specific region (requires regionId)

AppRun Container Management

  • get_apprun_list - Lists all AppRun applications
  • get_apprun_info - Details about a specific AppRun app (requires appId)
  • create_apprun - Creates a new AppRun application (requires name, dockerImage, planId)
  • delete_apprun - Deletes an AppRun application (requires appId)
  • start_apprun - Starts an AppRun application (requires appId)
  • stop_apprun - Stops an AppRun application (requires appId)
  • update_apprun - Updates an existing AppRun application (requires appId)
  • get_apprun_logs - Gets logs from an AppRun application (requires appId)

Other Resources

  • get_icon_list - Lists all icons
  • get_icon_info - Details about a specific icon (requires iconId)
  • get_note_list - Lists all notes and startup scripts
  • get_note_info - Details about a specific note (requires noteId)
  • get_sshkey_list - Lists all SSH keys
  • get_sshkey_info - Details about a specific SSH key (requires sshkeyId)
  • get_product_info - Details about product offerings (requires productType)
  • get_commonserviceitem_list - Lists all common service items
  • get_commonserviceitem_info - Details about a specific service item (requires itemId)
  • get_license_list - Lists all licenses
  • get_license_info - Details about a specific license (requires licenseId)
  • get_bill_info - Billing information for a specific month (requires year, month)
  • get_bill_detail - Detailed billing for a specific month (requires year, month)
  • get_coupon_info - Information about a specific coupon (requires couponId)
  • get_privatehost_info - Information about a private host (requires privateHostId)
  • get_public_price - Public pricing information (no auth required)

Zone Support

All API calls support specifying a zone parameter to target specific Sakura Cloud data centers:

  • Default zone: tk1v (Tokyo)
  • Other zones: is1a (Ishikari), tk1a (Tokyo), etc.

Example URI with zone parameter: sakura:///servers?zone=is1a

AppRun Integration

This MCP server provides full AppRun container management:

  • View all AppRun applications
  • Create new applications with custom Docker images
  • Update existing applications (change image, configuration)
  • Start and stop applications
  • View application logs
  • Delete applications when no longer needed

When creating or updating an AppRun application, you can specify:

  • Application name and description
  • Docker image to use
  • Plan ID (resource allocation)
  • Environment variables as key-value pairs

Integrating with Claude

To use this server with Claude Desktop app:

  1. Ensure the server is running locally or on an accessible host.

  2. Create a claude_desktop_config.json file in the appropriate location:

    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Linux: ~/.config/Claude/claude_desktop_config.json
  3. Add the following configuration:

{
  "sacloud-server": {
    "command": "node",
    "args": ["path/to/mcp/dist/server.js"],
    "env": {
      "SACLOUD_API_TOKEN": "your_token_here",
      "SACLOUD_API_SECRET": "your_secret_here"
    }
  }
}
  1. Restart the Claude Desktop app to apply the configuration.

  2. In your conversation with Claude, you can now access Sakura Cloud resources and tools.

How to add this MCP server to 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 > MCP and click "Add new global MCP server".

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

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

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 explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

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