# Dokku MCP Server [Health: Active]

**Category:** ☁️ Cloud Platforms  
**Repository:** https://github.com/dokku-MCP/dokku-mcp  
**GitHub Stars:** 9  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/dokku-mcp-server

## Description
MCP server for Dokku: let LLMs create, deploy, scale, configure and inspect Dokku apps.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/dokku-MCP/dokku-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Start the server:

```sh
make start
```

2. Install:

```sh
curl -L -o dokku-mcp https://github.com/dokku-mcp/dokku-mcp/releases/latest/download/dokku-mcp-linux-amd64
```

3. Install:

```sh
chmod +x dokku-mcp
```

4. Install:

```sh
sudo mv dokku-mcp /usr/local/bin/
```

5. Install:

```sh
git clone https://github.com/dokku-mcp/dokku-mcp.git
```

6. Run:

```sh
cd dokku-mcp
```

## Documentation

## What Dokku MCP Server MCP server does

Dokku MCP Server MCP server gives MCP clients an interface for managing a Dokku instance. It covers common application lifecycle tasks, including creating apps, syncing and deploying code, scaling processes, changing configuration, restarting or stopping apps, checking status, and rolling back deployments. It also exposes deployment status and build-log information after asynchronous deployments begin.

The server reaches Dokku over SSH rather than requiring the MCP process to run on the Dokku host. Its tools are grouped by area, and plugin-dependent groups appear only when the corresponding Dokku plugin is installed. Tool metadata includes MCP annotations such as read-only, destructive, and idempotent status.

## How it works

The MCP process starts locally and communicates with an MCP client over stdio. It uses the configured SSH host, port, user, and private key to execute supported Dokku operations on the remote instance. A deployment returns a deployment ID after code synchronization; a separate status operation reports the build result and a tail of the build log.

Resources provide onboarding information, capability and intent maps, server details, and application logs. The `app_doctor` prompt supports an application-diagnosis workflow. Runtime log following can stream progress notifications while logs are being read.

## Setup and configuration

Install a release binary for Linux or macOS, use the published MCP Bundle on macOS or Linux, or build from source with Go 1.26 or later. Verify a binary with `dokku-mcp --version`. Client configuration points the `command` field to the absolute binary path and supplies environment variables for the SSH connection and command restrictions.

Relevant variables include `DOKKU_MCP_SSH_HOST`, `DOKKU_MCP_SSH_PORT`, `DOKKU_MCP_SSH_USER`, `DOKKU_MCP_SSH_KEY_PATH`, `DOKKU_MCP_SECURITY_ALLOWLIST`, and `DOKKU_MCP_SECURITY_BLACKLIST`. Allowlist entries restrict matching commands, while blacklist patterns block commands containing specified text. The project also supports configuration through a YAML file at `/etc/dokku-mcp/config.yaml` or a user configuration location.

For a quick local check, `make inspect` builds the binary when necessary, starts the MCP Inspector in stdio mode, and supplies a browser URL for trying resources, prompts, and tools.

## Tools and capabilities

Dokku MCP Server MCP server includes tools for:

- Application creation, deployment, rollback, scaling, configuration, status, restart, stop, and start.
- Deployment listing and status checks.
- Runtime, failed-deployment, and service logs.
- Creating, inspecting, listing, linking, unlinking, and destroying supported datastore services, including PostgreSQL, MySQL, MariaDB, Redis, MongoDB, RabbitMQ, Memcached, ClickHouse, and Elasticsearch.
- Application and global domain management.
- Let's Encrypt status, enablement, disablement, and email configuration.
- SSH key management and container-registry login, logout, and reporting.
- Optional server log exposure.

Datastore URLs and passwords are masked in tool results. Free-form values such as environment variables, registry passwords, and SSH public keys are encoded or sent over stdin instead of being placed directly in command arguments.

## Limitations and notes

The project is in early development, so breaking changes are expected and production use is not recommended. Ports, checks, storage, cron, and datastore backups are missing or only partially implemented. Destructive confirmation through MCP elicitation is planned rather than available now.

The SSH key used by the server should be treated as a sensitive credential. The SSE transport currently has no authentication, so it should be limited to a trusted network or placed behind an authenticating proxy. The server also includes safeguards for service destruction and certain SSH-key names, but operators should still restrict commands with the allowlist and blacklist settings.

_Full upstream README: https://allmcps.com/mcp/dokku-mcp-server/readme_

