DigitalOcean MCP Server

DigitalOcean MCP Server

Provides access to all 471+ DigitalOcean API endpoints through an MCP server that dynamically extracts them from the OpenAPI specification, enabling search, filtering, and direct API calls with proper authentication.

Category
访问服务器

Tools

configure_digitalocean_api

Configure DigitalOcean API credentials

search_endpoints

Search for DigitalOcean API endpoints

get_endpoint_details

Get detailed information about a specific endpoint

list_endpoints

List all available DigitalOcean API endpoints

call_digitalocean_api

Call a DigitalOcean API endpoint

list_tags

List all available endpoint tags

README

DigitalOcean MCP Server

A Model Context Protocol (MCP) server that provides comprehensive access to all DigitalOcean API endpoints, dynamically extracted from their OpenAPI specification. This server enables AI assistants to interact with your DigitalOcean resources programmatically.

Features

  • Complete API Coverage: Access to 471+ DigitalOcean API endpoints across all services
  • Dynamic Endpoint Discovery: Automatically extracts and indexes endpoints from DigitalOcean's OpenAPI spec
  • Intelligent Search: Find endpoints by operation ID, summary, description, or tags
  • Detailed Documentation: Get parameter details, descriptions, and requirements for each endpoint
  • Authenticated API Calls: Execute API calls through the MCP server with proper authentication
  • Tag-based Organization: Browse endpoints by category (Droplets, Load Balancers, Databases, etc.)
  • Auto-configuration: Automatically configures from DIGITALOCEAN_API_TOKEN environment variable

Quick Start

Installation

npm install
npm run build

Environment Setup

Create a .env file or set the environment variable:

export DIGITALOCEAN_API_TOKEN="your-digitalocean-api-token"

Running the Server

npm start

Or for development with auto-reload:

npm run dev

MCP Tools

The server provides these MCP tools for AI assistants:

1. configure_digitalocean_api

Set up API credentials (optional if using environment variable)

2. list_endpoints

List all available endpoints with optional filtering by tag

3. search_endpoints

Search endpoints by query string

4. get_endpoint_details

Get detailed information about a specific endpoint

5. call_digitalocean_api

Execute API calls with authentication

6. list_tags

Show all available endpoint categories

Usage Examples

Basic Droplet Management

// List all droplets
{
  "tool": "call_digitalocean_api",
  "arguments": {
    "operationId": "droplets_list"
  }
}

// Create a new droplet
{
  "tool": "call_digitalocean_api",
  "arguments": {
    "operationId": "droplets_create",
    "parameters": {
      "name": "example-droplet",
      "region": "nyc3",
      "size": "s-1vcpu-1gb",
      "image": "ubuntu-20-04-x64"
    }
  }
}

Discovery and Search

// Find all droplet-related endpoints
{
  "tool": "search_endpoints",
  "arguments": {
    "query": "droplet",
    "limit": 10
  }
}

// List endpoints by category
{
  "tool": "list_endpoints",
  "arguments": {
    "tag": "Load Balancers",
    "limit": 5
  }
}

// Get detailed endpoint information
{
  "tool": "get_endpoint_details",
  "arguments": {
    "operationId": "droplets_list"
  }
}

Architecture

  • extract_endpoints.py: Python script that parses the OpenAPI spec and extracts endpoint definitions
  • src/endpoints.ts: TypeScript module for loading and searching endpoint data
  • src/api-client.ts: HTTP client for making authenticated API calls
  • src/index.ts: Main MCP server implementation

API Coverage

The server provides access to all DigitalOcean API endpoints across categories including:

  • 1-Click Applications
  • Account Management
  • Billing
  • Block Storage Volumes
  • CDN Endpoints
  • Certificates
  • Container Registry
  • Databases
  • Domains and DNS
  • Droplets
  • Firewalls
  • Floating IPs
  • Images
  • Kubernetes
  • Load Balancers
  • Monitoring
  • Projects
  • Reserved IPs
  • Snapshots
  • SSH Keys
  • Tags
  • VPCs
  • And more...

Development

To regenerate the endpoint data:

python extract_endpoints.py

To rebuild the server:

npm run build

Claude Configuration

Claude Desktop

Add to your Claude Desktop MCP configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "digitalocean": {
      "command": "node",
      "args": ["/path/to/digitalocean-mcp/dist/index.js"],
      "env": {
        "DIGITALOCEAN_API_TOKEN": "your-digitalocean-api-token"
      }
    }
  }
}

Claude Code (CLI)

For Claude Code users, the server auto-configures from environment variables:

export DIGITALOCEAN_API_TOKEN="your-digitalocean-api-token"
claude-code

Real-World Examples

Infrastructure Management

// Check droplet status across your infrastructure
{
  "tool": "call_digitalocean_api",
  "arguments": {
    "operationId": "droplets_list"
  }
}

// Scale a droplet
{
  "tool": "call_digitalocean_api",
  "arguments": {
    "operationId": "dropletActions_post",
    "parameters": {
      "droplet_id": "123456789",
      "type": "resize",
      "size": "s-2vcpu-4gb"
    }
  }
}

Database Operations

// List database clusters
{
  "tool": "call_digitalocean_api",
  "arguments": {
    "operationId": "databases_list_clusters"
  }
}

// Create database backup
{
  "tool": "call_digitalocean_api",
  "arguments": {
    "operationId": "databases_add_backup",
    "parameters": {
      "database_cluster_uuid": "your-cluster-uuid"
    }
  }
}

Load Balancer Management

// List load balancers
{
  "tool": "call_digitalocean_api",
  "arguments": {
    "operationId": "load_balancers_list"
  }
}

// Update load balancer configuration
{
  "tool": "call_digitalocean_api",
  "arguments": {
    "operationId": "load_balancers_update",
    "parameters": {
      "lb_id": "your-lb-id",
      "name": "updated-lb-name",
      "algorithm": "round_robin"
    }
  }
}

Security

  • API tokens are handled securely and never logged
  • All requests use HTTPS
  • Rate limiting is handled automatically
  • Environment variables are preferred for token storage

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

License

MIT License - see LICENSE file for details

Support

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选