Dokploy MCP 服务器 logo

Dokploy MCP 服务器

Organization
Dokploy

The Official MCP package for Dokploy

PublisherDokploy
Repositorymcp
LanguageTypeScript
Forks
77
Stars
383
Available tools
0
Transport typestdio, streamable-http
Categories
Links
  • Connect tools to AI workflows

    Dokploy MCP 服务器 exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    383 stars and 77 forks from the linked repository.

Dokploy MCP Server

npm version

Dokploy MCP Server exposes all Dokploy API endpoints as tools consumable via the Model Context Protocol (MCP). It allows MCP-compatible clients (e.g., AI models, other applications) to interact with your Dokploy server programmatically.

With 508 tools across 49 categories, this server provides complete coverage of the Dokploy API — from project and application management to databases, notifications, SSO, Docker, backups, and more.

Getting Started

Requirements

  • Node.js >= v18.0.0 (or Docker)
  • Cursor, VS Code, Claude Desktop, or another MCP Client
  • A running Dokploy server instance

Install in Cursor

Go to: Settings -> Cursor Settings -> MCP -> Add new global MCP server

Add this to your Cursor ~/.cursor/mcp.json file. You may also install in a specific project by creating .cursor/mcp.json in your project folder. See Cursor MCP docs for more info.

json
{
  "mcpServers": {
    "dokploy-mcp": {
      "command": "npx",
      "args": ["-y", "@dokploy/mcp"],
      "env": {
        "DOKPLOY_URL": "https://your-dokploy-server.com",
        "DOKPLOY_API_KEY": "your-dokploy-api-token"
      }
    }
  }
}
json
{
  "mcpServers": {
    "dokploy-mcp": {
      "command": "bunx",
      "args": ["-y", "@dokploy/mcp"],
      "env": {
        "DOKPLOY_URL": "https://your-dokploy-server.com",
        "DOKPLOY_API_KEY": "your-dokploy-api-token"
      }
    }
  }
}
json
{
  "mcpServers": {
    "dokploy-mcp": {
      "command": "deno",
      "args": ["run", "--allow-env", "--allow-net", "npm:@dokploy/mcp"],
      "env": {
        "DOKPLOY_URL": "https://your-dokploy-server.com",
        "DOKPLOY_API_KEY": "your-dokploy-api-token"
      }
    }
  }
}

Install in Windsurf

Add this to your Windsurf MCP config file. See Windsurf MCP docs for more info.

json
{
  "mcpServers": {
    "dokploy-mcp": {
      "command": "npx",
      "args": ["-y", "@dokploy/mcp"],
      "env": {
        "DOKPLOY_URL": "https://your-dokploy-server.com",
        "DOKPLOY_API_KEY": "your-dokploy-api-token"
      }
    }
  }
}

Install in VS Code

Add this to your VS Code MCP config file. See VS Code MCP docs for more info.

json
{
  "servers": {
    "dokploy-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@dokploy/mcp"],
      "env": {
        "DOKPLOY_URL": "https://your-dokploy-server.com",
        "DOKPLOY_API_KEY": "your-dokploy-api-token"
      }
    }
  }
}

Install in Claude Code

Add the MCP server to Claude Code using the CLI:

bash
claude mcp add dokploy-mcp -- npx -y @dokploy/mcp

Then set the environment variables in your .claude/settings.json or pass them inline:

bash
DOKPLOY_URL=https://your-dokploy-server.com DOKPLOY_API_KEY=your-token claude

Install in Zed

Add this to your Zed settings.json. See Zed Context Server docs for more info.

json
{
  "context_servers": {
    "dokploy-mcp": {
      "command": "npx",
      "args": ["-y", "@dokploy/mcp"],
      "env": {
        "DOKPLOY_URL": "https://your-dokploy-server.com",
        "DOKPLOY_API_KEY": "your-dokploy-api-token"
      }
    }
  }
}

Install in Claude Desktop

Add this to your Claude Desktop claude_desktop_config.json file. See Claude Desktop MCP docs for more info.

json
{
  "mcpServers": {
    "dokploy-mcp": {
      "command": "npx",
      "args": ["-y", "@dokploy/mcp"],
      "env": {
        "DOKPLOY_URL": "https://your-dokploy-server.com",
        "DOKPLOY_API_KEY": "your-dokploy-api-token"
      }
    }
  }
}

Install in BoltAI

Open the "Settings" page of the app, navigate to "Plugins," and enter the following JSON:

json
{
  "mcpServers": {
    "dokploy-mcp": {
      "command": "npx",
      "args": ["-y", "@dokploy/mcp"],
      "env": {
        "DOKPLOY_URL": "https://your-dokploy-server.com",
        "DOKPLOY_API_KEY": "your-dokploy-api-token"
      }
    }
  }
}

Install in Opencode

Add this to your OpenCode configuration (located by default in ~/.config/opencode/opencode.json or opencode.json for local/project config). See Opencode MCP config for more info.

json
{
  "mcp": {
    "dokploy": {
      "type": "local",
      "command": ["npx", "-y", "@dokploy/mcp"],
      "environment": {
        "DOKPLOY_URL": "https://your-dokploy-server.com",
        "DOKPLOY_API_KEY": "your-dokploy-api-token"
      },
      "enabled": true
    }
  }
}

Using Docker

The Docker container supports both stdio and HTTP transport modes, making it flexible for different deployment scenarios.

  1. Build the Docker Image:

    bash
    git clone https://github.com/Dokploy/mcp.git
    cd mcp
    docker build -t dokploy-mcp .
  2. Manual Docker Commands:

    Stdio Mode (for MCP clients):

    bash
    docker run -it --rm \
      -e DOKPLOY_URL=https://your-dokploy-server.com \
      -e DOKPLOY_API_KEY=your_token_here \
      dokploy-mcp

    HTTP Mode (for web applications):

    bash
    docker run -it --rm \
      -p 8080:3000 \
      -e MCP_TRANSPORT=http \
      -e DOKPLOY_URL=https://your-dokploy-server.com \
      -e DOKPLOY_API_KEY=your_token_here \
      dokploy-mcp
  3. Docker Compose:

    Use the provided docker-compose.yml for production deployments:

    bash
    # Start HTTP service
    docker-compose up -d dokploy-mcp-http
    
    # View logs
    docker-compose logs -f dokploy-mcp-http
  4. MCP Client Configuration:

    For stdio mode (Claude Desktop, VS Code, etc.):

    json
    {
      "mcpServers": {
        "dokploy-mcp": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "-e",
            "DOKPLOY_URL=https://your-dokploy-server.com",
            "-e",
            "DOKPLOY_API_KEY=your_token_here",
            "dokploy-mcp"
          ]
        }
      }
    }

    For HTTP mode (web applications):

    Start the HTTP server first, then configure your client to connect to http://localhost:3000/mcp.

Install in Windows

The configuration on Windows is slightly different compared to Linux or macOS. Use cmd as the command wrapper:

json
{
  "mcpServers": {
    "dokploy-mcp": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "@dokploy/mcp"],
      "env": {
        "DOKPLOY_URL": "https://your-dokploy-server.com",
        "DOKPLOY_API_KEY": "your-dokploy-api-token"
      }
    }
  }
}

Environment Variables

VariableRequiredDescription
DOKPLOY_URLYesYour Dokploy server URL (e.g., https://your-dokploy-server.com)
DOKPLOY_API_KEYYesYour Dokploy API authentication token
DOKPLOY_CUSTOM_HEADERSNoJSON object of additional upstream request headers. Header names and values must be strings. Reserved headers cannot be set here: x-api-key, content-type, accept.
DOKPLOY_TOOL_PRESETNoPredefined toolset to load: all (default), minimal, core, deploy, databases, or git. Useful for clients/providers that struggle with very large tool lists.
DOKPLOY_ENABLED_TAGSNoComma-separated list of tags to filter which tools are loaded (e.g., project,application,postgres)
DOKPLOY_DISABLED_TAGSNoComma-separated list of tags to exclude from the selected toolset. Applied after DOKPLOY_TOOL_PRESET or DOKPLOY_ENABLED_TAGS.
DOKPLOY_TIMEOUTNoRequest timeout in milliseconds (default: 30000)
DOKPLOY_RETRY_ATTEMPTSNoNumber of retry attempts (default: 3)
DOKPLOY_RETRY_DELAYNoDelay between retries in milliseconds (default: 1000)
DOKPLOY_REDACT_ENVNoRedacts secret-bearing fields (env vars, compose files, passwords, tokens, keys) from API responses before they reach the MCP client (default: true). Set to false only if you explicitly need raw secret values in LLM context.
DOKPLOY_REDACT_FIELDSNoComma-separated list of response field names to redact when DOKPLOY_REDACT_ENV=true. Matched case-insensitively at any nesting depth. Defaults to: env, buildArgs, composeFile, dockerCompose, environment, buildSecrets, previewBuildSecrets, password, currentPassword, appPassword, databasePassword, databaseRootPassword, redisPassword, mariadbPassword, mongoPassword, mysqlPassword, postgresPassword, registryPassword, token, accessToken, appToken, apiToken, botToken, refreshToken, secret, clientSecret, apiKey, secretAccessKey, accessKey, licenseKey, userKey, privateKey, privateKeyPass, encPrivateKey, encPrivateKeyPass, sshKey, sshPrivateKey, customGitSSHKey, dockerAuth.

For Dokploy instances behind Cloudflare Access or a similar reverse proxy, pass service-token headers with placeholder values like this:

bash
DOKPLOY_CUSTOM_HEADERS='{"CF-Access-Client-Id":"your-client-id.access","CF-Access-Client-Secret":"your-client-secret"}'

Transport Modes

This MCP server supports multiple transport modes to suit different use cases:

Stdio Mode (Default)

The default mode uses stdio for direct process communication, ideal for desktop applications and command-line usage.

bash
# Run with stdio (default)
npx -y @dokploy/mcp

HTTP Mode (Streamable HTTP + Legacy SSE)

Modern HTTP mode exposes the server via HTTP/HTTPS supporting both modern and legacy protocols for maximum compatibility:

  • Streamable HTTP (MCP 2025-03-26) - Modern protocol with session management
  • Legacy SSE (MCP 2024-11-05) - Backwards compatibility for older clients
bash
# Run with HTTP mode
npx -y @dokploy/mcp --http
# or via environment variable
MCP_TRANSPORT=http npx -y @dokploy/mcp

Modern Streamable HTTP Endpoints:

EndpointMethodDescription
/mcpPOSTClient-to-server requests
/mcpGETServer-to-client notifications (SSE)
/mcpDELETESession termination
/healthGETHealth check

Legacy SSE Endpoints (Backwards Compatibility):

EndpointMethodDescription
/sseGETSSE stream initialization
/messagesPOSTClient message posting

Available Tools (508)

This MCP server provides 508 tools covering the entire Dokploy API, organized into 49 categories:

Core Resources

CategoryToolsDescription
Project8Create, list, update, duplicate, search, and delete projects
Application30Full application lifecycle — create, deploy, redeploy, start, stop, build types, git providers (GitHub, GitLab, Bitbucket, Gitea), environment, Traefik config
Compose29Docker Compose management — create, deploy, templates, services, environment, isolated deployments
Domain9Domain CRUD, DNS validation, Traefik.me generation
Environment7Multi-environment support per project
Deployment8Deployment history, queue management, centralized view

Databases

CategoryToolsDescription
PostgreSQL15Full lifecycle — create, deploy, start, stop, rebuild, passwords, external ports, environment
MySQL15Full lifecycle — create, deploy, start, stop, rebuild, passwords, external ports, environment
MariaDB15Full lifecycle — create, deploy, start, stop, rebuild, passwords, external ports, environment
MongoDB15Full lifecycle — create, deploy, start, stop, rebuild, passwords, external ports, environment
Redis15Full lifecycle — create, deploy, start, stop, rebuild, passwords, external ports, environment
LibSQL13Full lifecycle — create, deploy, start, stop, rebuild, external ports, environment

Infrastructure

CategoryToolsDescription
Server17Multi-server management, metrics, security, monitoring setup
Docker9Container management — list, restart, remove, upload files, inspect config
Cluster / Swarm8Swarm node management, container stats, cluster operations
Settings51Server settings, Traefik config, Docker cleanup, GPU, monitoring, Redis, disk usage
Registry7Docker registry management and testing

Security & Auth

CategoryToolsDescription
SSO10Single sign-on providers, trusted origins
SSH Keys7SSH key management — create, generate, list, update, remove
Certificates5SSL/TLS certificate management
Security4Basic auth and security rules per application
Custom Roles6Role-based access control with custom permissions
User23User management, permissions, API keys, invitations, metrics
Organization11Multi-org support, invitations, member roles

Operations

CategoryToolsDescription
Backup12Database backups — Postgres, MySQL, MariaDB, MongoDB, LibSQL, Compose, WebServer
Volume Backups6Volume-level backup scheduling and management
Destination6S3-compatible backup destinations (AWS, Cloudflare R2, etc.)
Schedule6Scheduled tasks — cron-based automation
Notification41Multi-channel alerts — Slack, Discord, Telegram, Email, Teams, Gotify, Ntfy, Pushover, Lark, Mattermost, Resend, Custom webhooks
Rollback2Application rollback management

Other

CategoryToolsDescription
AI9AI-powered suggestions, model management
Git Providers27GitHub, GitLab, Gitea, Bitbucket — branches, repos, connection testing
Tag8Project tagging and bulk assignment
Patch12File patching system for applications
Mounts6Volume and bind mount management
Port4Port mapping configuration
Redirects4URL redirect rules
Preview Deployments4PR preview deployment management
Stripe7Billing and subscription management
License Key6Enterprise license management
Whitelabeling4Custom branding for enterprise
Audit Log1Activity audit trail
Admin1Admin-level monitoring setup

Tool Filtering

By default, the server exposes all Dokploy API tools. Some MCP clients and LLM providers can be slower or less reliable when very large tool lists are sent to the model. You can reduce the loaded tools with presets or tag filters.

Use DOKPLOY_TOOL_PRESET for common workflows:

PresetIncluded tags
allAll tools (default)
minimalproject, application
coreproject, server, application
deployproject, environment, server, application, compose, domain, deployment
databasespostgres, redis, mysql, mariadb, mongo, libsql
gitgithub, gitlab, bitbucket, gitea, gitProvider, registry, sshKey
bash
# Recommended starting point for clients/providers sensitive to large toolsets
DOKPLOY_TOOL_PRESET=minimal

For exact control, set DOKPLOY_ENABLED_TAGS:

bash
# Only load project, application, and postgres tools
DOKPLOY_ENABLED_TAGS=project,application,postgres

You can also remove categories from a preset:

bash
DOKPLOY_TOOL_PRESET=core
DOKPLOY_DISABLED_TAGS=postgres,redis

If DOKPLOY_ENABLED_TAGS is set, it takes precedence over DOKPLOY_TOOL_PRESET. DOKPLOY_DISABLED_TAGS is applied last.

All tools include semantic annotations (readOnlyHint, destructiveHint, idempotentHint) to help MCP clients understand their behavior and safety characteristics.

Architecture

Built with @modelcontextprotocol/sdk, TypeScript, and Zod for type-safe schema validation:

  • 508 Tools covering the entire Dokploy API
  • Multiple Transports: Stdio (default) and HTTP (Streamable HTTP + legacy SSE)
  • Auto-generated Tools: Tools are generated from the Dokploy OpenAPI spec via pnpm generate:all
  • Tool Filtering: Load only the categories you need via DOKPLOY_ENABLED_TAGS
  • Robust Error Handling: Centralized API client with interceptors and retry logic
  • Type Safety: Full TypeScript with Zod schema validation
  • Tool Annotations: Semantic hints for MCP client behavior understanding

Development

Clone the project and install dependencies:

bash
git clone https://github.com/Dokploy/mcp.git
cd mcp
pnpm install

Build:

bash
pnpm build

Regenerate tools from the Dokploy OpenAPI spec:

bash
pnpm generate:all

Local Configuration Example

json
{
  "mcpServers": {
    "dokploy-mcp": {
      "command": "npx",
      "args": ["tsx", "/path/to/mcp/src/index.ts"],
      "env": {
        "DOKPLOY_URL": "https://your-dokploy-server.com",
        "DOKPLOY_API_KEY": "your-dokploy-api-token"
      }
    }
  }
}

Testing with MCP Inspector

bash
npx -y @modelcontextprotocol/inspector npx @dokploy/mcp

Troubleshooting

MCP Client Errors

  1. Try adding @latest to the package name.

  2. Make sure you are using Node v18 or higher to have native fetch support with npx.

  3. Verify your DOKPLOY_URL and DOKPLOY_API_KEY environment variables are correctly set.

  4. If too many tools are loading or your provider times out while processing tools, start with DOKPLOY_TOOL_PRESET=minimal, then use DOKPLOY_ENABLED_TAGS for exact category filtering if needed.

Contributing

We welcome contributions! If you'd like to contribute to the Dokploy MCP Server, please check out our Contributing Guide.

Support

If you encounter any issues, have questions, or want to suggest a feature, please open an issue in our GitHub repository.

License

This project is licensed under the Apache License.

Installation

TypingMind
{
  "mcpServers": {
    "dokploy-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ahdev/dokploy-mcp"
      ],
      "env": {
        "DOKPLOY_URL": "<DOKPLOY_URL>",
        "DOKPLOY_API_KEY": "<DOKPLOY_API_KEY>"
      }
    }
  }
}

Use Dokploy MCP 服务器 MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Dokploy MCP 服务器 is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. You can run MCP locally on your device or connect to a remote MCP server URL.

Option 1: Use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Dokploy MCP 服务器 as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Dokploy MCP 服务器 MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "dokploy-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ahdev/dokploy-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Dokploy MCP 服务器 MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Dokploy MCP 服务器 MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Dokploy MCP 服务器 to help me with this task?
Dokploy MCP 服务器
Sure. I read it.
Here is what I found using Dokploy MCP 服务器.

Option 2: Add an MCP server URL

Use this when Dokploy MCP 服务器 is already hosted remotely or your team wants one shared connector that multiple users can access.

1

Open MCP connectors

In TypingMind, go to Plugins, open MCP connectors, then choose Add URL.

  1. Open TypingMind in your browser.
  2. Go to Plugins.
  3. Open MCP connectors.
  4. Click Add URL.
TypingMind Add Custom MCP Server URL form
2

Paste the server URL

Enter the MCP server URL from the provider in the Server URL field. Add a connection name, description, icon, custom HTTP headers, or OAuth client settings if the server requires them.

  1. Paste the MCP server URL from the provider into the Server URL field.
  2. Enter a connection name for Dokploy MCP 服务器.
  3. Add a description and icon if you want it to be easier to identify.
  4. Add custom HTTP headers or OAuth client details if the server requires authentication.
3

Create the connection

Click Create connection, then return to the Plugins list and confirm the new MCP connection is active.

  1. Click Create connection.
  2. Return to the MCP connectors list.
  3. Confirm the Dokploy MCP 服务器 connection appears as active.
  4. Refresh the plugin list if the connection does not appear immediately.
4

Switch models without reconnecting

Start a chat with your preferred model, enable the Dokploy MCP 服务器 tools from Plugins, and switch to another model whenever needed. The MCP connection stays available to the TypingMind workspace.

  1. Start a new chat in TypingMind.
  2. Select the AI model you want to use.
  3. Enable the Dokploy MCP 服务器 tools from Plugins.
  4. Ask the model to use the tool when needed.
  5. Switch to another AI model and reuse the same MCP connection.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Dokploy MCP 服务器 to help me with this task?
Dokploy MCP 服务器
Sure. I read it.
Here is what I found using Dokploy MCP 服务器.

Frequently asked questions

What is the Dokploy MCP 服务器 MCP server used for?

Dokploy MCP 服务器 is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Dokploy MCP 服务器 MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Dokploy MCP 服务器 with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Dokploy MCP 服务器 MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Dokploy MCP 服务器 connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Dokploy MCP 服务器 MCP to TypingMind?

Dokploy MCP 服务器 can be connected in TypingMind with the local MCP connector or by adding a remote MCP server URL. Use the local connector when the server needs access to files, apps, or private resources on your device, and use a server URL when the MCP server is hosted remotely.

What tools does Dokploy MCP 服务器 MCP provide in TypingMind?

Dokploy MCP 服务器 exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Dokploy MCP 服务器 MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Dokploy MCP 服务器 requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇