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 and resources to simplify cloud infrastructure management.
DISCLAIMER: “Use of MCP technology to interact with your DigitalOcean account can come with risks”
Resources provide read-only access to DigitalOcean entities, allowing users to retrieve detailed information about their infrastructure. The following resources are supported:
Resource | Description |
---|---|
Droplets | Retrieve details about droplets, including actions and neighbors. |
Sizes | List all available droplet sizes. |
Account | Fetch account information. |
Balance | View current account balance. |
Billing | Access billing history. |
Invoices | Retrieve a list of all invoices. |
Actions | Get details about specific actions. |
Images | Retrieve information about distribution images or specific images. |
CDNs | Fetch details about CDN configurations. |
Certificates | Retrieve certificate details. |
Domains | Access domain and domain record information. |
Firewalls | Get details about firewalls. |
SSH Keys | Retrieve information about SSH keys. |
Regions | List all available regions. |
Reserved IPs | Fetch details about reserved IPv4 and IPv6 addresses. |
Partner Attachments | Retrieve partner attachment details. |
VPCs | Get information about Virtual Private Clouds (VPCs). |
Tools provide actionable capabilities for managing DigitalOcean resources. These tools are grouped by resource type and allow users to perform various operations. Below is an overview of the supported tools:
- Create, delete, resize, and rename droplets.
- Power on/off, reboot, and snapshot droplets.
- Manage backups, private networking, and IPv6.
- Create and delete CDNs.
- Flush CDN caches.
- Create and delete certificates.
- Retrieve certificate details.
- Create and delete domains.
- Manage domain records (create, edit, delete).
- Create and delete firewalls.
- Configure inbound and outbound rules.
- Create and delete SSH keys.
- Reserve and release IPv4/IPv6 addresses.
- Assign and unassign reserved IPs to/from droplets.
- Create, update, and delete partner attachments.
- Retrieve service keys and BGP configurations.
- Create and delete VPCs.
- List VPC members.
-
Clone the repository:
git clone https://github.com/your-repo/mcp-digitalocean.git cd mcp-digitalocean
-
Install dependencies:
go mod tidy
-
Build the project:
make build-bin
-
Set up your DigitalOcean API token:
export DO_TOKEN=your_token
-
Run the MCP server:
./bin/mcp-digitalocean
-
Use the tools and resources to interact with your DigitalOcean infrastructure.
Contributions are welcome! If you encounter any issues or have ideas for improvements, feel free to open an issue or submit a pull request.
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Submit a pull request with a clear description of your changes.
This project is licensed under the MIT License. See the LICENSE file for details.