npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@iflow-mcp/mcp-digitalocean

v1.0.27

Published

DigitalOcean MCP Implementation,

Downloads

85

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"

Prerequisites

  • Node.js (v18 or later)
  • NPM (v8 or later)

You can find installation guides at https://nodejs.org/en/download

Verify your installation:

node --version
npm --version

Quick Test

To verify the MCP server works correctly, you can test it directly from the command line:

npx @digitalocean/mcp --services apps

Installation

Claude Code

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:

  • Add the MCP server under the default (local) scope — meaning it's only available inside the current folder.
  • Register it with the name digitalocean-mcp.
  • Enable the apps and databases services.
  • Pass your DigitalOcean API token securely to the server.
  • Store the configuration in your global Claude config at ~/.claude.json, scoped to the current folder.

Verify Installation

To confirm it's been added:

claude mcp list

Inspect Details

To inspect details:

claude mcp get digitalocean-mcp

Remove Server

To remove it:

claude mcp remove digitalocean-mcp

Claude Desktop

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"
      }
    }
  }
}

Claude Code (User Scope)

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:

  • Make the server available in all folders, not just the one you're in
  • Scope it to your user account
  • Store it in your global Claude config at ~/.claude.json

To remove it:

claude mcp remove -s user digitalocean-mcp-user-scope

Cursor

Install MCP Server

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"
      }
    }
  }
}

Verify Installation in Cursor

  1. Open Cursor and open Command Pallet ( Shift + ⌘ + P on Mac or Ctrl+ Shift + P on Windows/Linux )
  2. Search for "MCP" in the command pallet search bar
  3. Select "View: Open MCP Settings"
  4. Select "Tools & Integrations" from the left sidebar
  5. You should see "digitalocean" listed under Available MCP Servers
  6. Click on "N tools enabled" (N is the number of tools currently enabled).

Debugging in Cursor

To check MCP server logs and debug issues:

  1. Open the Command Palette (⌘+Shift+P on Mac or Ctrl+Shift+P on Windows/Linux)
  2. Type "Developer: Toggle Developer Tools" and press Enter
  3. Navigate to the Console tab to view MCP server logs
  4. You'll find MCP related logs as you interact with the MCP server

Testing the Connection

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.

VS Code

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"
        }
      }
    }
  }
}

Verify Installation in VS Code

  1. Open Cursor and open Command Pallet ( Shift + ⌘ + P on Mac or Ctrl+ Shift + P on Windows/Linux )
  2. Search for "MCP" in the command pallet search bar
  3. Select "MCP: List Servers"
  4. Verify that "mcpDigitalOcean" appears in the list of configured servers

Viewing Available Tools

To see what tools are available from the MCP server:

  1. Open the Command Palette (⌘+Shift+P on Mac or Ctrl+Shift+P on Windows/Linux)
  2. Select "Agent" mode in the chatbox,
  3. Click "Configure tools" on the right, and check for digitalocean related tools under MCP Server: mcpDigitalocean. You should be able to list available tools like app-create, app-list, app-delete, etc.

Debugging in VS Code

To troubleshoot MCP connections:

  1. Open the Command Palette (⌘+Shift+P on Mac or Ctrl+Shift+P on Windows/Linux)
  2. Type "Developer: Toggle Developer Tools" and press Enter
  3. Navigate to the Console tab to view MCP server logs
  4. Check for connection status and error messages

If you are getting an 401 error or authentication related errors, it is likely due to misconfiguring your access token.

Configuration

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

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. | | accounts | Get information about your DigitalOcean account, billing, balance, invoices, and SSH keys. | | networking | Manage domains, DNS records, certificates, firewalls, load balancers, reserved IPs, BYOIP Prefixes, 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. |

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

  • 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

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.