GNU General Public License v3.0

项目介绍

1Panel-dev/mcp-1panel 是一个托管在 GitHub 上的开源项目,主要使用 Go 编写,采用 GNU General Public License v3.0 许可证,目前获得 171 个 Star、28 次 Fork。

仓库全名
1Panel-dev/mcp-1panel
开源许可证
GNU General Public License v3.0
Star 数
171
Fork 数
28
未关闭 Issue
3

README 摘要

[ 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) 1. Visit the Releases Page and download the executable file corresponding to your system. 2. Example installation (for amd64): Method 2: Build from Source Make sure Go 1.23 or later is installed locally. Then…

完整内容见 GitHub 原始 README 或本页 。

常见问题

mcp-1panel 用什么语言开发?

主要使用 Go 编写,采用 GNU General Public License v3.0 许可证,目前有 171 个 Star。

mcp-1panel 可以免费商用吗?

仓库标注的许可证为 GNU General Public License v3.0,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 mcp-1panel 的源码?

可以直接克隆仓库:git clone https://github.com/1Panel-dev/mcp-1panel.git,默认分支为 dev-v2;安装与运行步骤见仓库 README。

mcp-1panel 最近还在维护吗?

仓库最近一次更新为 5 天前,当前有 3 个未关闭 Issue;Star 数为 171,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

mcp-1panel is an implementation of the Model Context Protocol (MCP) server for 1Panel.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
237
价值分
111
活跃状态
活跃

语言占比

Dockerfile
Go
Makefile
Python
Shell

Release

README

[English] | [中文(简体)]

1Panel MCP Server

1Panel MCP Server is an implementation of the Model Context Protocol (MCP) server for 1Panel.

Installation Methods

  1. Visit the Releases Page and download the executable file corresponding to your system.

  2. Example installation (for amd64):

chmod +x mcp-1panel-linux-amd64
mv mcp-1panel-linux-amd64 /usr/local/bin/mcp-1panel

Method 2: Build from Source

Make sure Go 1.23 or later is installed locally. Then run:

  1. Clone the repository:
git clone https://github.com/1Panel-dev/mcp-1panel.git
cd mcp-1panel
  1. Build the executable:
make build

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:

go install github.com/1Panel-dev/mcp-1panel@latest

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

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:

{
  "mcpServers": {
    "mcp-1panel": {
      "command": "mcp-1panel",
      "env": {
        "PANEL_ACCESS_TOKEN": "<your 1Panel access token>",
        "PANEL_HOST": "such as http://localhost:8080"
      }
    }
  }
}
Running in Docker
{
  "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>"
      }
    }
  }
}

sse Mode

  1. Start the MCP Server:
mcp-1panel -host http://localhost:8080 -token <your 1Panel access token> -transport sse -addr http://localhost:8000
  1. Configure in Cursor or Windsurf:
{
  "mcpServers": {
    "mcp-1panel": {
      "url": "http://localhost:8000/sse"
    }
  }
}
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

评论

暂无评论