mcp-1panel
Integrations
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.
1Panel MCP Server
1Panel MCP Server is an implementation of the Model Context Protocol (MCP) server for 1Panel.
Installation
Prerequisites
- Go 1.23.0 or higher
- Existing 1Panel
Build from Source
- Clone the repository:Copy
- Build the project:MoveCopy
./build/mcp-1panel
to the system environment path.
Install using go install
Usage
Cursor and Windsurf configuration example:
stdio mode
sse mode
start mcp server through sse
Command Line Options
-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)
Environment Variables
You can also configure the server using environment variables:
PANEL_HOST
: 1Panel access addressPANEL_ACCESS_TOKEN
: 1Panel access token
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 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 |
This server cannot be installed
1Panel MCP Server is an implementation of the Model Context Protocol (MCP) server for 1Panel.