Provides tools for managing a 1Panel instance, including retrieving system information, managing websites, SSL certificates, applications, and databases. Enables actions like creating websites, installing applications like OpenResty and MySQL, and managing database resources.
Supports MySQL database operations, including listing existing databases, creating new databases, and installing MySQL instances via the 1Panel interface.
[English] | [中文(简体)]
1Panel MCP Server
1Panel MCP Server is an implementation of the Model Context Protocol (MCP) server for 1Panel.
Installation Methods
Method 1: Download from Release Page (Recommended)
Visit the Releases Page and download the executable file corresponding to your system.
Example installation (for amd64):
Method 2: Build from Source
Make sure Go 1.23 or later is installed locally. Then run:
Clone the repository:
Build the executable:
Move ./build/mcp-1panel to a directory included in your system's PATH.
Method 3: Install via go install
Make sure Go 1.23 or later is installed locally. Then run:
Method 4: Install via Docker
Make sure Docker is correctly installed and configured on your machine.
The official image supports the following architectures:
amd64
arm64
arm/v7
s390x
ppc64le
Related MCP server: MCP Server
Usage
1Panel MCP Server supports two running modes: stdio and sse.
stdio Mode
Using Local Binary
In the configuration file of Cursor or Windsurf, add:
Running in Docker
sse Mode
Start the MCP Server:
Configure in Cursor or Windsurf:
Command Line Options
-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)
Available Tools
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 |