Dokploy MCP Server
Exposes all Dokploy API endpoints as MCP tools, enabling AI models and other clients to manage projects, applications, databases, and more on a Dokploy server.
README
Dokploy MCP Server
<img alt="Install in VS Code (npx)" src="https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Dokploy%20MCP&color=0098FF">
Dokploy MCP Server exposes all Dokploy API endpoints as tools consumable via the Model Context Protocol (MCP). It allows MCP-compatible clients (e.g., AI models, other applications) to interact with your Dokploy server programmatically.
With 508 tools across 49 categories, this server provides complete coverage of the Dokploy API — from project and application management to databases, notifications, SSO, Docker, backups, and more.
Getting Started
Requirements
- Node.js >= v18.0.0 (or Docker)
- Cursor, VS Code, Claude Desktop, or another MCP Client
- A running Dokploy server instance
Install in Cursor
Go to: Settings -> Cursor Settings -> MCP -> Add new global MCP server
Add this to your Cursor ~/.cursor/mcp.json file. You may also install in a specific project by creating .cursor/mcp.json in your project folder. See Cursor MCP docs for more info.
{
"mcpServers": {
"dokploy-mcp": {
"command": "npx",
"args": ["-y", "@dokploy/mcp"],
"env": {
"DOKPLOY_URL": "https://your-dokploy-server.com",
"DOKPLOY_API_KEY": "your-dokploy-api-token"
}
}
}
}
<details> <summary>Alternative: Use Bun</summary>
{
"mcpServers": {
"dokploy-mcp": {
"command": "bunx",
"args": ["-y", "@dokploy/mcp"],
"env": {
"DOKPLOY_URL": "https://your-dokploy-server.com",
"DOKPLOY_API_KEY": "your-dokploy-api-token"
}
}
}
}
</details>
<details> <summary>Alternative: Use Deno</summary>
{
"mcpServers": {
"dokploy-mcp": {
"command": "deno",
"args": ["run", "--allow-env", "--allow-net", "npm:@dokploy/mcp"],
"env": {
"DOKPLOY_URL": "https://your-dokploy-server.com",
"DOKPLOY_API_KEY": "your-dokploy-api-token"
}
}
}
}
</details>
Install in Windsurf
Add this to your Windsurf MCP config file. See Windsurf MCP docs for more info.
{
"mcpServers": {
"dokploy-mcp": {
"command": "npx",
"args": ["-y", "@dokploy/mcp"],
"env": {
"DOKPLOY_URL": "https://your-dokploy-server.com",
"DOKPLOY_API_KEY": "your-dokploy-api-token"
}
}
}
}
Install in VS Code
<img alt="Install in VS Code (npx)" src="https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Dokploy%20MCP&color=0098FF"> <img alt="Install in VS Code Insiders (npx)" src="https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20Dokploy%20MCP&color=24bfa5">
Add this to your VS Code MCP config file. See VS Code MCP docs for more info.
{
"servers": {
"dokploy-mcp": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@dokploy/mcp"],
"env": {
"DOKPLOY_URL": "https://your-dokploy-server.com",
"DOKPLOY_API_KEY": "your-dokploy-api-token"
}
}
}
}
Install in Claude Code
Add the MCP server to Claude Code using the CLI:
claude mcp add dokploy-mcp -- npx -y @dokploy/mcp
Then set the environment variables in your .claude/settings.json or pass them inline:
DOKPLOY_URL=https://your-dokploy-server.com DOKPLOY_API_KEY=your-token claude
Install in Zed
Add this to your Zed settings.json. See Zed Context Server docs for more info.
{
"context_servers": {
"dokploy-mcp": {
"command": "npx",
"args": ["-y", "@dokploy/mcp"],
"env": {
"DOKPLOY_URL": "https://your-dokploy-server.com",
"DOKPLOY_API_KEY": "your-dokploy-api-token"
}
}
}
}
Install in Claude Desktop
Add this to your Claude Desktop claude_desktop_config.json file. See Claude Desktop MCP docs for more info.
{
"mcpServers": {
"dokploy-mcp": {
"command": "npx",
"args": ["-y", "@dokploy/mcp"],
"env": {
"DOKPLOY_URL": "https://your-dokploy-server.com",
"DOKPLOY_API_KEY": "your-dokploy-api-token"
}
}
}
}
Install in BoltAI
Open the "Settings" page of the app, navigate to "Plugins," and enter the following JSON:
{
"mcpServers": {
"dokploy-mcp": {
"command": "npx",
"args": ["-y", "@dokploy/mcp"],
"env": {
"DOKPLOY_URL": "https://your-dokploy-server.com",
"DOKPLOY_API_KEY": "your-dokploy-api-token"
}
}
}
}
Using Docker
The Docker container supports both stdio and HTTP transport modes, making it flexible for different deployment scenarios.
-
Build the Docker Image:
git clone https://github.com/Dokploy/mcp.git cd mcp docker build -t dokploy-mcp . -
Manual Docker Commands:
Stdio Mode (for MCP clients):
docker run -it --rm \ -e DOKPLOY_URL=https://your-dokploy-server.com \ -e DOKPLOY_API_KEY=your_token_here \ dokploy-mcpHTTP Mode (for web applications):
docker run -it --rm \ -p 8080:3000 \ -e MCP_TRANSPORT=http \ -e DOKPLOY_URL=https://your-dokploy-server.com \ -e DOKPLOY_API_KEY=your_token_here \ dokploy-mcp -
Docker Compose:
Use the provided
docker-compose.ymlfor production deployments:# Start HTTP service docker-compose up -d dokploy-mcp-http # View logs docker-compose logs -f dokploy-mcp-http -
MCP Client Configuration:
For stdio mode (Claude Desktop, VS Code, etc.):
{ "mcpServers": { "dokploy-mcp": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "DOKPLOY_URL=https://your-dokploy-server.com", "-e", "DOKPLOY_API_KEY=your_token_here", "dokploy-mcp" ] } } }For HTTP mode (web applications):
Start the HTTP server first, then configure your client to connect to
http://localhost:3000/mcp.
Install in Windows
The configuration on Windows is slightly different compared to Linux or macOS. Use cmd as the command wrapper:
{
"mcpServers": {
"dokploy-mcp": {
"command": "cmd",
"args": ["/c", "npx", "-y", "@dokploy/mcp"],
"env": {
"DOKPLOY_URL": "https://your-dokploy-server.com",
"DOKPLOY_API_KEY": "your-dokploy-api-token"
}
}
}
}
Environment Variables
| Variable | Required | Description |
|---|---|---|
DOKPLOY_URL |
Yes | Your Dokploy server URL (e.g., https://your-dokploy-server.com) |
DOKPLOY_API_KEY |
Yes | Your Dokploy API authentication token |
DOKPLOY_ENABLED_TAGS |
No | Comma-separated list of tags to filter which tools are loaded (e.g., project,application,postgres) |
DOKPLOY_TIMEOUT |
No | Request timeout in milliseconds (default: 30000) |
DOKPLOY_RETRY_ATTEMPTS |
No | Number of retry attempts (default: 3) |
DOKPLOY_RETRY_DELAY |
No | Delay between retries in milliseconds (default: 1000) |
Transport Modes
This MCP server supports multiple transport modes to suit different use cases:
Stdio Mode (Default)
The default mode uses stdio for direct process communication, ideal for desktop applications and command-line usage.
# Run with stdio (default)
npx -y @dokploy/mcp
HTTP Mode (Streamable HTTP + Legacy SSE)
Modern HTTP mode exposes the server via HTTP/HTTPS supporting both modern and legacy protocols for maximum compatibility:
- Streamable HTTP (MCP 2025-03-26) - Modern protocol with session management
- Legacy SSE (MCP 2024-11-05) - Backwards compatibility for older clients
# Run with HTTP mode
npx -y @dokploy/mcp --http
# or via environment variable
MCP_TRANSPORT=http npx -y @dokploy/mcp
Modern Streamable HTTP Endpoints:
| Endpoint | Method | Description |
|---|---|---|
/mcp |
POST | Client-to-server requests |
/mcp |
GET | Server-to-client notifications (SSE) |
/mcp |
DELETE | Session termination |
/health |
GET | Health check |
Legacy SSE Endpoints (Backwards Compatibility):
| Endpoint | Method | Description |
|---|---|---|
/sse |
GET | SSE stream initialization |
/messages |
POST | Client message posting |
Available Tools (508)
This MCP server provides 508 tools covering the entire Dokploy API, organized into 49 categories:
Core Resources
| Category | Tools | Description |
|---|---|---|
| Project | 8 | Create, list, update, duplicate, search, and delete projects |
| Application | 30 | Full application lifecycle — create, deploy, redeploy, start, stop, build types, git providers (GitHub, GitLab, Bitbucket, Gitea), environment, Traefik config |
| Compose | 29 | Docker Compose management — create, deploy, templates, services, environment, isolated deployments |
| Domain | 9 | Domain CRUD, DNS validation, Traefik.me generation |
| Environment | 7 | Multi-environment support per project |
| Deployment | 8 | Deployment history, queue management, centralized view |
Databases
| Category | Tools | Description |
|---|---|---|
| PostgreSQL | 15 | Full lifecycle — create, deploy, start, stop, rebuild, passwords, external ports, environment |
| MySQL | 15 | Full lifecycle — create, deploy, start, stop, rebuild, passwords, external ports, environment |
| MariaDB | 15 | Full lifecycle — create, deploy, start, stop, rebuild, passwords, external ports, environment |
| MongoDB | 15 | Full lifecycle — create, deploy, start, stop, rebuild, passwords, external ports, environment |
| Redis | 15 | Full lifecycle — create, deploy, start, stop, rebuild, passwords, external ports, environment |
| LibSQL | 13 | Full lifecycle — create, deploy, start, stop, rebuild, external ports, environment |
Infrastructure
| Category | Tools | Description |
|---|---|---|
| Server | 17 | Multi-server management, metrics, security, monitoring setup |
| Docker | 9 | Container management — list, restart, remove, upload files, inspect config |
| Cluster / Swarm | 8 | Swarm node management, container stats, cluster operations |
| Settings | 51 | Server settings, Traefik config, Docker cleanup, GPU, monitoring, Redis, disk usage |
| Registry | 7 | Docker registry management and testing |
Security & Auth
| Category | Tools | Description |
|---|---|---|
| SSO | 10 | Single sign-on providers, trusted origins |
| SSH Keys | 7 | SSH key management — create, generate, list, update, remove |
| Certificates | 5 | SSL/TLS certificate management |
| Security | 4 | Basic auth and security rules per application |
| Custom Roles | 6 | Role-based access control with custom permissions |
| User | 23 | User management, permissions, API keys, invitations, metrics |
| Organization | 11 | Multi-org support, invitations, member roles |
Operations
| Category | Tools | Description |
|---|---|---|
| Backup | 12 | Database backups — Postgres, MySQL, MariaDB, MongoDB, LibSQL, Compose, WebServer |
| Volume Backups | 6 | Volume-level backup scheduling and management |
| Destination | 6 | S3-compatible backup destinations (AWS, Cloudflare R2, etc.) |
| Schedule | 6 | Scheduled tasks — cron-based automation |
| Notification | 41 | Multi-channel alerts — Slack, Discord, Telegram, Email, Teams, Gotify, Ntfy, Pushover, Lark, Mattermost, Resend, Custom webhooks |
| Rollback | 2 | Application rollback management |
Other
| Category | Tools | Description |
|---|---|---|
| AI | 9 | AI-powered suggestions, model management |
| Git Providers | 27 | GitHub, GitLab, Gitea, Bitbucket — branches, repos, connection testing |
| Tag | 8 | Project tagging and bulk assignment |
| Patch | 12 | File patching system for applications |
| Mounts | 6 | Volume and bind mount management |
| Port | 4 | Port mapping configuration |
| Redirects | 4 | URL redirect rules |
| Preview Deployments | 4 | PR preview deployment management |
| Stripe | 7 | Billing and subscription management |
| License Key | 6 | Enterprise license management |
| Whitelabeling | 4 | Custom branding for enterprise |
| Audit Log | 1 | Activity audit trail |
| Admin | 1 | Admin-level monitoring setup |
Tool Filtering
You can limit which tools are loaded by setting the DOKPLOY_ENABLED_TAGS environment variable. This is useful when you only need a subset of tools:
# Only load project, application, and postgres tools
DOKPLOY_ENABLED_TAGS=project,application,postgres
All tools include semantic annotations (readOnlyHint, destructiveHint, idempotentHint) to help MCP clients understand their behavior and safety characteristics.
Environment Tool Data Format
The MCP server includes four environment helper tools with a normalized shape for AI agents:
projectEnvironment-getprojectEnvironment-saveserviceEnvironment-getserviceEnvironment-save
*-get tools return both forms:
envMap: object map inKEY -> VALUEformat for reliable agent parsing.envText: reconstructed.envstring format (KEY=VALUEper line).
*-save tools accept env in either format:
- String:
.envtext (KEY=VALUElines) - Object: map (
{ "KEY": "VALUE" })
When a map is provided, the server automatically serializes it to .env text before calling Dokploy API endpoints.
Example request for serviceEnvironment-save (map input):
{
"serviceType": "application",
"serviceId": "app_123",
"env": {
"NODE_ENV": "production",
"PORT": "3000"
}
}
Example response payload for serviceEnvironment-get:
{
"serviceType": "application",
"serviceId": "app_123",
"envMap": {
"NODE_ENV": "production",
"PORT": "3000"
},
"envText": "NODE_ENV=production\nPORT=3000"
}
Architecture
Built with @modelcontextprotocol/sdk, TypeScript, and Zod for type-safe schema validation:
- 508 Tools covering the entire Dokploy API
- Multiple Transports: Stdio (default) and HTTP (Streamable HTTP + legacy SSE)
- Auto-generated Tools: Tools are generated from the Dokploy OpenAPI spec via
pnpm generate:all - Tool Filtering: Load only the categories you need via
DOKPLOY_ENABLED_TAGS - Robust Error Handling: Centralized API client with interceptors and retry logic
- Type Safety: Full TypeScript with Zod schema validation
- Tool Annotations: Semantic hints for MCP client behavior understanding
Development
Clone the project and install dependencies:
git clone https://github.com/Dokploy/mcp.git
cd mcp
pnpm install
Build:
pnpm build
Regenerate tools from the Dokploy OpenAPI spec:
pnpm generate:all
Local Configuration Example
{
"mcpServers": {
"dokploy-mcp": {
"command": "npx",
"args": ["tsx", "/path/to/mcp/src/index.ts"],
"env": {
"DOKPLOY_URL": "https://your-dokploy-server.com",
"DOKPLOY_API_KEY": "your-dokploy-api-token"
}
}
}
}
Testing with MCP Inspector
npx -y @modelcontextprotocol/inspector npx @dokploy/mcp
Troubleshooting
MCP Client Errors
-
Try adding
@latestto the package name. -
Make sure you are using Node v18 or higher to have native fetch support with
npx. -
Verify your
DOKPLOY_URLandDOKPLOY_API_KEYenvironment variables are correctly set. -
If too many tools are loading, use
DOKPLOY_ENABLED_TAGSto filter by category.
Contributing
We welcome contributions! If you'd like to contribute to the Dokploy MCP Server, please check out our Contributing Guide.
Support
If you encounter any issues, have questions, or want to suggest a feature, please open an issue in our GitHub repository.
License
This project is licensed under the Apache 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 模型以安全和受控的方式获取实时的网络信息。