The 1Panel MCP Server is an implementation of the Model Context Protocol (MCP) server designed specifically for 1Panel. It provides a robust interface for managing and interacting with 1Panel through various tools and configurations.
shell
git clone https://github.com/1Panel-dev/mcp-1panel.git
cd mcp-1panelshell
make build./build/mcp-1panel to the system environment path.go install github.com/1Panel-dev/mcp-1panel@latest
Example configuration for Cursor and Windsurf:
{
"mcpServers": {
"mcp-1panel": {
"command": "mcp-1panel",
"env": {
"PANEL_ACCESS_TOKEN": "<your 1Panel access token>",
"PANEL_HOST": "such as http://localhost:8080"
}
}
}
}
Start the MCP server through SSE:
mcp-1panel -host <your 1Panel access address> -token <your 1Panel access token> -transport sse -addr "http://localhost:8000"
Example configuration:
{
"mcpServers": {
"mcp-1panel": {
"url": "http://localhost:8000/sse"
}
}
}
-token: 1Panel access token-host: 1Panel access address-transport: Transport type (stdio or sse, default: stdio)-addr: Start SSE server addr (default: http://localhost:8000)Configure the server using environment variables:
- PANEL_HOST: 1Panel access address
- PANEL_ACCESS_TOKEN: 1Panel access token
The server provides various tools for interacting with 1Panel:
| Tool | Category | Description |
|---|---|---|
| get_dashboard_info | System | List dashboard status |
| get_system_info | System | Get system information |
| list_websites | Website | List all websites |
| create_website | Website | Create a website |
| list_ssls | Certificate | List all certificates |
| create_ssl | Certificate | Create a certificate |
| list_installed_apps | Application | List all installed applications |
| install_openresty | Application | Install OpenResty |
| install_mysql | Application | Install MySQL |
| list_databases | Database | List all databases |
| create_database | Database | Create a database |
The 1Panel MCP Server is an essential component for managing 1Panel through the Model Context Protocol. It is licensed under the GPL-3.0 license and actively maintained by the 1Panel development team.