Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

1Panel-mcp

MCP.Pizza Chef: ruibaby

1Panel-mcp is an experimental MCP server that automates website deployment to 1Panel hosting platforms. It supports creating new websites if they don't exist and uploading static website files, fully adhering to the Model Context Protocol standard. Designed for integration with tools like Cursor IDE, it streamlines deployment workflows by enabling programmatic control over 1Panel hosting environments.

Use This MCP server To

Automate deployment of static websites to 1Panel hosting Create new websites on 1Panel via MCP commands Upload and update static website files on 1Panel Integrate 1Panel deployment into IDE workflows like Cursor Enable programmatic website management through MCP protocol

README

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

https://www.bilibili.com/video/BV1SjQRY3EmM/

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

Usage

Configure MCP in Cursor IDE

To use this server with Cursor IDE, add the following MCP configuration:

  1. Open Cursor
  2. Create .cursor/mcp.json
{
  "mcpServers": {
    "1panel-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "1panel-mcp"
      ],
      "env": {
        "ONEPANEL_BASE_URL": "<your 1Panel base URL>",
        "ONEPANEL_API_KEY": "<your 1Panel API key>"
      }
    }
  }
}

Use MCP to Deploy Websites

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

Deploy to 1Panel with domain=yourdomain.com

Or you can use the following format:

Deploy website to 1Panel server, domain: yourdomain.com

API Reference

MCP Tool: deploy_website

Deploys a website to 1Panel.

Parameters:

  • domain (required): Website domain
  • buildDir (optional): Build directory path

Response:

Successfully deployed to 1Panel!
Domain: yourdomain.com
URL: http://yourdomain.com
Upload statistics:
- Total files: 25
- Successfully uploaded: 25
- Failed to upload: 0

Implementation Details

Deployment Process

  1. Check Build Directory: Verifies if the specified build directory exists
  2. Website Creation: Creates a new static website through 1Panel API if it doesn't exist
  3. File Upload: Uploads all files from the build directory to the website
  4. 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
  2. Verify that the website directory exists and has write permissions
  3. Check the 1Panel server logs for more detailed error information
  4. If file uploads fail, it may be due to file permission or format issues

1Panel-mcp FAQ

How do I configure 1Panel-mcp with my 1Panel account?
Set the ONEPANEL_BASE_URL and ONEPANEL_API_KEY environment variables in your MCP server configuration to connect securely.
Is 1Panel-mcp production-ready?
No, it is currently experimental and may require additional testing before production use.
Can 1Panel-mcp create websites automatically?
Yes, it can create websites on 1Panel if they do not already exist.
How does 1Panel-mcp handle static file uploads?
It uploads static website files directly to the specified 1Panel website via the MCP protocol.
Which IDEs support integration with 1Panel-mcp?
Cursor IDE supports 1Panel-mcp integration through MCP configuration, enabling seamless deployment workflows.
Does 1Panel-mcp support other hosting providers?
Currently, it is designed specifically for 1Panel and does not support other hosting platforms.
What MCP features does 1Panel-mcp implement?
It fully supports MCP standard protocol for server communication and deployment automation.
Can I use 1Panel-mcp with multiple websites?
Yes, it can manage multiple websites by creating and uploading files as needed per site.