Skip to main content
The Dokploy MCP Server works with various MCP-compatible clients. This guide provides complete configuration instructions for each supported client.

Supported Clients

The Dokploy MCP Server supports the following MCP clients:
  • Cursor - AI-powered code editor
  • VS Code - Visual Studio Code with MCP extension
  • Windsurf - AI development environment
  • Zed - High-performance code editor
  • Claude Desktop - Anthropic’s desktop application
  • BoltAI - AI assistant for macOS

Configuration by Client

Cursor is an AI-powered code editor with built-in MCP support.

Configuration Location

  • Global: ~/.cursor/mcp.json (applies to all projects)
  • Project: .cursor/mcp.json (applies to current project only)

Configuration

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

Alternative Runtimes

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

How to Configure

  1. Open Cursor
  2. Go to SettingsCursor SettingsMCP
  3. Click Add new global MCP server
  4. Paste the configuration above
  5. Save the file
  6. Restart Cursor
You can also install per-project by creating .cursor/mcp.json in your project root.

Verification

After configuration:
  1. Open the Cursor composer
  2. Type @ to see available MCP servers
  3. You should see “dokploy-mcp” in the list
  4. Test by asking: “List all my Dokploy projects”

Documentation

Visual Studio Code supports MCP through the official extension.

Installation

  1. Install VS Code Insiders (required for MCP support)
  2. Click one of these buttons to auto-install:

Configuration Location

The VS Code MCP configuration file location varies by operating system:
  • macOS: ~/Library/Application Support/Code - Insiders/User/globalStorage/github.vscode-mcp/settings.json
  • Windows: %APPDATA%\Code - Insiders\User\globalStorage\github.vscode-mcp\settings.json
  • Linux: ~/.config/Code - Insiders/User/globalStorage/github.vscode-mcp/settings.json

Configuration

{
  "servers": {
    "dokploy-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@ahdev/dokploy-mcp"],
      "env": {
        "DOKPLOY_URL": "https://your-dokploy-server.com/api",
        "DOKPLOY_API_KEY": "your-dokploy-api-token"
      }
    }
  }
}
VS Code uses a different configuration format with "servers" instead of "mcpServers" and requires "type": "stdio".

How to Configure

  1. Open VS Code Insiders
  2. Press Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows/Linux)
  3. Type “MCP: Edit Settings”
  4. Paste the configuration above
  5. Save the file
  6. Reload the window

Verification

After configuration:
  1. Open GitHub Copilot Chat
  2. The MCP server should be available automatically
  3. Test by asking: “List all my Dokploy projects”

Documentation

Windsurf is an AI-powered development environment with built-in MCP support.

Configuration Location

The Windsurf MCP configuration file location varies by operating system:
  • macOS: ~/Library/Application Support/Windsurf/mcp_config.json
  • Windows: %APPDATA%\Windsurf\mcp_config.json
  • Linux: ~/.config/Windsurf/mcp_config.json

Configuration

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

How to Configure

  1. Open Windsurf
  2. Navigate to settings
  3. Find the MCP configuration section
  4. Paste the configuration above
  5. Save and restart Windsurf

Verification

After configuration:
  1. Open the Windsurf AI panel
  2. The Dokploy MCP server should be loaded
  3. Test by asking: “Show me my Dokploy applications”

Documentation

Zed is a high-performance code editor with context server support (MCP).

Configuration Location

  • macOS/Linux: ~/.config/zed/settings.json
  • Windows: %APPDATA%\Zed\settings.json

Configuration

{
  "context_servers": {
    "dokploy-mcp": {
      "command": {
        "path": "npx",
        "args": ["-y", "@ahdev/dokploy-mcp"]
      },
      "settings": {
        "DOKPLOY_URL": "https://your-dokploy-server.com/api",
        "DOKPLOY_API_KEY": "your-dokploy-api-token"
      }
    }
  }
}
Zed uses "context_servers" and has a different configuration structure with "command" as an object and "settings" for environment variables.

How to Configure

  1. Open Zed
  2. Press Cmd+, (Mac) or Ctrl+, (Windows/Linux) to open settings
  3. Add the configuration above to your settings.json
  4. Save the file
  5. Restart Zed

Verification

After configuration:
  1. Open the Zed assistant
  2. The Dokploy context server should be available
  3. Test by asking: “List my Dokploy projects”

Documentation

Claude Desktop is Anthropic’s official desktop application with native MCP support.

Configuration Location

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

Configuration

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

How to Configure

  1. Close Claude Desktop if it’s running
  2. Open the configuration file in your text editor
  3. Paste the configuration above
  4. Save the file
  5. Start Claude Desktop
Make sure Claude Desktop is fully closed before editing the configuration file. Changes won’t be picked up if the app is running.

Verification

After configuration:
  1. Open Claude Desktop
  2. Look for a hammer icon indicating MCP tools are available
  3. Test by asking: “Can you list my Dokploy projects?”
  4. Claude should use the MCP tools to fetch and display your projects

Documentation

BoltAI is an AI assistant for macOS with MCP support.

Configuration Location

BoltAI configuration is managed through the app’s settings interface.

Configuration

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

How to Configure

  1. Open BoltAI
  2. Go to Settings
  3. Navigate to Plugins section
  4. Paste the JSON configuration above
  5. Save the settings
  6. Restart BoltAI

Verification

After configuration:
  1. Open BoltAI
  2. Start a new conversation
  3. Test by asking: “Show me my Dokploy projects”

Documentation

  • Check BoltAI’s official documentation for the latest MCP configuration details

Windows Configuration

Windows requires a slightly different configuration format. Use cmd as the command wrapper:
{
  "mcpServers": {
    "dokploy-mcp": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "@ahdev/dokploy-mcp"],
      "env": {
        "DOKPLOY_URL": "https://your-dokploy-server.com/api",
        "DOKPLOY_API_KEY": "your-dokploy-api-token"
      }
    }
  }
}
Windows users must use cmd with /c flag, not just npx directly.

Common Configuration Patterns

Project-Specific Configuration

For project-specific configuration (Cursor only):
// .cursor/mcp.json in your project root
{
  "mcpServers": {
    "dokploy-mcp": {
      "command": "npx",
      "args": ["-y", "@ahdev/dokploy-mcp"],
      "env": {
        "DOKPLOY_URL": "https://your-project-dokploy.com/api",
        "DOKPLOY_API_KEY": "project-specific-token"
      }
    }
  }
}

Multiple Dokploy Instances

You can configure multiple Dokploy instances:
{
  "mcpServers": {
    "dokploy-production": {
      "command": "npx",
      "args": ["-y", "@ahdev/dokploy-mcp"],
      "env": {
        "DOKPLOY_URL": "https://prod.dokploy.com/api",
        "DOKPLOY_API_KEY": "prod-token"
      }
    },
    "dokploy-staging": {
      "command": "npx",
      "args": ["-y", "@ahdev/dokploy-mcp"],
      "env": {
        "DOKPLOY_URL": "https://staging.dokploy.com/api",
        "DOKPLOY_API_KEY": "staging-token"
      }
    }
  }
}

Local Development Build

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

Troubleshooting

  1. Verify the configuration file is in the correct location
  2. Check that the JSON syntax is valid (no trailing commas)
  3. Ensure environment variables are set correctly
  4. Restart the MCP client completely
  5. Check client logs for error messages
  1. Verify DOKPLOY_URL includes /api suffix
  2. Confirm DOKPLOY_API_KEY is valid and not expired
  3. Test the connection manually:
    curl -H "Authorization: Bearer YOUR_TOKEN" \
      https://your-dokploy-server.com/api/health
    
  4. Check that your Dokploy server is accessible
  1. Check that Node.js v18+ is installed: node --version
  2. Verify npx is available: npx --version
  3. Try running the server manually:
    DOKPLOY_URL=https://your-server.com/api \
    DOKPLOY_API_KEY=your-token \
    npx -y @ahdev/dokploy-mcp
    
  4. Look for error messages in the client’s developer console
  1. Make sure you’re using the Windows configuration format with cmd
  2. Check that Node.js is in your PATH: where node
  3. Try using full path to npx:
    {
      "command": "cmd",
      "args": ["/c", "C:\\Program Files\\nodejs\\npx", "-y", "@ahdev/dokploy-mcp"]
    }
    
  4. Verify Windows firewall isn’t blocking Node.js
If you can’t find the configuration file:
  1. Create the parent directory if it doesn’t exist:
    # macOS/Linux
    mkdir -p ~/.cursor
    
    # Windows
    mkdir %APPDATA%\Cursor
    
  2. Create the configuration file:
    # macOS/Linux
    touch ~/.cursor/mcp.json
    
    # Windows
    type nul > %APPDATA%\Cursor\mcp.json
    
  3. Add your configuration and save
If the server keeps restarting or crashing:
  1. Check for conflicting MCP servers with the same name
  2. Verify all dependencies are installed correctly
  3. Try clearing the package cache:
    npx clear-npx-cache
    # or
    rm -rf ~/.npm/_npx
    
  4. Test with the @latest tag:
    "args": ["-y", "@ahdev/dokploy-mcp@latest"]
    

Testing Your Configuration

Using MCP Inspector

The MCP Inspector is a useful tool for testing your configuration:
npx -y @modelcontextprotocol/inspector npx @ahdev/dokploy-mcp
This will:
  1. Start the Dokploy MCP server
  2. Open a web interface for testing
  3. Show all available tools and their schemas
  4. Allow you to test tool calls interactively

Manual Testing

After configuration, test the connection:
# Set environment variables
export DOKPLOY_URL="https://your-dokploy-server.com/api"
export DOKPLOY_API_KEY="your-dokploy-api-token"

# Run the server
npx -y @ahdev/dokploy-mcp
If the server starts without errors, your configuration is correct.

Getting Help

If you encounter issues:
  1. Check the GitHub Issues
  2. Review the troubleshooting guide
  3. Join the Dokploy community for support
  4. Open a new issue with:
    • Your client and version
    • Operating system
    • Configuration file contents (without sensitive data)
    • Error messages from logs

See Also

Build docs developers (and LLMs) love