by 1Panel-dev
mcp-1panel is an implementation of the Model Context Protocol (MCP) server specifically designed for 1Panel. It acts as a bridge, allowing external applications to interact with and manage your 1Panel instance through the MCP.
mcp-1panel is an implementation of the Model Context Protocol (MCP) server specifically designed for 1Panel. It acts as a bridge, allowing external applications (like Cursor or Windsurf) to interact with and manage your 1Panel instance through the MCP.
mcp-1panel can be installed in several ways:
make build
(requires Go 1.23+).go install
: Use go install github.com/1Panel-dev/mcp-1panel@latest
(requires Go 1.23+).Once installed, mcp-1panel supports two running modes: stdio
and sse
.
mcp-1panel
as a command, providing PANEL_ACCESS_TOKEN
and PANEL_HOST
as environment variables. This can be done with a local binary or by running it within Docker.-transport sse
flag, specifying the 1Panel host, token, and the SSE server address. Then, configure your application to connect to the provided SSE URL.go install
, or Docker.stdio
for direct command execution and sse
for persistent server communication.[English] | [中文(简体)]
1Panel MCP Server is an implementation of the Model Context Protocol (MCP) server for 1Panel.
Visit the Releases Page and download the executable file corresponding to your system.
Example installation (for amd64):
chmod +x mcp-1panel-linux-amd64
mv mcp-1panel-linux-amd64 /usr/local/bin/mcp-1panel
Make sure Go 1.23 or later is installed locally. Then run:
git clone https://github.com/1Panel-dev/mcp-1panel.git
cd mcp-1panel
make build
Move ./build/mcp-1panel to a directory included in your system's PATH.
Make sure Go 1.23 or later is installed locally. Then run:
go install github.com/1Panel-dev/mcp-1panel@latest
Make sure Docker is correctly installed and configured on your machine.
The official image supports the following architectures:
1Panel MCP Server supports two running modes: stdio
and sse
.
In the configuration file of Cursor or Windsurf, add:
{
"mcpServers": {
"mcp-1panel": {
"command": "mcp-1panel",
"env": {
"PANEL_ACCESS_TOKEN": "<your 1Panel access token>",
"PANEL_HOST": "such as http://localhost:8080"
}
}
}
}
{
"mcpServers": {
"mcp-1panel": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PANEL_HOST",
"-e",
"PANEL_ACCESS_TOKEN",
"1panel/1panel-mcp-server"
],
"env": {
"PANEL_HOST": "such as http://localhost:8080",
"PANEL_ACCESS_TOKEN": "<your 1Panel access token>"
}
}
}
}
mcp-1panel -host http://localhost:8080 -token <your 1Panel access token> -transport sse -addr http://localhost:8000
{
"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 address (default: http://localhost:8000)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 installed apps |
install_openresty | Application | Install OpenResty |
install_mysql | Application | Install MySQL |
list_databases | Database | List all databases |
create_database | Database | Create a database |
Please log in to share your review and rating for this MCP.