Labsco
digitalocean-labs logo

MCP DigitalOcean Integration

β˜… 118

from digitalocean-labs

Manage DigitalOcean resources and perform actions using the DigitalOcean API.

πŸ”₯πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedPaid serviceNeeds API keys

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"


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 2: Get Your DigitalOcean API Token

  1. Log in to your DigitalOcean account.
  2. Navigate to API β†’ Tokens in the left sidebar, or go directly to: https://cloud.digitalocean.com/account/api/tokens
  3. Click "Generate New Token".
  4. Give it a name (e.g., mcp-local-dev), set expiry, and choose the required scopes.
  5. Copy the token immediately β€” it will only be shown once.
  6. Store it using one of the methods described in Step 1 above.

Step 3: Protect Your Token β€” Checklist

Before pushing any code to GitHub, verify the following:

  • Your .env file (if used) is listed in .gitignore
  • No config file contains a raw token string like dop_v1_...
  • Config files use ${DIGITALOCEAN_API_TOKEN}, ${env:DIGITALOCEAN_API_TOKEN}, or ${input:...} syntax
  • You have run git diff or git status to confirm no secrets are staged
  • You have never committed a token β€” if you have, rotate it immediately and revoke the old one

If your token was already committed: Go to the DigitalOcean API Tokens page, delete the compromised token, and generate a new one. GitHub's secret scanning will detect and flag exposed tokens automatically.


Documentation

Each service provides a detailed README describing all available tools, resources, arguments, and example queries. See the following files for full documentation:

Example Tools

  • Search Catalog models by name: inference-model-catalog-search
  • Open full metadata for one catalog model: inference-model-catalog-get-card
  • Deploy an app from a GitHub repo: create-app-from-spec
  • Resize a droplet: droplet-resize
  • Add a new SSH key: key-create
  • Create a new domain: domain-create
  • Enable backups on a droplet: droplet-enable-backups
  • Flush a CDN cache: cdn-flush-cache
  • Create a VPC peering connection: vpc-peering-create
  • Delete a VPC peering connection: vpc-peering-delete
  • Search DigitalOcean documentation: docs-search
  • Get a quickstart guide for a service: docs-get-quickstart

Contributing

Contributions are welcome! If you encounter any issues or have ideas for improvements, feel free to open an issue or submit a pull request.

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Submit a pull request with a clear description of your changes.

License

This project is licensed under the MIT License. See the LICENSE file for details.