How to integrate Digital ocean MCP with OpenCode

How to integrate Digital ocean MCP with OpenCode This guide explains how to connect Digital ocean MCP to OpenCode using Composio Connect, which simplifies OAuth, API changes, and reliability concerns. There are two ways to set this up: Via Composio Connect MCP Via the Composio CLI

Digital ocean logoDigital ocean
Api KeyOauth2

DigitalOcean is a cloud platform for deploying, managing, and scaling infrastructure. Its simplicity and developer-friendly tools let you launch projects quickly and manage resources effortlessly.

48 Tools

How to integrate Digital ocean MCP with OpenCode

This guide explains how to connect Digital ocean MCP to OpenCode using Composio Connect, which simplifies OAuth, API changes, and reliability concerns.

There are two ways to set this up:

Also integrate Digital ocean with

Why use Composio?

Composio provides a single MCP server or CLI tool that exposes a set of meta-tools, allowing you to:

  • Connect to 1,000+ apps with on-demand tool loading, so you do not fill your LLM context window with unnecessary tool definitions.
  • Use programmatic tool calling through a remote Bash tool, letting LLMs write their own code to handle complex tool chaining. This reduces back-and-forth for frequent tool calls.
  • Handle large tool responses outside the LLM context to keep conversations lean.

Connect Digital ocean with OpenCode

Option 1: Using Composio CLI

1. Install Composio CLI

Install the Composio CLI, authenticate, and initialize your project:

bash
# Install the Composio CLI
curl -fsSL https://composio.dev/install | bash

# Authenticate with Composio
composio login

During login, you will be redirected to the sign-in page. Finish the flow and you are all set.

Composio CLI authorization screen

2. Authorize Digital ocean

Once the CLI is installed, it is essentially done. Give OpenCode access to your apps with these steps:

  1. Launch OpenCode.
  2. Prompt it to "Authenticate with Digital ocean Composio".
  3. Complete the authentication and authorization flow, and your Digital ocean integration is all set.
  4. Start asking anything you want.

Option 2: Using Composio MCP

You can also connect Digital ocean to OpenCode by adding Composio as an MCP server through the OpenCode CLI.

1. Add the Composio MCP server

bash
opencode mcp add

This launches an interactive prompt.

2. Fill in the fields

FieldValue
Namecomposio
Typeremote
URLhttps://connect.composio.dev/mcp
Require OAuthYes
Have client IDNo
OpenCode MCP server interactive prompt for Composio

Alternatively, you can skip the interactive prompt and paste the configuration directly into your OpenCode config file.

Open your global OpenCode config:

bash
open ~/.config/opencode/opencode.json

Add this under the mcp key and save the file.

bash
{
  "mcp": {
    "composio": {
      "type": "remote",
      "url": "https://connect.composio.dev/mcp",
      "enabled": true
    }
  }
}

3. Authenticate

Authenticate the Composio MCP server you just added:

bash
opencode mcp auth composio

This opens a browser session. Authorize Composio and you are done.

Composio browser authorization for OpenCode MCP

4. Verify installation

bash
opencode mcp list

5. Connect Digital ocean with OpenCode

Now, in the chat, ask the agent to connect to Digital ocean or give it any Digital ocean-related task.

For example, ask it to:

  • "Spin up a droplet for staging environment"
  • "Provision a new PostgreSQL database cluster"
  • "Create a DNS A record for your domain"

It will prompt you to authenticate and authorize access to Digital ocean.

That is it. Composio tools are now available in OpenCode, and your Digital ocean account is ready to use.

Way Forward

Now that Digital ocean is connected, extend your setup by connecting the other apps you already use every day, so your agent can run true cross-app workflows end to end.

  • Connect Calendar to turn threads into scheduled meetings automatically.
  • Connect Slack or Teams to post summaries, approvals, and alerts where your team works.
  • Connect Notion, Linear, Jira, or Asana to convert requests into tickets, tasks, and docs.
  • Connect Drive, Dropbox, or OneDrive to fetch, file, and share attachments without manual steps.

Start with one workflow you do repeatedly, then keep adding apps as you find new handoffs. With everything behind a single MCP endpoint, your agent can coordinate multiple tools safely and reliably in one conversation.

TOOLS

Supported Tools

Every Digital ocean action and event your agent gets out of the box.

Create Custom Image

Creates a custom image in DigitalOcean by importing a Linux VM disk image from a publicly accessible URL.

Create Database Cluster

Creates a new managed database cluster on DigitalOcean.

Create New Block Storage Volume

Tool to create a new block storage volume.

Create New Domain

Creates a new domain in DigitalOcean's DNS management system.

Create Domain Record

Tool to create a new DNS record for a domain.

Create New Droplet

Tool to create a new Droplet.

Create New Firewall

Creates a new cloud firewall with custom inbound and outbound rules.

Create New Kubernetes Cluster

Creates a new DigitalOcean Kubernetes (DOKS) cluster with managed control plane.

Create New Load Balancer

Tool to create a new load balancer.

Create New SSH Key

Registers a new SSH public key with your DigitalOcean account.

Create New Tag

Creates a new tag in DigitalOcean for organizing and grouping resources.

Create New VPC

Creates a new Virtual Private Cloud (VPC) in a specified DigitalOcean region.

Delete Block Storage Volume

Permanently deletes a block storage volume by its unique ID.

Delete Database Cluster

Tool to delete a database cluster by UUID.

Delete Domain

Deletes a domain from DigitalOcean DNS.

Delete Domain Record

Tool to delete a DNS record by its record ID for a domain.

Delete Existing Droplet

Tool to delete a Droplet by ID.

Delete Firewall

Tool to delete a firewall by ID.

Delete Image

Deletes a user-created custom image or snapshot from your DigitalOcean account by its numeric ID.

Delete Load Balancer

Tool to delete a load balancer instance by ID.

Delete SSH Key

Tool to delete a public SSH key.

Delete Tag

Deletes a tag from your DigitalOcean account.

Delete VPC

Delete a VPC (Virtual Private Cloud) by its unique identifier.

List All Databases

Tool to list all managed database clusters on your account.

List All Domains

Lists all DNS domains configured in your DigitalOcean account.

List All Droplets

Lists all Droplets (virtual machines) in your DigitalOcean account with pagination support.

List All Firewalls

List all cloud firewalls configured in your DigitalOcean account.

List All Images

Tool to list all images available on your account.

List All Kubernetes Clusters

Tool to list all Kubernetes clusters on your account.

List All Load Balancers

List all load balancers in your DigitalOcean account with pagination support.

List All Snapshots

Tool to list all snapshots available on your DigitalOcean account.

List All SSH Keys

Lists all SSH keys associated with your DigitalOcean account.

List All Tags

Tool to list all tags in your account.

List All Volumes

Tool to list all block storage volumes available on your account.

List All VPCs

Tool to list all VPCs on your account.

List Apps

Tool to list all App Platform apps in your DigitalOcean account.

List Database Options

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.

List Domain Records

Tool to list all DNS records for a domain.

Retrieve Domain

Retrieves complete details about a specific domain including its TTL and DNS zone file configuration.

Retrieve Domain Record

Tool to retrieve a specific DNS record for a domain by its record ID.

Retrieve Existing Droplet

Retrieve detailed information about a specific DigitalOcean Droplet by its unique numeric ID.

Retrieve Existing Image

Tool to retrieve information about an image by ID or slug.

Retrieve Tag

Tool to retrieve an individual tag by name.

Retrieve VPC

Tool to retrieve details about a specific VPC by its ID.

Tag Resource

Tool to tag resources by name.

Untag Resource

Tool to untag resources by tag name.

Update Domain Record

Tool to update an existing DNS record for a domain.

Update VPC

Tool to update information about a VPC.

FAQ

Frequently asked questions

With a standalone Digital ocean MCP server, the agents and LLMs can only access a fixed set of Digital ocean tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Digital ocean and many other apps based on the task at hand, all through a single MCP endpoint.

Yes, you can. OpenCode fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Digital ocean tools.

Yes, absolutely. You can configure which Digital ocean scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Digital ocean data and credentials are handled as safely as possible.

Start with Digital ocean.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Digital ocean tool your agent needs.Free to start.

Start building