For AI agents: The documentation index is at https://docs.digitalocean.com/llms.txt. Markdown versions of pages use the same URL with index.html.md in place of the HTML page (for example, append index.html.md to the directory path instead of opening the HTML document).
Configure Remote MCP
Last verified 3 Dec 2026
DigitalOcean provides remote MCP servers that expose tools and context for managing your DigitalOcean resources. You can connect in two ways:
The MCP Router, a single endpoint that fronts all of DigitalOcean’s first-party MCP services. This is the recommended approach.
Individual service endpoints, one per service, which you add only for the services you need.
In both cases, you add the server URLs and authentication details to your local mcp.json file, and your MCP client uses this configuration to connect to the servers and manage your resources. The location of mcp.json and how it’s applied depend on your MCP client.
Prerequisites
To use the remote MCP servers, you need the following:
Authentication for the servers that require it. We recommend OAuth, which requires no stored credentials, but you can also use a DigitalOcean API token.
Warning
Do not commit access tokens to your Git repository. Many MCP clients require you to put access tokens directly in their configuration files. This is safe only if the configuration file is not checked into a Git repository and has appropriately restricted read permissions.
If the configuration file is in a Git repository, add it to .gitignore or use any available client-specific techniques (for example, VS Code’s input variable substitution) to avoid exposing your access token.
Connect Through the MCP Router
The DigitalOcean MCP Router is a single remote MCP server that fronts all of DigitalOcean’s first-party MCP services. Instead of adding each service’s endpoint separately, you connect once to https://mcp.digitalocean.com/mcp and your MCP client discovers and runs tools across every supported service through it. This is the recommended way to use DigitalOcean’s remote MCP servers.
The router exposes three tools that work together as a discovery-to-run flow:
find_tools takes a natural-language query and returns a ranked shortlist of candidate tools, each with its qualified name (in server/tool form) and a short description. An optional limit argument sets the number of candidates, five by default and up to 25.
retrieve_schema returns the full schema for one tool by its qualified name: its input schema and an output schema when the tool provides one.
invoke_tool runs a tool by its qualified name, passing arguments that match the tool’s input schema. You can optionally set a projection, a list of dot-notation paths such as droplet.id, to return only selected fields of the tool’s structured result. Projection requires the tool to expose an output schema. Paths can’t index into arrays, so select the whole array (for example, droplet.networks.v4) instead of a single element.
Your MCP client calls find_tools to locate a tool, retrieve_schema to get its schema, then invoke_tool to run it. The router forwards your credentials to the service that owns the tool, so you authenticate only once and reach DigitalOcean’s available MCP services.
To use the router, add it to the mcpServers block of your client’s configuration. We recommend authenticating with OAuth, which prompts you to sign in through your browser and stores no long-lived credentials:
You can also authenticate with a DigitalOcean API token by adding an Authorization header. Replace <your_api_token> with your token, or use your client’s variable substitution method to keep the token out of the configuration file:
If you want to connect to specific services instead of using the MCP Router, you can add each service’s endpoint individually in mcp.json.
To enable a remote MCP service, add it to the mcpServers block of your client’s configuration. Each remote service entry requires three pieces of information:
A unique service key, such as apps or databases
The service’s URL, pointing to the hosted MCP server
A headers block, providing your authentication (for example, a bearer token)
The following example configures connections to the App Platform (apps) and Databases (databases) remote MCP servers. Replace <your_api_token> with your DigitalOcean API token, or use the client-specific method of variable substitution (if available) to keep your token out of the configuration file.
We recommend authenticating with OAuth instead of a static API token. Your client obtains a short-lived access token through a browser-based sign-in, so you don’t store a long-lived token in your configuration. All remote MCP servers that require authentication support OAuth.
To use OAuth, add the server’s URL to your client’s configuration without an Authorization header:
The MCP Router fronts all of the servers listed above except the Knowledge Bases server (https://kbaas.do-ai.run/v1/mcp), which you must connect to directly.
The Documentation MCP server (docs) does not require an API token. You can omit the Authorization header when configuring it. For per-client setup steps, see Connect the Documentation MCP Server. Clients that don’t use MCP can query the same documentation index over HTTPS with the Documentation Search API.
Refer to the mcp-digitalocean repository for more information on supported DigitalOcean services and detailed lists and descriptions of their available tools.
Add Remote MCP Servers to Your MCP Client
Claude
In Claude Code, add a remote MCP server with claude mcp add and the HTTP transport. For example, to add the MCP Router for all your projects:
claude mcp add --transport http digitalocean --scope user https://mcp.digitalocean.com/mcp
Then run /mcp, select digitalocean, and authenticate. Run claude mcp list first to check for an existing entry, including connectors added through claude.ai, which appear with a claude.ai prefix.
Then, run the following command to sign in to your DigitalOcean account through your browser:
codex mcp login digitalocean
Run codex mcp list to confirm that Codex lists the server.
To authenticate with an API token instead, open ~/.codex/config.toml, and then set bearer_token_env_var to the name of an environment variable that holds your token: