Sakura Cloud MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
git clone https://github.com/sacloud/sacloud-mcp.git
cd sacloud-mcp
uv sync
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add sacloud-mcp -- node "<FULL_PATH_TO_SACLOUD_MCP>/dist/index.js"

Replace <FULL_PATH_TO_SACLOUD_MCP>/dist/index.js with the actual folder you prepared in step 1.

README.md

An MCP server for Sakura Cloud to manage infrastructure and object storage.

sacloud/sacloud-mcp

概要

sacloud/sacloud-mcpはさくらのクラウド向けMCPサーバです。

開発環境の構築

必要ツール

プロジェクトのクローン

git clone https://github.com/sacloud/sacloud-mcp.git

uvのインストール

より詳細なインストール方法・使用方法については、uvのドキュメントを参照してください。

curl -LsSf https://astral.sh/uv/install.sh | sh

環境構築同期

uv sync

LLMへMCPをインストール

任意のLLMへMCPをインストールする。 一例としてclaude desktopでの設定を示す。

claude desktopの設定ファイルに以下を追記する。 なお、設定ファイルの位置はOS毎に以下の通りである。

  • macOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "sacloud": {
      "command": "${HOME}/.local/bin/uv",
      "args": [
        "--directory",
        "<<MCPサーバーのルートディレクトリ>>/src",
        "run",
        "main.py"
      ],
      "env": {
        "<<環境変数1>>": "<<値をコピーしてここへ貼り付ける>>",
        "<<環境変数2>>": "<<値をコピーしてここへ貼り付ける>>"
      }
    }
  }
}

<<>>で示された要素について、以下を参考に適宜置き換える。

  • MCPサーバーのルートディレクトリ
    • 例: /Users/user/Source/sacloud-mcp
  • 環境変数
    • 使用する機能に応じて環境変数を設定。
      • さくらのクラウドのリソースにアクセスする場合、さくらのクラウドのAPIキーを参照して置き換える。
        • "ACCESS_TOKEN": "<<値をコピーしてここへ貼り付ける>>"
        • "ACCESS_TOKEN_SECRET": "<<値をコピーしてここへ貼り付ける>>"
      • さくらのオブジェクトストレージにアクセスする場合、さくらのオブジェクトストレージのAPIキーを参照して置き換える。
        • "OBJECTSTORAGE_ACCESS_KEY_ID": "<<値をコピーしてここへ貼り付ける>>"
        • "OBJECTSTORAGE_SECRET_ACCESS_KEY": "<<値をコピーしてここへ貼り付ける>>"

テスト

構成について

tests/conftest.pyには、全テストファイルで利用可能なfixtureが定義されており、 すべてのテストファイルから明示的なimport不要で利用できる。

準備

環境変数から認証情報を取得するため、テスト実行前にACCESS_TOKENACCESS_TOKEN_SECRET設定する

export ACCESS_TOKEN=xxxxxxxxxxxxxxxxxxxx
export ACCESS_TOKEN_SECRET=xxxxxxxxxxxxxxxxxxxx
export OBJECTSTORAGE_ACCESS_KEY_ID=xxxxxxxxxxxxxxxxxxxx
export OBJECTSTORAGE_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxx

テスト実行

uv run pytest

License

sacloud-mcp Copyright (C) 2025- The sacloud/sacloud-mcp authors. This project is published under Apache 2.0 License.

Environment Variables

ACCESS_TOKENSakura Cloud API Access Token
ACCESS_TOKEN_SECRETSakura Cloud API Access Token Secret
OBJECTSTORAGE_ACCESS_KEY_IDSakura Object Storage Access Key ID
OBJECTSTORAGE_SECRET_ACCESS_KEYSakura Object Storage Secret Access Key

Configuration

claude_desktop_config.json
{"mcpServers": {"sacloud": {"command": "uv", "args": ["--directory", "/path/to/sacloud-mcp/src", "run", "main.py"], "env": {"ACCESS_TOKEN": "your_token", "ACCESS_TOKEN_SECRET": "your_secret", "OBJECTSTORAGE_ACCESS_KEY_ID": "your_key_id", "OBJECTSTORAGE_SECRET_ACCESS_KEY": "your_secret_key"}}}}

Try it

List all my current Sakura Cloud server instances.
Check the status of my object storage buckets in Sakura Cloud.
Help me manage my Sakura Cloud infrastructure resources.

Frequently Asked Questions

What are the key features of Sakura Cloud MCP?

Interaction with Sakura Cloud infrastructure resources. Management of Sakura Cloud object storage. Natural language interface for cloud operations. Integration with Model Context Protocol compatible LLMs.

What can I use Sakura Cloud MCP for?

Automating cloud infrastructure status checks via natural language. Managing object storage buckets and files without a web console. Integrating Sakura Cloud resource management into AI-assisted workflows.

How do I install Sakura Cloud MCP?

Install Sakura Cloud MCP by running: git clone https://github.com/sacloud/sacloud-mcp.git && cd sacloud-mcp && uv sync

What MCP clients work with Sakura Cloud MCP?

Sakura Cloud MCP works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Sakura Cloud MCP docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare