by 1Panel-dev
Implements a Model Context Protocol server that lets clients such as Cursor or Windsurf manage 1Panel resources—including dashboards, system info, websites, certificates, applications, and databases—through stdio or SSE transports.
Mcp 1panel provides a bridge between the Model Context Protocol (MCP) used by development assistants and the 1Panel control‑panel API. It enables external tools to query and manipulate 1Panel resources without writing custom API calls.
PATH
.make build
and move ./build/mcp-1panel
to your PATH
.go install github.com/1Panel-dev/mcp-1panel@latest
1panel/1panel-mcp-server
and run it with the required environment variables.-transport sse -addr http://localhost:8000
and point the client to the /sse
endpoint.{
"mcpServers": {
"mcp-1panel": {
"command": "mcp-1panel",
"env": {
"PANEL_ACCESS_TOKEN": "<your 1Panel access token>",
"PANEL_HOST": "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": "http://localhost:8080",
"PANEL_ACCESS_TOKEN": "<your 1Panel access token>"
}
}
}
}
-host
, -token
, -transport
, -addr
.Q: Which transport should I choose?
A: Use stdio
for local binary execution (default). Choose sse
when you need a long‑living HTTP endpoint, such as when running the server in a container.
Q: Do I need to rebuild the binary for different OS/arch? A: No, just download the pre‑built binary from the Releases page that matches your platform, or use the multi‑arch Docker image.
Q: How do I obtain the PANEL_ACCESS_TOKEN
?
A: Generate a token in the 1Panel UI under Access Tokens or via the 1Panel API.
Q: Can I run multiple MCP servers for different 1Panel instances?
A: Yes, define separate entries under mcpServers
with distinct command
/env
values.
Q: Is there a way to list all available tools?
A: Run mcp-1panel --help
or inspect the tools
directory in the source code; the README also lists them.
[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.
{ "mcpServers": { "mcp-1panel": { "command": "mcp-1panel", "env": { "PANEL_ACCESS_TOKEN": "<YOUR_1PANEL_ACCESS_TOKEN>", "PANEL_HOST": "http://localhost:8080" } } } }
Explore related MCPs that share similar capabilities and solve comparable challenges
by zed-industries
A high‑performance, multiplayer code editor designed for speed and collaboration.
by modelcontextprotocol
Model Context Protocol Servers
by modelcontextprotocol
A Model Context Protocol server for Git repository interaction and automation.
by modelcontextprotocol
A Model Context Protocol server that provides time and timezone conversion capabilities.
by cline
An autonomous coding assistant that can create and edit files, execute terminal commands, and interact with a browser directly from your IDE, operating step‑by‑step with explicit user permission.
by continuedev
Enables faster shipping of code by integrating continuous AI agents across IDEs, terminals, and CI pipelines, offering chat, edit, autocomplete, and customizable agent workflows.
by upstash
Provides up-to-date, version‑specific library documentation and code examples directly inside LLM prompts, eliminating outdated information and hallucinated APIs.
by github
Connects AI tools directly to GitHub, enabling natural‑language interactions for repository browsing, issue and pull‑request management, CI/CD monitoring, code‑security analysis, and team collaboration.
by daytonaio
Provides a secure, elastic infrastructure that creates isolated sandboxes for running AI‑generated code with sub‑90 ms startup, unlimited persistence, and OCI/Docker compatibility.