1Panel-mcp
A MCP server for automated website deployment to 1Panel (Experimental)
Documentation
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
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": "",
"ONEPANEL_API_KEY": "",
"ONEPANEL_API_VERSION": "v2" // optional, default is v2
}
}
}
}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.comOr you can use the following format:
Deploy website to 1Panel server, domain: yourdomain.comAPI 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: 0Implementation 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
Frequently asked questions
What is 1Panel-mcp?
1Panel-mcp is A MCP server for automated website deployment to 1Panel (Experimental)
How do I install 1Panel-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is 1Panel-mcp open source?
Yes — it is hosted on GitHub at https://github.com/ruibaby/1panel-mcp and has 33 stars.
Related MCP tools
An MCP server that installs other MCP servers for you JavaScript-based implementation. Trusted by 1400+ developers. Trusted by 1400+ developers.
MCP server for interacting with the iOS simulator JavaScript-based implementation. Trusted by 1200+ developers. Trusted by 1200+ developers.
A Model Context Protocol server that provides read-only access to MySQL databases. This server enables LLMs to inspect database schemas and execute read-only...
This is an MCP server that allows you to directly download transcripts of YouTube videos. JavaScript-based implementation.
The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.
An AI-powered task-management system you can drop into Cursor, Lovable, Windsurf, Roo, and others. Built for the Model Context Protocol to enhance AI capabiliti
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP