
DigitalOcean
STDIOComprehensive interface for managing DigitalOcean resources through API integration
Comprehensive interface for managing DigitalOcean resources through API 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"
You can find installation guides at https://nodejs.org/en/download
Verify your installation:
node --version npm --version
To verify the MCP server works correctly, you can test it directly from the command line:
npx @digitalocean/mcp --services apps
To add the DigitalOcean MCP server to Claude Code, run the following command in your terminal:
claude mcp add digitalocean-mcp \ -e DIGITALOCEAN_API_TOKEN=YOUR_DO_API_TOKEN \ -- npx @digitalocean/mcp --services apps,databases
This will:
digitalocean-mcp
.apps
and databases
services.~/.claude.json
, scoped to the current folder.To confirm it's been added:
claude mcp list
To inspect details:
claude mcp get digitalocean-mcp
To remove it:
claude mcp remove digitalocean-mcp
Alternatively, add the following to your claude_desktop_config.json file.
{ "mcpServers": { "digitalocean": { "command": "npx", "args": ["@digitalocean/mcp", "--services apps"], "env": { "DIGITALOCEAN_API_TOKEN": "YOUR_API_TOKEN" } } } }
Local scope is great when you're testing or only using the server in one project. User scope is better if you want it available everywhere.
If you'd like to make the server available globally (so you don't have to re-add it in each project), you can use the user
scope:
claude mcp add -s user digitalocean-mcp-user-scope \ -e DIGITALOCEAN_API_TOKEN=YOUR_DO_API_TOKEN \ -- npx @digitalocean/mcp --services apps,databases
This will:
~/.claude.json
To remove it:
claude mcp remove -s user digitalocean-mcp-user-scope
Add the following to your Cursor settings file located at ~/.cursor/config.json
:
{ "mcpServers": { "digitalocean": { "command": "npx", "args": ["@digitalocean/mcp", "--services apps"], "env": { "DIGITALOCEAN_API_TOKEN": "YOUR_API_TOKEN" } } } }
Shift + ⌘ + P
on Mac or Ctrl+ Shift + P
on Windows/Linux )To check MCP server logs and debug issues:
In Cursor's chat, try asking: "List all my DigitalOcean apps" - this should trigger the MCP server to fetch your apps if properly configured. If you are getting an 401 error or authentication related errors, it is likely due to misconfiguring your access token.
Add the following to your VS Code MCP configuration file:
{ "mcp": { "inputs": [], "servers": { "mcpDigitalOcean": { "command": "npx", "args": [ "@digitalocean/mcp", "--services", "apps" ], "env": { "DIGITALOCEAN_API_TOKEN": "YOUR_API_TOKEN" } } } } }
Shift + ⌘ + P
on Mac or Ctrl+ Shift + P
on Windows/Linux )To see what tools are available from the MCP server:
MCP Server: mcpDigitalocean
. You should be able to list available tools like app-create
, app-list
, app-delete
, etc.To troubleshoot MCP connections:
If you are getting an 401 error or authentication related errors, it is likely due to misconfiguring your access token.
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. See list of supported services below.
npx @digitalocean/mcp --services apps,droplets
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. |
accounts | Get information about your DigitalOcean account, billing, balance, invoices, and SSH keys. |
networking | Manage domains, DNS records, certificates, firewalls, reserved IPs, VPCs, and CDNs. |
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. |
databases | Provision, manage, and monitor managed database clusters (Postgres, MySQL, Redis, etc.). |
marketplace | Discover and manage DigitalOcean Marketplace applications. |
doks | Manage DigitalOcean Kubernetes clusters and node pools. |
Each service provides a detailed README describing all available tools, resources, arguments, and example queries. See the following files for full documentation:
create-app-from-spec
droplet-resize
key-create
domain-create
droplet-enable-backups
cdn-flush-cache
vpc-peering-create
vpc-peering-delete
Contributions are welcome! If you encounter any issues or have ideas for improvements, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.