DevPilot MCP server

Automates VPS initialization and deployment workflows through SSH connections, providing tools for system setup, service installation, Nginx configuration with SSL, and GitHub CI/CD pipeline creation.
Back to servers
Setup instructions
Provider
oxy-Op
Release date
Aug 13, 2025
Stats
1 star

MCP VPS Initialize is a server application implementing the Model Context Protocol (MCP) for automating the setup and management of VPS instances. It provides tools for SSH-based automation to configure new servers with essential services and establish CI/CD pipelines.

Installation

To get the MCP server up and running:

# Clone the repository
git clone <repository-url>
cd mcp-vps-initialize

# Install dependencies
npm install

# Build the project
npm run build

# Start the server
npm start

Available MCP Tools

SSH Connect

Connect to a VPS via SSH using password or private key authentication.

Parameters:

  • host (required): VPS IP address or hostname
  • username (required): SSH username
  • port (optional): SSH port (default: 22)
  • password (optional): SSH password
  • privateKeyPath (optional): Path to private key file
  • passphrase (optional): Private key passphrase

Example:

{
  "host": "192.168.1.100",
  "username": "root",
  "password": "your-password"
}

VPS Initialize

Initialize a fresh VPS with system updates and optional services.

Parameters:

  • services (optional): Object specifying which services to install
    • nodejs (boolean): Install Node.js LTS
    • pm2 (boolean): Install PM2 process manager
    • rust (boolean): Install Rust toolchain
    • nginx (boolean): Install and configure Nginx
    • redis (boolean): Install and configure Redis

Example:

{
  "services": {
    "nodejs": true,
    "pm2": true,
    "nginx": true,
    "redis": false
  }
}

Nginx Setup

Configure Nginx with domain, reverse proxy, and SSL certificates.

Parameters:

  • domain (required): Domain name for the site
  • port (required): Backend port to proxy requests to
  • ssl (optional): Enable SSL with Certbot (default: true)

Example:

{
  "domain": "example.com",
  "port": 3000,
  "ssl": true
}

GitHub CI/CD Setup

Setup GitHub CI/CD with deploy keys and automated workflows.

Parameters:

  • repoUrl (required): GitHub repository URL
  • deployPath (required): Deployment path on the server

Example:

{
  "repoUrl": "https://github.com/username/repo.git",
  "deployPath": "/opt/deployments/myapp"
}

Execute Command

Execute arbitrary commands on the connected VPS.

Parameters:

  • command (required): Command to execute

Example:

{
  "command": "systemctl status nginx"
}

Usage Workflow

Basic VPS Setup

  1. Connect to VPS:
{
  "tool": "ssh_connect",
  "args": {
    "host": "your-vps-ip",
    "username": "root",
    "password": "your-password"
  }
}
  1. Initialize VPS:
{
  "tool": "vps_initialize",
  "args": {
    "services": {
      "nodejs": true,
      "pm2": true,
      "nginx": true
    }
  }
}
  1. Setup Nginx:
{
  "tool": "nginx_setup",
  "args": {
    "domain": "yourdomain.com",
    "port": 3000,
    "ssl": true
  }
}
  1. Setup CI/CD:
{
  "tool": "github_cicd_setup",
  "args": {
    "repoUrl": "https://github.com/username/repo.git",
    "deployPath": "/var/www/myapp"
  }
}

GitHub CI/CD Instructions

After running the github_cicd_setup tool, you'll receive:

  • Deploy Key: Add to your GitHub repository's Deploy Keys
  • GitHub Secrets: Add to your repository's Actions secrets
  • Workflow File: Add to .github/workflows/deploy.yml

The generated workflow will:

  • Trigger on pushes to main/master branch
  • Run tests (if available)
  • Build the application (if build script exists)
  • Deploy to your VPS automatically

Configuration

The server can be configured through environment variables:

  • LOG_LEVEL: Set logging level (default: 'info')
  • PORT: Server port (if running standalone)

Troubleshooting

Common Issues

  • SSH Connection Failed

    • Verify IP address and credentials
    • Check firewall settings
    • Ensure SSH service is running
  • SSL Certificate Issues

    • Verify domain DNS points to server
    • Check firewall allows HTTP/HTTPS
    • Ensure email is valid for Let's Encrypt
  • Service Installation Failed

    • Check system update status
    • Verify internet connectivity
    • Review error logs

Debug Mode

Enable debug logging:

LOG_LEVEL=debug npm start

System Requirements

  • Node.js 18+
  • Fresh Ubuntu/Debian VPS
  • Domain name (for SSL setup)
  • GitHub repository (for CI/CD)

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "devpilot" '{"command":"npx","args":["-y","mcp-vps-initialize"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "devpilot": {
            "command": "npx",
            "args": [
                "-y",
                "mcp-vps-initialize"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

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

2. Add this to your configuration file:

{
    "mcpServers": {
        "devpilot": {
            "command": "npx",
            "args": [
                "-y",
                "mcp-vps-initialize"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later