DL

digitalocean-labs/mcp-digitalocean

Developer tools公式

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

138 stars 96 forks 品質 90 トレンド 36MIT

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 Authorization header. 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: Bearer header (remote) or the DIGITALOCEAN_API_TOKEN environment 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

  1. Open a terminal.

  2. Determine which shell you are using:

    echo $SHELL
    
    • If it outputs /bin/zsh → edit ~/.zshrc
    • If it outputs /bin/bash → edit ~/.bashrc or ~/.bash_profile
  3. Open the file in a text editor:

    # For zsh (default on macOS Monterey and later)
    nano ~/.zshrc
    
    # For bash
    nano ~/.bashrc
    
  4. Add the following line at the bottom of the file:

    export DIGITALOCEAN_API_TOKEN="your_actual_token_here"
    

    Replace your_actual_token_here with your real token from the DigitalOcean API Tokens page.

  5. Save and exit:

    • In nano: press Ctrl + O, then Enter to save, then Ctrl + X to exit.
  6. Reload your shell to apply the change:

    source ~/.zshrc    # or source ~/.bashrc
    
  7. Verify it is set correctly:

GitHub で README 全文を見る

インストール

npx mcp-remote https://apps.mcp.digitalocean.com/mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "digitalocean-apps": { "command": "npx", "args": ["mcp-remote", "https://apps.mcp.digitalocean.com/mcp"] } } }