DigitalOcean MCP server
47 operations0 webhooks
Cloud infrastructure provider for droplets, Kubernetes, databases, and developer hosting.
Try DigitalOcean with your agent
Connect DigitalOcean, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.
Using Corsair, show me what you can do in DigitalOcean on my account, then run one read-only example and show me the result.
DigitalOcean tools and triggers
Tools are what your agent can do in DigitalOcean through Corsair's MCP server. Triggers are the DigitalOcean events a routine can start from.
Tags
- Create New TagWrite
Creates a new tag in DigitalOcean for organizing and grouping resources. Tags can be applied to droplets, images, volumes, volume snapshots, and databases. If a tag with the same name already exists, the API returns the existing tag (idempotent operation). Tag names must be 1-255 characters containing only letters, numbers, hyphens, or underscores.
tags.createNewTag
- Delete TagDestructive
Deletes a tag from your DigitalOcean account. When a tag is deleted, it is automatically removed from all resources that were tagged with it. This operation is idempotent - deleting a non-existent tag will also return success (204 No Content).
tags.deleteTag
- List All TagsRead-only
Tool to list all tags in your account. Use when you need to retrieve available tags and pagination info. A single request returns only one page of results; iterate using `page` and `per_page` to retrieve all tags.
tags.listAllTags
- Retrieve TagRead-only
Tool to retrieve an individual tag by name. Use when you need to inspect the resources grouped under a specific tag.
tags.retrieveTag
- Tag ResourceWrite
Tool to tag resources by name. Use when you need to assign an existing tag to one or more resources. Returns 204 No Content on success.
tags.tagResource
- Untag ResourceDestructive
Tool to untag resources by tag name. Use when you need to remove an existing tag from multiple resources in a single operation.
tags.untagResource
Domain Records
- Create New Domain RecordWrite
Tool to create a new DNS record for a domain. Use after confirming domain exists and record specifics.
domainRecords.createNewDomainRecord
- Delete Domain RecordDestructive
Tool to delete a DNS record by its record ID for a domain. Use when you need to remove an existing DNS record and have the domain name and record ID. Returns HTTP 204 No Content on success.
domainRecords.deleteDomainRecord
- List Domain RecordsRead-only
Tool to list all DNS records for a domain. Use when you need to inspect or filter a domain's DNS configuration.
domainRecords.listDomainRecords
- Retrieve Domain RecordRead-only
Tool to retrieve a specific DNS record for a domain by its record ID. Use when you have the domain name and record ID to fetch record details.
domainRecords.retrieveDomainRecord
- Update Domain RecordWrite
Tool to update an existing DNS record for a domain. Use when you need to modify any valid attribute of a record after confirming its record ID.
domainRecords.updateDomainRecord
Vpcs
- Create New VpcWrite
Creates a new Virtual Private Cloud (VPC) in a specified DigitalOcean region. VPCs are private networks for isolating your resources. Traffic within a VPC is free and doesn't count toward bandwidth limits. VPCs support Droplets, managed databases, load balancers, and Kubernetes clusters. The first VPC created in a region automatically becomes the default VPC for that region.
vpcs.createNewVpc
- Delete VpcDestructive
Delete a VPC (Virtual Private Cloud) by its unique identifier. Use this tool when you need to permanently remove a VPC from your DigitalOcean account. Deletion is irreversible — always confirm the vpc_id with the user before proceeding. **Important Restrictions:** - Cannot delete a VPC that is the default VPC for its region - Cannot delete a VPC that has member resources (droplets, databases, load balancers, etc.) — all resources must be detached or migrated first - VPC must be empty before deletion Returns an empty response (HTTP 204) on successful deletion.
vpcs.deleteVpc
- List All VpcsRead-only
Tool to list all VPCs on your account. Use when you need an inventory of your VPC resources. A single request returns only one page; iterate through all pages using `page` and `per_page` (max 200) to retrieve the complete set.
vpcs.listAllVpcs
- Retrieve VpcRead-only
Tool to retrieve details about a specific VPC by its ID. Use when you need to inspect VPC properties for configuration or auditing.
vpcs.retrieveVpc
- Update VpcWrite
Tool to update information about a VPC. Use when you need to modify the name, description, or default status of an existing VPC.
vpcs.updateVpc
Databases
- Create Database ClusterWrite
Creates a new managed database cluster on DigitalOcean. Provisions a database with specified engine (PostgreSQL, MySQL, Valkey, MongoDB, Kafka, or OpenSearch), version, region, size, and node count. Returns connection credentials and cluster details. The cluster will be in 'creating' status initially and take several minutes to become fully operational.
databases.createDatabaseCluster
- Delete Database ClusterDestructive
Tool to delete a database cluster by UUID. Use when you have confirmed the cluster is no longer needed. Returns HTTP 204 No Content on success.
databases.deleteDatabaseCluster
- List All DatabasesRead-only
Tool to list all managed database clusters on your account. Supports pagination and filtering by tag. A single request returns only one page; iterate using `page` and `per_page` to retrieve all clusters.
databases.listAllDatabases
- List Database OptionsRead-only
Lists all available configuration options for DigitalOcean managed database clusters, including supported engines (PostgreSQL, MySQL, MongoDB, Valkey, Kafka, OpenSearch), versions, regions, and cluster sizes/layouts. Use this to discover valid parameter values when creating a new database cluster. #### Output | Parameter | Type | Required | Description | |-----------|------|----------|-------------| | `data` | string | Yes | Data from the action execution | | `error` | string | No | Error if any occurred during the execution of the action | | `successful` | boolean | Yes | Whether or not the action execution was successful or not |
databases.listDatabaseOptions
Domains
- Create New DomainWrite
Creates a new domain in DigitalOcean's DNS management system. This adds the domain to your DigitalOcean account and allows you to manage its DNS records. Use this action when you need to: - Add a domain to DigitalOcean DNS for DNS hosting and management - Set up a new domain with an optional initial A record pointing to an IP address - Transfer DNS management of an existing domain to DigitalOcean Note: The domain name must be unique within your DigitalOcean account and use a recognized top-level domain (TLD). After creation, you can add additional DNS records using the create domain record action.
domains.createNewDomain
- Delete DomainDestructive
Deletes a domain from DigitalOcean DNS. This action is permanent and cannot be undone. Note: If the domain is associated with a Let's Encrypt certificate, delete the certificate first and reconfigure any resources using it (e.g., load balancer SSL termination, Spaces CDN endpoints). Returns 204 No Content on successful deletion.
domains.deleteDomain
- List All DomainsRead-only
Lists all DNS domains configured in your DigitalOcean account. Returns domain names, TTL values, and complete zone files. Supports pagination for large domain lists. Use this action to discover available domains, check domain configurations, or as a prerequisite for domain-specific operations like managing DNS records. No parameters are required - calling without parameters returns the first 20 domains (default page size).
domains.listAllDomains
- Retrieve DomainRead-only
Retrieves complete details about a specific domain including its TTL and DNS zone file configuration. Use this when you need to check domain settings, verify DNS configuration, or get the full zone file contents for a domain in your DigitalOcean account.
domains.retrieveDomain
Droplets
- Create New DropletWrite
Tool to create a new Droplet. Use when you need to provision a VM with name, region, size, and image. The `image`, `region`, and `size` must be mutually compatible — the chosen `region` must be listed in the image's available regions.
droplets.createNewDroplet
- Delete Existing DropletDestructive
Tool to delete a Droplet by ID. Deletion is irreversible — all data is permanently lost. Confirm droplet_id with the user and verify a backup or snapshot exists before proceeding.
droplets.deleteExistingDroplet
- List All DropletsRead-only
Lists all Droplets (virtual machines) in your DigitalOcean account with pagination support. Returns detailed information including: ID, name, specs (memory, vCPUs, disk), status, networking (IP addresses), region, image, size, tags, and VPC. Supports filtering by tag and pagination for large result sets. Use this to get an overview of your infrastructure, find specific droplets, or monitor droplet status. Default page size is 20; accounts with more droplets require explicit pagination (increment `page`, up to `per_page=200`) to avoid silently incomplete results.
droplets.listAllDroplets
- Retrieve Existing DropletRead-only
Retrieve detailed information about a specific DigitalOcean Droplet by its unique numeric ID. Returns comprehensive droplet details including: current status, specifications (memory, CPU, disk), networking configuration (IPv4/IPv6 addresses), image information, region, VPC, backup settings, attached volumes, and tags. Use this when you need to check a droplet's current state, configuration, or IP addresses.
droplets.retrieveExistingDroplet
Images
- Create Custom ImageWrite
Creates a custom image in DigitalOcean by importing a Linux VM disk image from a publicly accessible URL. Use this action to upload custom OS images (Ubuntu, Debian, CentOS, Fedora, etc.) that can later be used to create Droplets. The image will be processed asynchronously and its status can be monitored via the returned image ID.
images.createCustomImage
- Delete ImageDestructive
Deletes a user-created custom image or snapshot from your DigitalOcean account by its numeric ID. This action permanently removes the image and cannot be undone. Only custom images and snapshots you own can be deleted - attempting to delete distribution images or marketplace applications will fail with a 403 Forbidden error. Use this when cleaning up unused images that are no longer needed and have no dependent resources.
images.deleteImage
- List All ImagesRead-only
Tool to list all images available on your account. Use after obtaining a valid API token to retrieve images optionally filtered by type, private visibility, or tag_name.
images.listAllImages
- Retrieve Existing ImageRead-only
Tool to retrieve information about an image by ID or slug. Use when you need detailed metadata for a known image.
images.retrieveExistingImage
Firewalls
- Create New FirewallWrite
Creates a new cloud firewall with custom inbound and outbound rules. Use this action to set up network security rules that control traffic to and from your Droplets. You can specify rules using IP addresses (CIDR notation), Droplet IDs, tags, Load Balancer UUIDs, or Kubernetes cluster IDs. The firewall can be applied to specific Droplets, all Droplets with certain tags, or scoped to a VPC. Requires at least one inbound rule and one outbound rule. Supports tcp, udp, and icmp protocols.
firewalls.createNewFirewall
- Delete FirewallDestructive
Tool to delete a firewall by ID. Use when you have confirmed the firewall is no longer needed.
firewalls.deleteFirewall
- List All FirewallsRead-only
List all cloud firewalls configured in your DigitalOcean account. Returns comprehensive firewall details including inbound/outbound rules, associated droplets, tags, and status. Supports pagination for accounts with many firewalls. Use this to audit network security, discover existing firewall configurations, or retrieve firewall IDs for subsequent operations.
firewalls.listAllFirewalls
Load Balancers
- Create New Load BalancerWrite
Tool to create a new load balancer. Use after specifying region, forwarding rules, and targets.
loadBalancers.createNewLoadBalancer
- Delete Load BalancerDestructive
Tool to delete a load balancer instance by ID. Use when you need to permanently remove an existing load balancer after confirming its ID. Returns 204 No Content on success.
loadBalancers.deleteLoadBalancer
- List All Load BalancersRead-only
List all load balancers in your DigitalOcean account with pagination support. Returns load balancer details including IDs, names, IP addresses, forwarding rules, health checks, sticky sessions, assigned Droplets, and region information. Use this to get an overview of all load balancers or to find specific load balancers by iterating through results.
loadBalancers.listAllLoadBalancers
Ssh Keys
- Create New Ssh KeyWrite
Registers a new SSH public key with your DigitalOcean account. The registered key can then be automatically added to new Droplets during creation, enabling secure SSH access. The key must be provided in OpenSSH format (ssh-rsa, ssh-ed25519, etc.) and must not already exist on the account.
sshKeys.createNewSshKey
- Delete Ssh KeyDestructive
Tool to delete a public SSH key. Use when you need to remove an SSH key from your account by its ID or fingerprint after confirming its ownership. Returns 204 No Content on success.
sshKeys.deleteSshKey
- List All Ssh KeysRead-only
Lists all SSH keys associated with your DigitalOcean account. Returns SSH key details including ID, name, public key content, and fingerprint. Supports pagination for accounts with many SSH keys. Use this when you need to view available SSH keys or retrieve an SSH key ID for use with other operations like creating droplets.
sshKeys.listAllSshKeys
Volumes
- Create New Block Storage VolumeWrite
Tool to create a new block storage volume. Use when you need to provision persistent block storage after confirming the target region supports volumes. Example: "Create a 100 GiB ext4 backup volume named 'db-backup' in nyc1."
volumes.createNewBlockStorageVolume
- Delete Block Storage VolumeDestructive
Permanently deletes a block storage volume by its unique ID. Use this tool when you need to remove an existing volume. The volume must not be attached to any Droplet before deletion. This operation cannot be undone. Returns HTTP 204 No Content on success. Note: To delete by volume name instead of ID, you would need a different endpoint that accepts both name and region parameters.
volumes.deleteBlockStorageVolume
- List All VolumesRead-only
Tool to list all block storage volumes available on your account. Use when you need to retrieve volumes and optionally filter by name and region.
volumes.listAllVolumes
Kubernetes
- Create New Kubernetes ClusterWrite
Creates a new DigitalOcean Kubernetes (DOKS) cluster with managed control plane. Required: cluster name, region slug, Kubernetes version slug, and at least one node pool configuration. Optional: tags, auto-upgrade settings, maintenance policy, node labels/taints, and auto-scaling. The cluster will be created in 'provisioning' state and may take several minutes to become 'running'. Query /v2/kubernetes/options endpoint to get available regions, versions, and node sizes.
kubernetes.createNewKubernetesCluster
- List All Kubernetes ClustersRead-only
Tool to list all Kubernetes clusters on your account. Use when you need to enumerate every cluster and handle pagination.
kubernetes.listAllKubernetesClusters
Snapshots
- List All SnapshotsRead-only
Tool to list all snapshots available on your DigitalOcean account. Use when you need to fetch and optionally filter snapshots by resource type (droplet or volume) and handle pagination for inventory or backup workflows.
snapshots.listAllSnapshots
Connect DigitalOcean to Claude, ChatGPT or Cursor
- 1
Connect DigitalOcean in Corsair
Add your DigitalOcean API key once in Corsair. Corsair stores the credential encrypted and makes the DigitalOcean API calls for your agent, so it never goes into a prompt or a config file. Connect DigitalOcean
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs DigitalOcean. On a ChatGPT personal plan, connect DigitalOcean here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.Install Corsair from ChatGPT's plugin directory, connect it and sign in. A custom MCP server with the address works too, but personal plans get its read tools only.Add to Cursor / Grok BuildOr add this to~/.cursor/mcp.json. It opens Corsair to sign in the first time it connects.{ "mcpServers": { "corsair": { "url": "https://mcp.corsair.dev/mcp" } } }Run this, then run/mcpin Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcpCodex, Antigravity, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
- 3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, DigitalOcean's read and write operations run right away and its 12 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.
FAQ
Install corsair and @corsair-dev/digitalocean, add the DigitalOcean plugin, and connect with an API key. Then call methods like corsair.digitalocean.api.databases.createDatabaseCluster() from your app. Corsair syncs data per tenant.
Yes. DigitalOcean requires an API key from your DigitalOcean account or developer dashboard. Create credentials with access that matches what you automate, then paste them into Corsair or connect through managed auth in Hub.
Yes. One Corsair client can hit DigitalOcean, GitHub, Notion, Stripe, and the rest. Trigger DigitalOcean from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for cloud infrastructure provider for droplets, Kubernetes, databases, and developer hosting. Common builds include sync jobs, admin tooling, and agents that call DigitalOcean APIs from your backend. Local DB entities let you query synced DigitalOcean records without hitting the API on every read.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per DigitalOcean API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/digitalocean in the open repo. When DigitalOcean ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your DigitalOcean data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store DigitalOcean data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put DigitalOcean on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 12 destructive DigitalOcean operations. You can change a link's mode at hub.corsair.dev/me.