Dokploy MCP Server

Dokploy MCP Server

Provides complete control over Dokploy infrastructure with 463 tools for managing projects, applications, databases, and Docker containers. It enables users to deploy and configure their self-hosted PaaS resources directly through natural language.

Category
访问服务器

README

Dokploy MCP Server

npm version license Node.js

MCP server that provides 100% coverage of the Dokploy API — 463 tools auto-generated from the Dokploy OpenAPI specification. Manage projects, applications, databases, Docker Compose stacks, and more directly from Claude.

Requirements

  • Node.js 18+ (check with node -v)
  • A Dokploy account with API access
  • API key from Settings → API Keys in your Dokploy dashboard

Quick Start

1. Install

npm install -g @jarciahdz111/dokploy-mcp

Or run without installing:

npx @jarciahdz111/dokploy-mcp

2. Configure Claude Desktop

Create or edit your Claude Desktop config file:

macOS:

~/Library/Application Support/Claude/claude_desktop_config.json

Linux:

~/.config/Claude/claude_desktop_config.json

Windows:

%APPDATA%\Claude\claude_desktop_config.json

Add this configuration:

{
  "mcpServers": {
    "dokploy": {
      "command": "dokploy-mcp",
      "env": {
        "DOKPLOY_URL": "https://your-dokploy.com/api",
        "DOKPLOY_API_KEY": "your-api-key"
      }
    }
  }
}

3. Configure Claude Code CLI (optional)

If you use the Claude Code CLI, add this to ~/.claude.json:

{
  "mcpServers": {
    "dokploy": {
      "command": "dokploy-mcp",
      "env": {
        "DOKPLOY_URL": "https://your-dokploy.com/api",
        "DOKPLOY_API_KEY": "your-api-key"
      }
    }
  }
}

4. Restart Claude

Restart Claude Desktop or your terminal. The 463 Dokploy tools will be available.

Environment Variables

Variable Description Required Default
DOKPLOY_URL Your Dokploy API URL (e.g., https://cloud.dokploy.com/api) Yes —
DOKPLOY_API_KEY API key from Dokploy Settings → API Keys Yes —
REQUEST_TIMEOUT_MS HTTP request timeout in milliseconds No 30000
DEBUG Set to 1 to enable debug logging (JSON to stderr) No —

Available Tools

463 tools across 42 categories. Tool names follow the pattern dokploy_{category}_{action}.

Category Tools Description
admin 1 Admin operations
ai 9 AI-powered features
application 29 Application deployment and management
auditLog 1 Audit log access
backup 11 Backup configuration and execution
bitbucket 7 Bitbucket integration
certificate 4 SSL certificate management
cluster 4 Cluster management
compose 28 Docker Compose stack operations
customRole 6 Custom role permissions
deployment 8 Deployment operations
destination 6 Deployment destinations
docker 7 Container and image management
domain 9 Domain management
environment 7 Environment variables
gitea 8 Gitea integration
gitProvider 2 Generic Git provider
github 6 GitHub integration
gitlab 7 GitLab integration
licenseKey 6 License management
mariadb 14 MariaDB database management
mongo 14 MongoDB database management
mounts 6 Volume mounts
mysql 14 MySQL database management
notification 38 Slack, email, Discord notifications
organization 11 Organization management
patch 12 Patch management
port 4 Port configuration
postgres 14 PostgreSQL database management
previewDeployment 4 Preview deployments
project 8 Project and environment management
redis 14 Redis cache management
redirects 4 Redirect rules
registry 7 Docker registry management
rollback 2 Deployment rollback
schedule 6 Scheduled tasks
security 4 Security settings
server 16 Server provisioning and management
settings 49 Server and application settings
sso 10 SSO/OIDC/SAML configuration
sshKey 6 SSH key management
stripe 7 Stripe billing
swarm 3 Docker Swarm mode
user 20 User and session management
volumeBackups 6 Volume backup management
whitelabeling 4 Whitelabel configuration

Usage Examples

List all projects

dokploy_project_all

Get Docker containers

dokploy_docker_getContainers

Get application details

dokploy_application_one
// arguments: { applicationId: "your-application-id" }

Deploy an application

dokploy_application_deploy
// arguments: { applicationId: "your-application-id", to: "production" }

List PostgreSQL databases

dokploy_postgres_all

Get server status

dokploy_settings_getDokployVersion

Restart a Docker container

dokploy_docker_restartContainer
// arguments: { containerId: "your-container-id" }

Local Development

# Clone the repository
git clone https://github.com/jarciahdz111/dokploy-mcp.git
cd dokploy-mcp

# Install dependencies
npm install

# Build
npm run build

# Run in development mode
npm run dev

# Test
node test-mcp.js

Troubleshooting

"Unauthorized" Error

Your DOKPLOY_API_KEY is invalid or expired.

  1. Go to Settings → API Keys in your Dokploy dashboard
  2. Generate a new API key
  3. Update the DOKPLOY_API_KEY in your Claude Desktop config
  4. Restart Claude

"Connection Refused" Error

The server cannot reach your Dokploy instance.

  1. Verify DOKPLOY_URL is correct (must include /api at the end)
  2. Check your Dokploy server is running and accessible
  3. If behind a corporate firewall, set proxy environment variables:
export HTTP_PROXY=http://proxy.company.com:8080
export HTTPS_PROXY=http://proxy.company.com:8080

Request Timeout Error

The request took too long and was aborted.

Increase the timeout by setting REQUEST_TIMEOUT_MS:

{
  "mcpServers": {
    "dokploy": {
      "env": {
        "DOKPLOY_URL": "https://your-dokploy.com/api",
        "DOKPLOY_API_KEY": "your-api-key",
        "REQUEST_TIMEOUT_MS": "60000"
      }
    }
  }
}

Enable Debug Logging

To see detailed request/response logs:

{
  "mcpServers": {
    "dokploy": {
      "env": {
        "DOKPLOY_URL": "https://your-dokploy.com/api",
        "DOKPLOY_API_KEY": "your-api-key",
        "DEBUG": "1"
      }
    }
  }
}

Debug output is written to stderr as JSON.

How It Works

This MCP server is auto-generated from the Dokploy OpenAPI specification. When Dokploy releases an API update, a new version of this package can be published with updated tool coverage — no manual tool writing required.

The server:

  1. Loads the embedded OpenAPI spec (1.4 MB, 463 endpoints)
  2. Converts each endpoint to an MCP tool with Zod-validated input schema
  3. Routes GET requests as tRPC queries and POST requests as tRPC mutations
  4. Handles tRPC response wrapping and error parsing automatically

API Coverage

  • 100% of Dokploy API v0.28.8 endpoints
  • 463 MCP tools
  • 42 functional categories
  • Auto-generated and auto-synced with API spec

Contributing

Want to modify or extend this MCP server? See CLAUDE.md for the development workflow, architecture overview, and contribution guidelines.

License

MIT

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选