DigitalOcean MCP Server
A server that exposes DigitalOcean App Platform functionality through standardized tools, enabling AI assistants to directly manage your DigitalOcean apps without writing code or memorizing API endpoints.
README
DigitalOcean MCP Server
This MCP server exposes DigitalOcean App Platform functionality through standardized tools that can be used by any MCP client, including Claude Desktop and Cursor. It enables AI assistants to directly manage your DigitalOcean apps without writing code or memorizing API endpoints.
📚 Table of Contents
🚀 What Can You Do With It?
You can now do things like:
- Deploy a new app from a GitHub repo
- Quickly redeploy an existing app with the latest changes
- See logs, restart components, or delete old environments
- Check available regions and create apps based on what’s supported
- Build and deploy an app from scratch, entirely through your assistant
...and more!
🧰 Prerequisites
To use the DigitalOcean MCP Server, you’ll need:
- Node.js (≥ 12) & npm
- A DigitalOcean Personal Access Token with App Platform scopes
- A supported MCP client:
- Claude Desktop (v1.9+)
- Claude Code
- Cursor
- Windsurf
- (Optional but helpful): GitHub CLI (gh) - useful for cloning repos, creating projects, and working with GitHub-based apps.
💡 You do not need to install anything—this server runs via npx, with just a one-line config added to your MCP client.
⚙️ Setting up your DigitalOcean MCP Server
1. Generate Your API Token
Head to DigitalOcean’s API settings and create a new Personal Access Token with App Platform permissions.
2. Add the Server to Your MCP Client
Add this JSON snippet to your client’s MCP config file:
{
"mcpServers": {
"digitalocean": {
"command": "npx",
"args": ["@digitalocean/mcp"],
"env": {
"DIGITALOCEAN_API_TOKEN": "YOUR_DO_TOKEN"
}
}
}
}
Here’s what each part of the snippet does:
-
- command: how to launch the server (
npxor full path)
- command: how to launch the server (
-
- args: the package name
-
- env: insert your DO token here
Then follow the instructions for your specific tool:
Claude Desktop
- Go to Settings → Developer → Edit Config
- Add the snippet above to
claude_desktop_config.json - Replace
YOUR_DO_TOKENwith your token - Save and restart Claude Desktop
- You'll see “digitalocean” listed as an available server
Setting up DigitalOcean MCP Server in Claude Desktop
Cursor
- Go to Settings → Cursor Settings → MCP → Add a new global MCP server
- Cursor will open
~/.cursor/mcp.json - Add the snippet above to this json file
- Replace
YOUR_DO_TOKENwith your token - Save, and return to MCP Settings.
- You should now see “digitalocean” in Cursor’s MCP settings
Setting up DigitalOcean MCP Server in Cursor
Windsurf Setup
- In Windsurf: Settings → Windsurf Settings → Cascade → MCP → Add Server → Add custom server
- Windsurf will open
~/.codeium/windsurf/mcp_config.json - Add the snippet above to this json file
- Replace
YOUR_DO_TOKENwith your token - Save, and return to MCP Settings.
- You should now see “digitalocean” in Windsurf's MCP settings
Setting up DigitalOcean MCP Server in Windsurf
💬 Example Prompts
Once it’s configured, try asking your assistant:
“List all active apps on my account”
“Create a new app from https://github.com/do-community/do-one-click-deploy-flask with 1GB RAM in NYC3”
“Show logs for checkout-service”
“Cancel the current deployment for marketing-site”
“Delete the old `staging-env` app”
The assistant will send the request → the MCP server talks to DigitalOcean → you get structured results, ready to act on.
Available Tools
| Category | Commands |
|---|---|
| Apps | list_apps, create_app, get_app, update_app, delete_app, restart_app |
| Deployments | list_deployments, create_deployment, get_deployment, cancel_deployment |
| Logs | retrieve_active_deployment_logs, download_logs |
| Infra | list_app_regions, list_instance_sizes |
| Alerts | list_app_alerts, update_app_alert_destinations |
| Rollbacks | validate_app_rollback, rollback_app, commit_app_rollback, revert_app_rollback |
| Metrics | get_app_bandwidth_daily_metrics, get_all_app_bandwidth_daily_metrics |
| Validation | validate_app_spec |
Troubleshooting
The server doesn’t appear in your client?
- Make sure your JSON config is saved and valid
- Restart your MCP client (Claude, Cursor, Windsurf)
Token not working?
- Check that it has App Platform access
- Try generating a fresh one
JSON errors?
- No trailing commas
- No comments allowed in JSON
You can also test the server directly by running:
npx @digitalocean/mcp
Contributing
We’d love your help improving this! Bug reports, new features, and docs improvements are all welcome.
- Fork this repo
- Create a branch (
git checkout -b feature/awesome-tool) - Open a PR
License
This project is licensed under the MIT License.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。