Dokploy MCP server with OAuth sign-in

Dokploy Community Edition serves its own remote MCP server from the Dokploy panel itself, at https://<your-dokploy-host>/api/mcp. An MCP client talks to it over HTTPS (Streamable HTTP), so there is no local process to run and no API key to create. Upstream Dokploy v0.30.8 has no MCP endpoint and no MCP OAuth flow. The fork adds both.

This page covers the sign-in flow, the scopes you grant, the clients it works with, and the limits. For a short answer see the FAQ.

What the server exposes

The tool list is built from the Dokploy API routers, so a tool is named after its API procedure, for example application-deploy, compose-deploy or deployment-queueList. Each tool belongs to one scope. A connection only sees the tools its scopes allow, and the permissions of the user behind the connection still apply underneath.

Connect Claude Code

Add the server with your own panel address, then sign in once in the browser.

claude mcp add --transport http --scope user dokploy https://<your-dokploy-host>/api/mcp
  1. In Claude Code run /mcp, pick the dokploy server and choose Authenticate.
  2. The browser opens the Dokploy consent page. Sign in to Dokploy if you are not already.
  3. Choose the scopes to grant (see below) and approve.
  4. The client stores its tokens and reconnects on its own.

The MCP Server card on the Settings, Profile page shows the endpoint and the exact add command for your instance, and lists every client you have authorized.

How the OAuth flow works

The server publishes standard discovery documents, so a compatible client configures itself:

Scopes

The consent page shows one toggle per scope. Delete and Administration are off by default.

Scope On by default What it allows
dokploy:read yes List and inspect projects, services, deployments, logs and settings
dokploy:deploy yes Deploy, redeploy, start, stop, restart, rebuild, roll back, cancel builds, clean deployment history
dokploy:services:write yes Create and update applications, Compose stacks, databases, domains, ports, mounts, schedules, patches and tags
dokploy:services:delete no Delete services and their resources
dokploy:projects:write yes Create, update and duplicate projects and environments
dokploy:projects:delete no Delete projects and environments
dokploy:backups yes Backups, backup policies, volume backups and destinations
dokploy:admin no Servers, registries, git providers, notifications, certificates, users, organization settings, and reading stored credentials

Revoke a client

Open Settings, Profile, find the MCP Server card and revoke the client. Its tokens stop working.

Use an API key instead

A client that cannot do the browser sign-in, or an unattended agent, can send a Dokploy API key in the x-api-key header. The key acts as the member who created it and is subject to the per-key rate limit. An API-key connection is not scoped: it gets all eight scopes, including Administration and both delete scopes, and only the member’s own role limits what it can do. Use a key from a member with a restricted role, or prefer OAuth when you want to grant less.

claude mcp add --transport http --scope user dokploy https://<your-dokploy-host>/api/mcp --header "x-api-key: <key>"

Which clients work

Any MCP client that supports the Streamable HTTP transport and either OAuth with dynamic client registration or a custom header. Claude Code is the client this guide was written and verified against. Dynamic client registration only accepts redirect URIs that are https or http on a loopback address (localhost, 127.0.0.1 or [::1]), so any other client must use such a redirect URI. Clients that only run local stdio servers need a bridge.

Limits