dokploy-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_HOST | No | Bind address. Default 127.0.0.1. The Docker image sets 0.0.0.0. | 127.0.0.1 |
| MCP_PORT | No | Port for HTTP mode. Default 8765. | 8765 |
| DOKPLOY_URL | No | The Dokploy panel URL, for example https://dokploy.example.com. A path is fine if Dokploy is not at the root. If the URL already ends in /api, it is used as-is. | |
| MCP_LOG_LEVEL | No | Uvicorn log level. Default info. | info |
| MCP_AUTH_TOKEN | No | Bearer token for /mcp. Required in HTTP mode; every request except GET /health must send Authorization: Bearer <MCP_AUTH_TOKEN>. | |
| DOKPLOY_API_KEY | No | The Dokploy API key, sent as x-api-key. Generate it in the panel under Settings → Profile → API/CLI (or Settings → API Keys). | |
| MCP_ALLOWED_HOSTS | No | Comma-separated Host allowlist. Turns DNS-rebinding protection on. | |
| FORWARDED_ALLOW_IPS | No | Who may set X-Forwarded-* headers. Default *. | * |
| MCP_ALLOWED_ORIGINS | No | Comma-separated Origin allowlist, used with MCP_ALLOWED_HOSTS. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
You manage one Dokploy instance, a self-hosted PaaS, through its API.
Read before you change anything. applicationStatus and composeStatus use Dokploy's vocabulary: idle means stopped, running means a deployment is in progress, done means the last operation succeeded (the service is usually up), error means it failed.
Saving environment variables updates the stored config only. Deploy or restart for running containers to pick the new values up.
This server cannot delete projects, applications, compose stacks, databases, domains, or deployments. Do not invent a delete step.
Database passwords and server secrets are omitted. Application and compose env files are included because editing variables requires the current file. Treat them as secrets.
restart_compose stops the stack and then starts it. There is a short outage, and it does not rebuild images. Use redeploy_compose to rebuild.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_projectsA | List projects on this Dokploy instance, with a count of services in each environment. |
| get_projectB | Get one project, including its environments, applications, compose services, and databases. |
| list_environmentsA | List environments in a project, with the services inside each one. |
| list_applicationsB | List applications. Filter by project, environment, or a search query. Status uses Dokploy's vocabulary: idle is stopped, running is a deploy in progress, done means the last operation succeeded, error means it failed. |
| get_applicationA | Get an application's config, status, env file, and current containers. The env file is included and may contain secrets. buildSecrets are redacted. Container lookup is best-effort and is omitted as an error field when Dokploy refuses it. |
| list_compose_servicesC | List Docker Compose services. Filter by project, environment, or a search query. |
| get_composeA | Get a compose service: file, env, declared services, status, and containers. Use a container id from this result with read_compose_logs. |
| list_databasesA | List Postgres, MySQL, MariaDB, MongoDB, Redis, and LibSQL databases. Passwords are not included. Use get_database for connection details other than the password. |
| get_databaseA | Get one database. Password fields are redacted. engine is postgres, mysql, mariadb, mongo, redis, or libsql. database_id is that engine's id, for example postgresId. |
| list_deploymentsA | List deployments for an application, a compose service, or the whole instance. Pass one id. Omit both to read the centralized deployment list. The newest rows Dokploy returns are kept, up to limit. Build output is not included; call read_deployment_logs with a deploymentId. |
| list_deployment_queueA | List deployments waiting in Dokploy's queue. |
| read_deployment_logsB | Read build and deploy logs for one deployment. tail is how many lines to request (1-10000). |
| read_application_logsA | Read an application's container logs, not its build logs. since is 'all' or a duration like 10s, 5m, 2h, or 1d. search is an optional plain string of letters, numbers, spaces, dots, underscores, and hyphens. |
| read_compose_logsB | Read logs for one container in a compose service. container_id comes from get_compose. since is 'all' or a duration like 5m or 2h. |
| list_domainsA | List domains for an application, a compose service, or the whole instance. |
| list_serversA | List servers Dokploy can deploy to. Secrets in the payload are redacted. |
| get_serverB | Get one remote server. SSH material and tokens are redacted. |
| get_server_healthA | Get Docker host health. Omit server_id for the Dokploy host itself. since_hours is 1-168 when you want a window. This uses docker.getServerHealth. server.getServerMetrics is not wrapped: it requires a monitoring URL and token the OpenAPI spec does not explain how to derive. |
| get_application_monitoringA | Read live monitoring for an application (CPU, memory, and network when Dokploy provides them). The monitoring response shape is not in the OpenAPI spec, so it is returned as Dokploy sent it. |
| get_instance_statusA | Read Dokploy version, health, public IP, Docker disk usage, and infrastructure checks. Each check is independent. A non-admin key may be forbidden from some settings calls; those are returned as errors alongside the checks that succeeded. |
| deploy_applicationB | Start a deployment for an application. This builds and releases the current source. |
| redeploy_applicationC | Redeploy an application from its current configuration. |
| start_applicationA | Start a stopped application without rebuilding it. |
| stop_applicationA | Stop an application. Running containers go down. Nothing is deleted. |
| restart_applicationA | Restart an application by reloading its containers, without building a new image. This calls Dokploy's application.reload. Use redeploy_application to rebuild. |
| deploy_composeB | Deploy a compose service. Existing volumes are kept. Dokploy can wipe volumes with freshVolumes. This server does not expose that flag. |
| redeploy_composeB | Redeploy a compose service from its current file and source. Volumes are kept. |
| start_composeA | Start a stopped compose service. |
| stop_composeA | Stop a compose service. Containers go down. Volumes and the compose record stay. |
| restart_composeA | Restart a compose service by stopping it and starting it again. Dokploy has no single compose restart procedure. Traffic drops between the two calls, and images are not rebuilt. If start fails, the stack is left stopped. |
| update_application_envA | Update an application's environment variables. Pass env to replace the whole file, or variables to set keys and unset to remove keys. Those edits merge into the current file unless you also pass env. build_args and build_secrets are left unchanged unless you pass them. create_env_file controls whether Dokploy writes an env file into the build. This does not redeploy. To change one secret, pass only variables={KEY: value}; other keys are kept. Never pass the *** mask from get_application back as a value. |
| update_compose_envA | Update a compose service's environment variables. Pass env to replace the file, or variables and unset to merge into the current file. This does not redeploy. When a name is in both variables and unset, it is removed. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 32 tools
Most tools target distinct resources and actions, and descriptions clarify potentially confusing pairs such as deploy/redeploy and start/restart. Some lifecycle boundaries remain close enough that an agent could occasionally hesitate, especially for applications versus compose services.
Tool names consistently use snake_case with clear verb_noun phrasing, such as list_projects, get_application, read_deployment_logs, and update_compose_env. The convention is predictable across reads, lifecycle actions, and updates.
With 32 tools, the surface is heavy for a single MCP server and exposes many closely related read and lifecycle operations. While Dokploy is broad, this exceeds a comfortably scoped tool set and increases selection overhead.
The server covers reads, logs, monitoring, deployment lifecycle, and environment updates, but lacks significant management operations such as creating/deleting projects, applications, compose services, databases, and domains. These gaps limit end-to-end Dokploy resource management.