mcp-1panel

by 1Panel-dev

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.

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

1Panel MCP 服务器

1Panel MCP Server1Panel 的模型上下文协议 (MCP) 服务器的实现。

安装方法

方法一:从发布页面下载(推荐)

  1. 访问发布页面并下载与您的系统相对应的可执行文件。
  2. 安装示例(适用于 amd64):
chmod +x mcp-1panel-linux-amd64 mv mcp-1panel-linux-amd64 /usr/local/bin/mcp-1panel

方法 2:从源代码构建

确保本地安装了 Go 1.23 或更高版本。然后运行:

  1. 克隆存储库:
git clone https://github.com/1Panel-dev/mcp-1panel.git cd mcp-1panel
  1. 构建可执行文件:
make build

将 ./build/mcp-1panel 移动到系统 PATH 中包含的目录。

方法三:通过 go install 安装

确保本地安装了 Go 1.23 或更高版本。然后运行:

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

方法四:通过Docker安装

确保 Docker 已在您的机器上正确安装和配置。

官方镜像支持以下架构:

  • amd64
  • arm64
  • 臂/v7
  • s390x
  • ppc64le

用法

1Panel MCP Server 支持两种运行模式: stdiosse

stdio模式

使用本地二进制

在Cursor或者Windsurf的配置文件中添加:

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

  1. 启动 MCP 服务器:
mcp-1panel -host http://localhost:8080 -token <your 1Panel access token> -transport sse -addr http://localhost:8000
  1. 在 Cursor 或 Windsurf 中配置:
{ "mcpServers": { "mcp-1panel": { "url": "http://localhost:8000/sse" } } }
命令行选项
  • -token :1Panel 访问令牌
  • -host : 1面板访问地址
  • -transport :传输类型(stdio 或 sse,默认值:stdio)
  • -addr :启动 SSE 服务器地址(默认值: http://localhost:8000

可用工具

服务器提供了与 1Panel 交互的各种工具:

工具类别描述
获取仪表板信息系统列出仪表板状态
获取系统信息系统获取系统信息
列出网站网站列出所有网站
创建网站网站创建网站
列表_ssls证书列出所有证书
创建SSL证书创建证书
列出已安装的应用程序应用列出已安装的应用程序
安装_openresty应用安装 OpenResty
安装mysql应用安装 MySQL
列出数据库数据库列出所有数据库
创建数据库数据库创建数据库
-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

1Panel MCP Server 是 1Panel 的模型上下文协议 (MCP) 服务器的实现。

  1. Installation Methods
    1. Method 1: Download from Release Page (Recommended)
    2. Method 2: Build from Source
    3. Method 3: Install via go install
    4. Method 4: Install via Docker
  2. Usage
    1. stdio Mode
    2. sse Mode
  3. Available Tools

    Related MCP Servers

    • A
      security
      A
      license
      A
      quality
      A beginner-friendly Model Context Protocol (MCP) server that helps users understand MCP concepts, provides interactive examples, and lists available MCP servers. This server is designed to be a helpful companion for developers working with MCP. Also comes with a huge list of servers you can install.
      Last updated -
      3
      9
      36
      JavaScript
      Apache 2.0
    • A
      security
      F
      license
      A
      quality
      A Model Context Protocol (MCP) server that provides a simple sleep/wait tool, useful for adding delays between operations such as waiting between API calls or testing eventually consistent systems.
      Last updated -
      1
      6
      7
      JavaScript
    • A
      security
      A
      license
      A
      quality
      A dynamic service that creates and manages Model Context Protocol (MCP) servers, allowing users to spawn, customize, and control multiple MCP servers as child processes.
      Last updated -
      5
      21
      TypeScript
      MIT License
      • Apple
      • Linux
    • -
      security
      -
      license
      -
      quality
      A specialized server that helps users create new Model Context Protocol (MCP) servers by providing tools and templates for scaffolding projects with various capabilities.
      Last updated -
      1
      TypeScript

    View all related MCP servers

    ID: ytifcl0gkl