Mcp Server Digitalocean

io.github.truecallerabreham由 GitHub 账号 truecallerabreham 发布v0.1.1更新于 Oct 24, 2026

MCP server for DigitalOcean — manage Droplets, databases, domains, and more

发布方自己的服务:DigitalOcean

已验证STDIO仅桌面数据库云端与基础设施

概览

AI 生成的概览

一个面向 DigitalOcean 的本地 MCP 服务器,让助手列出、创建和删除 Droplet,查看托管数据库、管理域名并检查账户用量。

可以做什么
列出、创建、查看详情和删除 Droplet,包括按区域和规格选择并查看价格,以及列出可用区域和规格。列出并查看托管数据库集群。列出、创建和删除域名。查看账户信息与用量限额。
适用场景
适合在 MCP 客户端中以对话方式管理 DigitalOcean 云资源,例如查看 Droplet 和数据库集群、查询区域与规格,或在不打开控制台的情况下创建和删除 Droplet 与域名。
运行要求
以本地 Python 包运行(需 Python 3.10 或更高版本),通过 uvx 启动或用 uv、pip 安装。需要 DigitalOcean 个人访问令牌,通过 DIGITALOCEAN_TOKEN 环境变量提供,并需要受支持的 MCP 客户端,如 Claude Desktop、Claude Code、Cursor 或 Windsurf。需要访问 DigitalOcean API 的网络连接。
安装前请注意
该令牌可访问你的 DigitalOcean 账户,应谨慎限定权限并避免写入共享配置文件。服务器可创建和删除 Droplet 与域名,会改动真实基础设施并可能产生费用;删除 Droplet 或域名具有破坏性。确认助手操作前请先核对。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Server Digitalocean,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

DigitalOcean MCP Server

[PyPI version] [License: MIT] [Python 3.10+]

A Model Context Protocol server for DigitalOcean cloud infrastructure. Manage Droplets, databases, domains, and more — all through your AI assistant.

What Can You Do With It?

  • Manage Droplets — list, create, get details, and delete Droplets
  • Query Databases — list and inspect managed database clusters
  • Handle Domains — list, create, and delete domain records
  • Explore Infrastructure — browse available regions and Droplet sizes with pricing
  • Check Account — view account info and usage limits

Table of Contents


Prerequisites


Installation

Using uv (recommended)

bash
uv tool install mcp-server-digitalocean

Using pip

bash
pip install mcp-server-digitalocean

Setup

1. Generate Your API Token

Go to DigitalOcean API Tokens and create a new Personal Access Token.

2. Add the Server to Your MCP Client

Add this JSON snippet to your client's MCP config file:

json
{  "mcpServers": {    "digitalocean": {      "command": "uvx",      "args": ["mcp-server-digitalocean"],      "env": {        "DIGITALOCEAN_TOKEN": "YOUR_DO_TOKEN"      }    }  }}

Then follow the instructions for your specific client:

Claude Desktop

  1. Go to Settings > Developer > Edit Config
  2. Add the snippet above to claude_desktop_config.json
  3. Replace YOUR_DO_TOKEN with your token
  4. Save and restart Claude Desktop
  5. You'll see "digitalocean" listed as an available server

Cursor

  1. Go to Settings > Cursor Settings > MCP > Add a new global MCP server
  2. Cursor will open ~/.cursor/mcp.json
  3. Add the snippet above to this JSON file
  4. Replace YOUR_DO_TOKEN with your token
  5. Save and return to MCP Settings

Windsurf

  1. Go to Settings > Windsurf Settings > Cascade > MCP > Add Server > Add custom server
  2. Windsurf will open ~/.codeium/windsurf/mcp_config.json
  3. Add the snippet above to this JSON file
  4. Replace YOUR_DO_TOKEN with your token
  5. Save and return to MCP Settings

Claude Code

  1. Run in your terminal:
bash
claude mcp add digitalocean -- uvx mcp-server-digitalocean
  1. Set the environment variable:
bash
export DIGITALOCEAN_TOKEN="your-token-here"

Available Tools

CategoryTools
Accountget_account_info
Dropletslist_droplets, get_droplet, create_droplet, delete_droplet
Databaseslist_database_clusters, get_database_cluster
Domainslist_domains, create_domain, delete_domain
Infrastructurelist_regions, list_sizes

Example Prompts

Once configured, try asking your assistant:

"List all my Droplets""Create a new 1GB Droplet in NYC1 running Ubuntu 24.04""Show me all available regions""List my database clusters""Delete droplet 42""What Droplet sizes are available and how much do they cost?"

Development

bash
# Clone the repogit clone https://github.com/truecallerabreham/mcp-server-digitalocean.gitcd mcp-server-digitalocean
# Install dependenciesuv sync
# Run testsuv run pytest
# Run linteruv run ruff check src/ tests/
# Type checkuv run pyright

Troubleshooting

The server doesn't appear in your client?

  • Make sure your JSON config is saved and valid (no trailing commas)
  • Restart your MCP client (Claude, Cursor, Windsurf)
  • Check that uvx is in your PATH

Token not working?

Still having issues?

Test the server directly:

bash
DIGITALOCEAN_TOKEN="your-token" uvx mcp-server-digitalocean

Contributing

Contributions are welcome! Bug reports, new features, and docs improvements are all appreciated.

  1. Fork this repo
  2. Create a branch (git checkout -b feature/my-feature)
  3. Make your changes
  4. Run tests (uv run pytest)
  5. Open a PR

License

This project is licensed under the MIT License.

来源:README.md,提交 8a7ba48

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Digitalocean 集成