
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
MCPデジタルオーシャン統合
概要
MCP DigitalOcean Integrationは、DigitalOceanリソースの管理とDigitalOcean APIを用いたアクション実行のための包括的なインターフェースを提供するオープンソースプロジェクトです。godoライブラリとMCPフレームワークの上に構築されたこのプロジェクトは、クラウドインフラ管理を簡素化するための幅広いツールを公開しています。 「DigitalOceanアカウントと連携するためにMCP技術を使用することにはリスクが伴う可能性があります」 DigitalOcean APIトークンを設定ファイル(例:claude_desktop_config.json、~/.cursor/config.json、VS Code設定)に直接貼り付けないでください。これらのファイルをGitHubにコミットすると、トークンが公開され、GitHubは自動的にアカウントを保護するためにブロックまたは取り消します。 安全な方法は、トークンを自分のマシンに保存し、設定ファイルから参照することです。クライアントインストールを進める前に、以下の手順に従ってオペレーティングシステムに適用してください。 2. どのシェルを使っているかを決める:- /bin/zsh → 出れば編集 ~/。
概要(AI 翻訳)
MCP DigitalOcean Integrationは、DigitalOceanリソースの管理とDigitalOcean APIを用いたアクション実行のための包括的なインターフェースを提供するオープンソースプロジェクトです。godoライブラリとMCPフレームワークの上に構築されたこのプロジェクトは、クラウドインフラ管理を簡素化するための幅広いツールを公開しています。
免責事項: 「DigitalOceanアカウントと連携するためにMCP技術を使用することにはリスクが伴う可能性があります」
認証
ホスト(リモート)MCPサーバーは、認証方法を2つサポートしています。
- OAuth 2.0(推奨)。 サーバーURLを追加するだけで
Authorizationヘッダーは付けません。クライアントは初回使用時にブラウザを開きDigitalOceanにサインインするため、トークンの作成、保存、回転が不要です。サポートされているクライアント(例:最近のClaudeやCursor)はこれを自動で処理し、以下のステップ1–2は省略できます。 - APIトークン。 ローカルインストールやOAuth対応のないクライアントの場合は、
Authorization: Bearerヘッダー(リモート)またはDIGITALOCEAN_API_TOKEN環境変数(ローカル)を通じてDigitalOceanのパーソナルアクセストークンを使用します。以下のステップ1–2を参照してください。
セキュリティ:APIトークンを決してハードコードしないでください
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
MCP DigitalOcean Integration
MCP DigitalOcean Integration is an open-source project that provides a comprehensive interface for managing DigitalOcean resources and performing actions using the DigitalOcean API. Built on top of the godo library and the MCP framework, this project exposes a wide range of tools to simplify cloud infrastructure management.
DISCLAIMER: “Use of MCP technology to interact with your DigitalOcean account can come with risks”
Authentication
The hosted (remote) MCP servers support two ways to authenticate:
- OAuth 2.0 (recommended). Just add the server URL — no
Authorizationheader. Your client opens a browser to sign in to DigitalOcean on first use, so there’s no token to create, store, or rotate. Supported clients (e.g. recent Claude and Cursor) handle this automatically, and you can skip Steps 1–2 below. - API token. For local installs or clients without OAuth support, use a DigitalOcean personal access token via an
Authorization: Bearerheader (remote) or theDIGITALOCEAN_API_TOKENenvironment variable (local). See Steps 1–2 below.
Security: Never Hardcode Your API Token
WARNING: Do NOT paste your DigitalOcean API token directly into any config file (e.g.,
claude_desktop_config.json,~/.cursor/config.json, VS Code settings). If you commit these files to GitHub, your token will be exposed and GitHub will automatically block or revoke it to protect your account.
The safe approach is to store your token in an environment variable on your machine and reference it from your config file. Follow the steps below for your operating system before proceeding with any client installation.
Step 1: Set Up Your API Token as an Environment Variable
macOS / Linux
Option A: Set it in your shell profile (Recommended — persists across reboots)
-
Open a terminal.
-
Determine which shell you are using:
echo $SHELL- If it outputs
/bin/zsh→ edit~/.zshrc - If it outputs
/bin/bash→ edit~/.bashrcor~/.bash_profile
- If it outputs
-
Open the file in a text editor:
# For zsh (default on macOS Monterey and later) nano ~/.zshrc # For bash nano ~/.bashrc -
Add the following line at the bottom of the file:
export DIGITALOCEAN_API_TOKEN="your_actual_token_here"Replace
your_actual_token_herewith your real token from the DigitalOcean API Tokens page. -
Save and exit:
- In
nano: pressCtrl + O, thenEnterto save, thenCtrl + Xto exit.
- In
-
Reload your shell to apply the change:
source ~/.zshrc # or source ~/.bashrc -
Verify it is set correctly:
インストール
npx mcp-remote https://apps.mcp.digitalocean.com/mcp設定
{
"mcpServers": {
"digitalocean-apps": {
"command": "npx",
"args": ["mcp-remote", "https://apps.mcp.digitalocean.com/mcp"]
}
}
}