Dokku

by alex-galey

Not rated yet

About

An MCP server for managing applications on Dokku, the open-source PaaS.

Explore

Need help with the dokku-mcp project? Goose AI is available to assist you! Simply tag your GitHub issues or pull requests with the:gooselabel, and Goose AI will automatically be notified to help with development, debugging, feature implementation, and other project-related tasks.

Example of Goose AI in actionAnother example

- Installation
-
Configuration
-
Local Dokku Development
-
Connecting MCP Clients
-
Development

- Development Setup
-
Makefile Commands
-
Testing

Download the latest release for your platform:

# Linux (amd64; also available: arm64, arm) curl -L -o dokku-mcp https://github.com/dokku-mcp/dokku-mcp/releases/latest/download/dokku-mcp-linux-amd64 chmod +x dokku-mcp sudo mv dokku-mcp /usr/local/bin/ # macOS (amd64; also available: arm64) curl -L -o dokku-mcp https://github.com/dokku-mcp/dokku-mcp/releases/latest/download/dokku-mcp-darwin-amd64 chmod +x dokku-mcp sudo mv dokku-mcp /usr/local/bin/

Compressed archives (dokku-mcp-<os>-<arch>.tar.gz) are also published with each release.

git clone https://github.com/dokku-mcp/dokku-mcp.git cd dokku-mcp make build

The server can be configured in two ways: using aconfig.yamlfile or via environment variables.

Create a configuration file at one of the following locations:

- System-wide:/etc/dokku-mcp/config.yaml
- User-specific:~/.dokku-mcp/config.yaml
- Local:config.yamlin the same directory as the binary.

ssh: host: "your-dokku-host.com" user: "dokku" # key_path: "/path/to/your/ssh/private/key" # Optional, uses ssh-agent if empty log_level: "info"

For a full list of available options, please refer to theconfig.yaml.examplefile.

All configuration settings can be overridden with environment variables prefixed withDOKKU_MCP_. For example:

export DOKKU_MCP_SSH_HOST="your-dokku-host.com" export DOKKU_MCP_SSH_USER="dokku" export DOKKU_MCP_LOG_LEVEL="debug"

Once configured, you can run the server:

The server will start and be ready to accept connections from an MCP client.

For development and testing without needing a remote Dokku instance, you can run a local Dokku server using Docker.

This command will download the necessary Docker images and configure the local Dokku instance. It only needs to be run once.

When the local Dokku container is running, the MCP server (with default config) should be able to connect to it. You can run integration tests against this local instance.

The server supports two transport modes for clients:

- stdio(default):Standard input/output for direct process communication.
- sse(Server-Sent Events):HTTP-based transport for web clients.

DOKKU_MCP_TRANSPORT_TYPE=sse dokku-mcp

For SSE transport, CORS is handled by default withAccess-Control-Allow-Origin: . For remote deployments, you can enable custom CORS middleware:

transport: type: sse cors: enabled: true allowed_origins: - "https://app.example.com" - ".example.com"

Seedocs/CORS.mdfor detailed configuration options and security best practices.

This section is for developers who want to contribute to the project or modify the source code.

- Go(version 1.25 or later)
-
Dockerand Docker Compose
-
Make

git clone https://github.com/dokku-mcp/dokku-mcp.git cd dokku-mcp

This command installs all the necessary Go tools for development, linting, and testing.

This command sets up Git hooks to ensure code quality before commits.

# This command builds the binary and starts the server. make start

The project uses aMakefileto automate common tasks.

- make help: Show all available commands.
- make check: Run all code quality checks (linting, formatting, complexity).
- make build: Build the server binary.
- make clean: Clean up build artifacts.

This runs all unit and integration tests and generates an HTML coverage report atcoverage.html.

Run integration tests against local Dokku:Make sure your local Dokku container is running (make dokku-start).

The server followsDomain-Driven Design (DDD)principles, with a clear separation between:

- Domain Layer (internal/domain):Core business logic, entities, and repository interfaces.
- Application Layer (internal/application):Use case orchestration and coordination.
- Infrastructure Layer (internal/infrastructure):Implementations of interfaces, such as the Dokku client, databases, and external services.

It features aplugin-based architecturelocated ininternal/server-plugins, where each plugin encapsulates a specific set of Dokku features (e.g.,app,core,deployment).

For more details, please refer to the documentation in thedocs/directory.

dokku-mcp/ ├── cmd/ # Entry points for the application │ └── server/ # Server main command ├── internal/ # Private application code │ ├── server/ # MCP server and adapter │ ├── server-plugin/ # Plugin system infrastructure │ ├── server-plugins/ # Actual plugin implementations (app, core, etc.) │ ├── dokku-api/ # Dokku CLI client and API │ └── shared/ # Shared domain types and services ├── pkg/ # Reusable packages (config, logger, etc.) ├── docs/ # Project documentation └── scripts/ # Helper scripts

Contributions are welcome! Please seeContributingfor detailed guidance on how to contribute.

This project is under the Apache License 2.0 - see theLICENSEfile for details.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Create, build, deploy, and manage Netlify resources using natural language.

European cloud hosting. Use your favorite AI coding assistant to easily deploy and manage apps on Ploi Cloud.

Simplifies framework deployments on various hosting environments, with a focus on shared hosting.

Expose the entire ArgoCD API to LLMs via MCP using just 2 auto-generated tools powered by the OpenAPI spec.

Bult.ai MCP Server lets Claude Desktop deploy and manage Bult.ai cloud hosting resources, including projects, services, GitHub and Docker deployments, routes, volumes, templates, logs, and build history.

Integrate with the Coolify API to manage your servers, applications, and databases.

An MCP server for interacting with the Coolify API to manage servers and applications.

An MCP server for integrating with Coolify, the self-hostable alternative to Netlify and Vercel.

Integrate with the Laravel Forge API to manage servers and deployments using MCP-compliant tools.

Setup

Install Dokku in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/alex-galey/dokku-mcp

Follow the installation instructions in the repository README, then restart your MCP client.

Try it now — turn your Dokku instance into an AI-manageable PaaS

Follow Installationor grab aprebuilt binaryto get started in minutes with cursor, claude-code, goose and all agentic tools which support mcp.

Ormake startif you already have go locally.

For a quick tour of the server without wiring up a full MCP client, use the dedicated make target:

It builds the binary (if needed), launches the MCP Inspector CLI, and connects it to the server in stdio mode. Inspector prints a local URL—open it in your browser to browse resources, prompts, and tools, or to issue ad-hoc calls. This is a great way to validate your setup before wiring Dokku MCP into Cursor, Claude, other IDE or internal tools.

The server can be used with any MCP-compatible client.

Add the following to your zed,.cursor/mcp.json, windsurf,claude_desktop_config.jsonor.mcp.json:

{ "mcpServers": { "dokku": { "command": "/home/user/dokku-mcp/build/dokku-mcp", "args": [], "env": { "DOKKU_MCP_SECURITY_BLACKLIST": "destroy,uninstall,remove", "DOKKU_MCP_SSH_HOST": "127.0.0.1", "DOKKU_MCP_SSH_KEY_PATH": "/home/user/.ssh/id_rsa", "DOKKU_MCP_SSH_PORT": "22", "DOKKU_MCP_SSH_USER": "dokku" } } } }

Remember to replace thecommandpath with the absolute path to the binary.

- Core: server info and plugin list resources; optional server logs tool.
- Apps: create, deploy (Git URL + ref), scale, env config, status; app list resource; troubleshooting prompt.
- Deployments: async deploys with IDs and background status.

Submit an issue for re-priorizing proposal

- Build-level log: expose build output for deploy invocations.
- App-level log: expose runtime logs.
- Inter-plugin communication: allow inter-plugin events management, Eventbus maybe Watermill.
- User management: ssh-keys:add, boundaries and prompting.
- Service plugins: service templating, postgresql first implementation.

- SSH transactions / long-running connections: streaming logs and interactive operations.
- Enforce allow-list: enforce least-principles with explicit allow-list over block-list.

- Implemented:apps:list,apps:info,apps:create,apps:destroy,apps:exists,apps:report,config:show,config:set,ps:scale,ps:report,logs,plugin:list,plugin:install,plugin:uninstall,plugin:enable,plugin:disable,plugin:update,version,proxy:report,proxy:set,scheduler:report,scheduler:set,git:report,git:set,ssh-keys:list,ssh-keys:remove,registry:logout,logs:set.
- Missing/partial:ssh-keys:add,registry:login/registry listing, configuration key enumeration, Services plugin, SSL plugin, streaming/attach sessions.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.