Skip to main content
Glama

DigitalOcean MCP Server

by digitalocean

DigitalOcean MCP Server

This MCP server exposes DigitalOcean App Platform functionality through standardized tools that can be used by any MCP client, including Claude Desktop and Cursor. It enables AI assistants to directly manage your DigitalOcean apps without writing code or memorizing API endpoints.


📚 Table of Contents


🚀 What Can You Do With It?

You can now do things like:

  • Deploy a new app from a GitHub repo
  • Quickly redeploy an existing app with the latest changes
  • See logs, restart components, or delete old environments
  • Check available regions and create apps based on what’s supported
  • Build and deploy an app from scratch, entirely through your assistant

...and more!


🧰 Prerequisites

To use the DigitalOcean MCP Server, you’ll need:

💡 You do not need to install anything—this server runs via npx, with just a one-line config added to your MCP client.


⚙️ Setting up your DigitalOcean MCP Server

1. Generate Your API Token

Head to DigitalOcean’s API settings and create a new Personal Access Token with App Platform permissions.

2. Add the Server to Your MCP Client

Add this JSON snippet to your client’s MCP config file:

{ "mcpServers": { "digitalocean": { "command": "npx", "args": ["@digitalocean/mcp"], "env": { "DIGITALOCEAN_API_TOKEN": "YOUR_DO_TOKEN" } } } }

Here’s what each part of the snippet does:

    • command: how to launch the server (npx or full path)
    • args: the package name
    • env: insert your DO token here

Then follow the instructions for your specific tool:

Claude Desktop

  1. Go to Settings → Developer → Edit Config
  2. Add the snippet above to claude_desktop_config.json
  3. Replace YOUR_DO_TOKEN with your token
  4. Save and restart Claude Desktop
  5. You'll see “digitalocean” listed as an available server

Claude Desktop MCP Setup Setting up DigitalOcean MCP Server in Claude Desktop

Cursor

  1. Go to Settings → Cursor Settings → MCP → Add a new global MCP server
  2. Cursor will open ~/.cursor/mcp.json
  3. Add the snippet above to this json file
  4. Replace YOUR_DO_TOKEN with your token
  5. Save, and return to MCP Settings.
  6. You should now see “digitalocean” in Cursor’s MCP settings

Cursor MCP Setup Setting up DigitalOcean MCP Server in Cursor

Windsurf Setup

  1. In Windsurf: Settings → Windsurf Settings → Cascade → MCP → Add Server → Add custom server
  2. Windsurf will open ~/.codeium/windsurf/mcp_config.json
  3. Add the snippet above to this json file
  4. Replace YOUR_DO_TOKEN with your token
  5. Save, and return to MCP Settings.
  6. You should now see “digitalocean” in Windsurf's MCP settings

Windsurf MCP Setup

Setting up DigitalOcean MCP Server in Windsurf


💬 Example Prompts

Once it’s configured, try asking your assistant:

“List all active apps on my account” “Create a new app from https://github.com/do-community/do-one-click-deploy-flask with 1GB RAM in NYC3” “Show logs for checkout-service” “Cancel the current deployment for marketing-site” “Delete the old `staging-env` app”

The assistant will send the request → the MCP server talks to DigitalOcean → you get structured results, ready to act on.


Available Tools

CategoryCommands
Appslist_apps, create_app, get_app, update_app, delete_app, restart_app
Deploymentslist_deployments, create_deployment, get_deployment, cancel_deployment
Logsretrieve_active_deployment_logs, download_logs
Infralist_app_regions, list_instance_sizes
Alertslist_app_alerts, update_app_alert_destinations
Rollbacksvalidate_app_rollback, rollback_app, commit_app_rollback, revert_app_rollback
Metricsget_app_bandwidth_daily_metrics, get_all_app_bandwidth_daily_metrics
Validationvalidate_app_spec

Troubleshooting

The server doesn’t appear in your client?

  • Make sure your JSON config is saved and valid
  • Restart your MCP client (Claude, Cursor, Windsurf)

Token not working?

  • Check that it has App Platform access
  • Try generating a fresh one

JSON errors?

  • No trailing commas
  • No comments allowed in JSON

You can also test the server directly by running:

npx @digitalocean/mcp

Contributing

We’d love your help improving this! Bug reports, new features, and docs improvements are all welcome.

  1. Fork this repo
  2. Create a branch (git checkout -b feature/awesome-tool)
  3. Open a PR

License

This project is licensed under the MIT License.

-
security - not tested
F
license - not found
-
quality - not tested

A server that exposes DigitalOcean App Platform functionality through standardized tools, enabling AI assistants to directly manage your DigitalOcean apps without writing code or memorizing API endpoints.

  1. 📚 Table of Contents
    1. 🚀 What Can You Do With It?
      1. 🧰 Prerequisites
        1. ⚙️ Setting up your DigitalOcean MCP Server
          1. Generate Your API Token
          2. Add the Server to Your MCP Client
          3. Claude Desktop
          4. Cursor
          5. Windsurf Setup
        2. 💬 Example Prompts
          1. Available Tools
            1. Troubleshooting
              1. The server doesn’t appear in your client?
              2. Token not working?
              3. JSON errors?
            2. Contributing
              1. License

                Related MCP Servers

                • A
                  security
                  A
                  license
                  A
                  quality
                  A server that enhances AI assistants with the ability to update your JSON Resume by analyzing your coding projects, automatically extracting skills and generating professional descriptions.
                  Last updated -
                  3
                  32
                  39
                  TypeScript
                  The Unlicense
                  • Apple
                  • Linux
                • A
                  security
                  F
                  license
                  A
                  quality
                  A server that provides advanced mathematical and financial calculation capabilities for AI code assistants, enabling them to perform complex calculations like symbolic calculus, numerical methods, and financial analysis without implementing algorithms directly.
                  Last updated -
                  18
                  1
                  JavaScript
                • -
                  security
                  A
                  license
                  -
                  quality
                  A server that enables AI assistants to understand and interact with Unity projects in real-time, providing access to scene hierarchy, project settings, and the ability to execute code directly in the Unity Editor.
                  Last updated -
                  40
                  MIT License
                  • Linux
                  • Apple
                • -
                  security
                  F
                  license
                  -
                  quality
                  A Python-based server that enables AI assistants to interact with an Unraid server through the official Unraid GraphQL API, providing read-only access to system information, Docker containers, VMs, storage, and more.
                  Last updated -
                  2
                  Python
                  • Linux

                View all related MCP servers

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/digitalocean/digitalocean-mcp'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server