Package Exports
- @digitalocean/mcp
- @digitalocean/mcp/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@digitalocean/mcp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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”
Installation
Prerequisites:
- Node.js (v18 or later)
- NPM (v8 or later)
Local Installation
npx @digitalocean/mcp --services apps,droplets --log-level debugUsing Cursor IDE
{
"mcpServers": {
"digitalocean": {
"command": "npx",
"args": ["@digitalocean/mcp", "--services apps"],
"env": {
"DIGITALOCEAN_API_TOKEN": "YOUR_API_TOKEN"
}
}
}
}Using VSCode
{
"mcp": {
"inputs": [],
"servers": {
"mcpDigitalOcean": {
"command": "npx",
"args": [
"@digitalocean/mcp",
"--services",
"apps"
],
"env": {
"DIGITALOCEAN_API_TOKEN": "YOUR_API_TOKEN"
}
}
}
}
}Supported Services
The MCP DigitalOcean Integration supports the following services, allowing users to manage their DigitalOcean infrastructure effectively
| Service | Description |
|---|---|
| Apps | Manage DigitalOcean App Platform applications, including deployments and configurations. |
| Droplets | Create, manage, resize, snapshot, and monitor droplets (virtual machines) on DigitalOcean. |
| Account | Get information about your DigitalOcean account, billing, balance, invoices, and SSH keys. |
| Networking | Manage domains, DNS records, certificates, firewalls, reserved IPs, VPCs, CDNs, and Partner Network attachments. |
| Insights | Monitors your resources, endpoints and alert you when they're slow, unavailable, or SSL certificates are expiring. |
| Spaces | DigitalOcean Spaces object storage and Spaces access keys for S3-compatible storage. |
Service Documentation
Each service provides a detailed README describing all available tools, resources, arguments, and example queries. See the following files for full documentation:
- Apps Service
- Droplet Service
- Account Service
- Networking Service
- DBaaS Service
- Insights Service
- Spaces Service
Example Tool Usage
- Deploy an app from a GitHub repo:
digitalocean-create-app-from-spec - Resize a droplet:
digitalocean-droplet-resize - Add a new SSH key:
digitalocean-key-create - Create a new domain:
digitalocean-domain-create - Enable backups on a droplet:
digitalocean-droplet-enable-backups - Flush a CDN cache:
digitalocean-cdn-flush-cache - Create a VPC peering connection:
digitalocean-vpc-peering-create - Delete a VPC peering connection:
digitalocean-vpc-peering-delete
Configuring Tools
To configure tools, you use the --services flag to specify which service you want to enable. It is highly recommended to only
enable the services you need to reduce context size and improve accuracy.
npx @digitalocean/mcp --services apps,dropletsContributing
Contributions are welcome! If you encounter any issues or have ideas for improvements, feel free to open an issue or submit a pull request.
How to Contribute
- Fork the repository.
- Create a new branch for your feature or bug fix.
- 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.