1panel deployment.com
1panel deployment.com logo

1Panel Deployment

Automates website deployment to 1Panel servers by creating static sites, uploading build files, and providing deployment...

Created byApr 22, 2025

1Panel MCP Server

A Model Context Protocol (MCP) server for automated website deployment to 1Panel.
[!IMPORTANT] Currently, this project is an experimental project and does not mean that it can be used directly.

Video demo

Features

  • Automates website deployment to 1Panel servers
  • Creates websites if they don't already exist
  • Uploads static website files to 1Panel
  • Fully compatible with the MCP standard protocol

Installation

Edit the .env file with your 1Panel server information:

Usage

Start the server

Configure MCP in Cursor IDE

To use this server with Cursor IDE, add the following MCP configuration:
  1. Open Cursor
  1. Create .cursor/mcp.json

Use MCP to Deploy Websites

In Cursor, you can deploy websites using the following command in the AI chat:
Or you can use the following format:

API Reference

MCP Tool: deploy_website

Deploys a website to 1Panel.
Parameters:
  • domain (required): Website domain
  • buildDir (optional): Build directory path
Response:

Implementation Details

Deployment Process

  1. Check Build Directory: Verifies if the specified build directory exists
  1. Website Creation: Creates a new static website through 1Panel API if it doesn't exist
  1. File Upload: Uploads all files from the build directory to the website
  1. Statistics: Returns detailed statistics about the upload process

Troubleshooting

If you encounter deployment issues, check the following:
  1. Ensure your API Key is valid and has sufficient permissions
  1. Verify that the website directory exists and has write permissions
  1. Check the 1Panel server logs for more detailed error information
  1. If file uploads fail, it may be due to file permission or format issues

1Panel MCP Server

A Model Context Protocol (MCP) server for automated website deployment to 1Panel.
[!IMPORTANT] Currently, this project is an experimental project and does not mean that it can be used directly.

Video demo

Features

  • Automates website deployment to 1Panel servers
  • Creates websites if they don't already exist
  • Uploads static website files to 1Panel
  • Fully compatible with the MCP standard protocol

Installation

Edit the .env file with your 1Panel server information:

Usage

Start the server

Configure MCP in Cursor IDE

To use this server with Cursor IDE, add the following MCP configuration:
  1. Open Cursor
  1. Create .cursor/mcp.json

Use MCP to Deploy Websites

In Cursor, you can deploy websites using the following command in the AI chat:
Or you can use the following format:

API Reference

MCP Tool: deploy_website

Deploys a website to 1Panel.
Parameters:
  • domain (required): Website domain
  • buildDir (optional): Build directory path
Response:

Implementation Details

Deployment Process

  1. Check Build Directory: Verifies if the specified build directory exists
  1. Website Creation: Creates a new static website through 1Panel API if it doesn't exist
  1. File Upload: Uploads all files from the build directory to the website
  1. Statistics: Returns detailed statistics about the upload process

Troubleshooting

If you encounter deployment issues, check the following:
  1. Ensure your API Key is valid and has sufficient permissions
  1. Verify that the website directory exists and has write permissions
  1. Check the 1Panel server logs for more detailed error information
  1. If file uploads fail, it may be due to file permission or format issues