Dokploy MCP
Manages Cloudflare DNS by listing permitted zones, inspecting DNS records, previewing and applying A/AAAA/CNAME record changes, deleting explicitly selected records with confirmation, and detecting DNS conflicts.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Dokploy MCP deploy my web app and show me the build logs"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
What you can do
Deploy your stack | Configure your apps | Connect your domains |
Create applications and Compose services | Patch environment variables | Manage A, AAAA and CNAME records |
Start deployments and inspect results | Configure projects and environments | Preview DNS changes and detect conflicts |
Inspect logs, databases and backups | Read server information through Dokploy | Configure Dokploy domains and HTTPS |
9 MCP tools · 232 catalogued Dokploy operations · Local execution · MIT licensed
The bundled skill discovers the exact API schema as needed, instead of exposing hundreds of individual tools. Operations depend on the API supported by your installed Dokploy version.
Related MCP server: PlugLayer MCP Server
Quick start
You need Node.js 22+ and your preferred client: Codex, Claude Code, or Claude Desktop. Codex and Claude Code plugin installation requires their respective CLI. The MCP runs on your computer and does not require a separate model-provider API key.
One command with npm
npm publication is being prepared. Until the first npm version is available, use the ZIP or source installation below.
# Codex
npx -y mcp-dokploy@latest install codex
# Claude Code ("claude" is also accepted)
npx -y mcp-dokploy@latest install claude-code
# Claude Desktop
npx -y mcp-dokploy@latest install claude-desktopChoose one command for your client. The installer downloads the runtime to a permanent user directory, registers the connector and prints where to configure your credentials. You do not need to clone the repository or build TypeScript. npm installs use the mcp-dokploy marketplace; ZIP/source installations use dokploy-tools.
The name on npm is mcp-dokploy. To update, rerun the same command with @latest and restart your client. If you previously installed the ZIP/source plugin, uninstall dokploy-cloudflare@dokploy-tools in that client before switching to npm to avoid duplicate tools. Your credentials file is shared and preserved.
Option 1 — Download the plugin
Download the ZIP from the latest release.
Extract it into a permanent folder and open a terminal there.
Run:
node install.mjsChoose another client with an installer flag:
Client | Command from the extracted ZIP |
Codex |
|
Claude Code |
|
Claude Desktop |
|
Claude Code receives the MCP and skill. Claude Desktop receives the MCP and a dokploy_workflow prompt. Its existing configuration is preserved and backed up. See the Claude guide.
Option 2 — Install from source
git clone https://github.com/HaroldXd/Mcp_Dokploy.git
cd Mcp_Dokploy
npm ci
npm run setupFor Claude, replace the last command with npm run setup:claude-code or npm run setup:claude-desktop.
The Codex and Claude Code installers register the local dokploy-tools marketplace and install the MCP with the dokploy-control skill. Desktop writes one MCP entry using absolute paths. Avoid installing duplicate server entries in the same client.
Add your credentials
Edit the configuration file printed by the installer:
System | Configuration path |
Windows |
|
macOS / Linux |
|
DOKPLOY_URL=https://dokploy.example.com
DOKPLOY_API_KEY=
CLOUDFLARE_API_TOKEN=
CLOUDFLARE_ZONE_IDS=
DOKPLOY_READ_ONLY=falseDokploy: generate a token under Settings → Profile → API/CLI. Use the panel URL, without
/api.Cloudflare: use an API Token with DNS Edit and Zone Read, restricted to the zones you want to manage. Cloudflare is optional for Dokploy operations.
Zone IDs: optional comma-separated allowlist. Without it, accessible zones are determined by your Cloudflare token.
Keep credentials on your own computer. They are not included in the repository or release. The configuration is a local plaintext file: protect it with your user permissions. Environment variables override the file; DOKPLOY_MCP_CONFIG selects a different path.
Restart your client after installation or credential changes. In Claude Desktop, fully quit and reopen the application.
Try a conversation
Use dokploy-control to list my projects and applications.Deploy this repository to staging and inspect the deployment result.Connect app.example.com to this application with Cloudflare DNS and HTTPS.Preview these environment variable changes while preserving the other keys.Start with read-only discovery. Set DOKPLOY_READ_ONLY=true to block writes through both API clients.
How it connects
flowchart LR
A[Codex or Claude] -->|Local stdio| B[Dokploy MCP]
B -->|API key · HTTPS| C[Dokploy]
B -->|Scoped API Token · HTTPS| D[Cloudflare DNS]
C --> E[Applications · Compose · Databases]
D --> F[A · AAAA · CNAME]Tools at a glance
Tool | Purpose |
| Check local configuration without printing credentials |
| Discover endpoints, methods and exact input schemas |
| Call a validated endpoint; supports dry runs |
| Preview and apply variable patches with a revision check |
| List permitted zones with pagination |
| Inspect DNS records before a change |
| Preview or apply A/AAAA/CNAME changes |
| Delete an explicitly selected record with confirmation |
| Resolve records through the system resolver |
Verification and current limits
Fifteen automated tests cover API validation, mocked HTTP requests, variable preservation, redaction, DNS conflicts, Claude Desktop configuration merging, npm catalogs, CLI dispatch, the workflow prompt and a real MCP stdio handshake. Codex and Claude Code manifests are packaged separately for their hosts. Read-only authentication to Dokploy and Cloudflare has been checked against a configured instance; production deployments and restores have not been certified.
The API catalog is a versioned snapshot. A dry run validates parameters, not compatibility with your server.
Multi-step workflows are guided by the skill. There is no distributed transaction, automatic rollback or durable operation journal.
Environment patches preserve other keys and build settings, but use an optimistic revision check rather than an atomic lock. Complex multiline documents are refused.
VPS operations use Dokploy APIs. This plugin does not provide SSH or an arbitrary host shell.
DNS supports existing Cloudflare zones and A/AAAA/CNAME records. It does not buy domains, change nameservers, modify MX/TXT or change zone-wide SSL settings.
Local DNS resolution does not establish global propagation or HTTPS health. Verify those separately.
Known secret fields and configured tokens are redacted. Application logs may contain other sensitive data.
Dokploy authorization follows the supplied token; there is no additional project allowlist. Destructive confirmation parameters guard against mistakes and do not replace user authorization.
Mutations are not automatically retried. Inspect current state after a timeout before trying again.
HTTPS is required.
DOKPLOY_ALLOW_HTTP=trueis only for trusted tunnels or networks; TLS validation is never disabled.
Development
npm ci
npm test
npm run package:plugin
npm run doctordoctor checks local configuration presence; it does not validate credentials. Ask Codex to list projects and zones to check read access.
src/ MCP server, API clients and validation
schemas/ Dokploy OpenAPI snapshot and upstream license
skills/ Codex operating procedures
scripts/ Installers, packaging and smoke checks
tests/ API behavior and MCP protocol tests
docs/ Spanish guide, roadmap and publishing instructionsThe generated bundle lives in plugins/dokploy-cloudflare/ and includes JavaScript dependencies. Node.js must be installed on the destination computer.
Community and license
Contributions are welcome — read CONTRIBUTING.md. Report vulnerabilities through SECURITY.md. The project is available under the MIT License; bundled dependencies retain their own licenses.
This is an independent community integration, not an official product of Dokploy, Cloudflare or OpenAI. GitHub distribution is separate from acceptance into the official plugin directory; see publishing.
Built on the official Dokploy API, Dokploy OpenAPI specification, Cloudflare API and MCP SDK.
Available Tools
9 toolsapplication_env_patchA
Patch runtime variables preserving other keys and build settings. First dry_run=true, then supply returned revision with dry_run=false. Complex multiline documents are refused. Not an atomic concurrency lock.
Inputs: application_id (required), set, remove, dry_run, +1 more.
cloudflare_deleteA
Delete an explicitly authorized A/AAAA/CNAME record. confirm must equal record_id.
Inputs: confirm (required), zone_id (required), record_id (required).
cloudflare_recordsB
Inspect DNS records before changes; supports page and exact name filter.
Inputs: zone_id (required), name, page.
cloudflare_upsertB
Create or update A/AAAA/CNAME. Defaults to dry run and DNS-only. Existing differing record needs replace_id. Does not alter zone SSL configuration.
Inputs: name (required), type (required), content (required), zone_id (required), +4 more.
cloudflare_zonesC
List permitted Cloudflare zones; paginate using page.
Inputs: page.
connection_statusA
Local configuration status without exposing credentials. Does not contact APIs.
Inputs: no named parameters.
dns_checkA
Resolve A/AAAA/CNAME using the local system resolver. Does not prove global propagation or HTTPS health.
Inputs: name (required).
dokploy_callA
Call a catalogued Dokploy endpoint with validated parameters. Supports projects, environments, applications, deployments, Compose, domains, databases, backups and servers. dry_run previews mutations. Destructive actions require explicit user authorization and confirm equal to endpoint. Results redact secret fields; logs may still contain application-generated sensitive text.
Inputs: endpoint (required), parameters (required), confirm, dry_run.
dokploy_catalogB
Discover supported Dokploy endpoints and exact JSON parameter schemas. Use before dokploy_call. Snapshot compatibility must be checked against installed version.
Inputs: limit, offset, search, endpoint.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Most tools target distinct resource+action pairs (cloudflare_records vs cloudflare_zones, upsert vs delete, catalog vs call). Minor overlap exists between dns_check and cloudflare_records (both inspect DNS) and between application_env_patch and the generic dokploy_call, but descriptions clarify the boundaries.
A clear cloudflare_* prefix group exists, but conventions are mixed: some names are noun-first (cloudflare_records, dokploy_catalog) while others are verb-first (cloudflare_upsert, cloudflare_delete, dns_check), and standalone tools lack a prefix. Readable but not a single predictable pattern.
Nine tools is well-scoped for a server spanning Dokploy orchestration and Cloudflare DNS. The catalog/call gateway collapses many potential endpoints into two tools, keeping the surface lean.
Cloudflare DNS covers list zones, list records, upsert, delete, and a resolver check, and Dokploy is broadly covered via the catalog+call passthrough plus a targeted env patch. Only minor gaps (e.g. zone creation or richer Dokploy shortcuts) remain.
Maintenance
Related MCP Connectors
Deploy and run your apps by asking your AI: services, Postgres, logs, traces, rollbacks, costs.
Deploy and manage your apps, databases, storage, and scheduled jobs from your AI agent
Deploy local apps, add managed Postgres, and inspect logs from your AI coding agent.
Deploy websites, apps, agents and MCP servers from Claude Code or Codex. OAuth, runs in Taiwan.
Related MCP Servers
- AlicenseDqualityFmaintenanceProvides programmatic and CLI tools for managing Coolify deployments, allowing users to control applications, services, databases, and infrastructure through natural language or command line.1043 npm7Good Luck With That Public

PlugLayer MCP Serverofficial
AlicenseCqualityBmaintenanceEnables deploying and managing infrastructure via natural language, including project/domain management, compute nodes, image deployment, and CI/CD integration.70MIT- AlicenseBqualityDmaintenanceManages Coolify self-hosted PaaS infrastructure through AI assistants, enabling deployment, database management, and server operations via natural language.79MIT
- AlicenseNot gradedqualityDmaintenanceEnables natural language management of Cloudflare services including Workers, KV, R2, D1, Queues, and more via the Model Context Protocol.Apache 2.0