Plesk Mcp

io.github.FlayedOne由 GitHub 账号 FlayedOne 发布v0.1.1更新于 Oct 24, 2026

Manage your Plesk hosting server using AI assistants.

概览

AI 生成的概览

一个本地 MCP 服务器,让 AI 助手通过 Plesk 和 WP Toolkit REST API 管理 Plesk 主机服务器。

可以做什么
通过 Plesk REST API 和 WP Toolkit REST API 执行 Plesk 服务器管理,涵盖核心管理操作与 WordPress 工具包操作。在服务器上执行 shell 命令。向服务器上传文件。可同时连接多台 Plesk 服务器进行多机管理。README 建议搭配 Plesk 文档 MCP 服务器以获得更准确的指导。
适用场景
当你管理 Plesk 主机服务器,希望助手代为完成日常管理、WordPress 工具包操作、shell 命令或文件上传,而不必在 Plesk 界面中手动操作时使用。
运行要求
以 Python 包形式在本地运行,需用 uv 包管理器启动(例如 uvx plesk-mcp)。需要可访问且已启用 API 访问的 Plesk 服务器,并设置 PLESK_HOST,以及 PLESK_API_KEY 或 PLESK_USERNAME 与 PLESK_PASSWORD。仅在 Plesk Obsidian 18.0.76 上测试过。
安装前请注意
该服务器可在主机服务器上执行 shell 命令并上传文件,助手操作可能改动或破坏线上站点。它需要保存服务器凭据 PLESK_API_KEY,或 PLESK_USERNAME 与 PLESK_PASSWORD;README 建议使用 env 文件避免把凭据写入配置文件。--insecure 参数允许 HTTP 或不受信任的证书,可能导致凭据泄露,不建议使用。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Plesk Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Plesk MCP Server

This MCP server for Plesk allows administrators to manage their Plesk servers using various AI agents and apps. It builds on top of Plesk REST API and WP Toolkit REST API, and provides core administration capabilities, as well as ability to manage the server through shell commands and upload files to the server.

The MCP server runs locally on your machine, so important information doesn't leave your environment.

Plesk Requirements

The MCP server is expected to support any sufficiently recent Plesk version (there are no strict limitations) and any OS (Linux or Windows) that Plesk supports. However, it was tested only on Plesk Obsidian 18.0.76, so prefer using a supported Plesk version.

Obviously, API access must not be disabled on the server.

MCP Server Requirements

You will need uv Python package manager to run the server. Refer to the official documentation for installation instructions.

Usage

Configure the server in your VS Code mcp.json or equivalent (in other agents or apps) using a configuration like:

json
{    "servers": {        "plesk": {            "command": "uvx",            "args": [                "plesk-mcp@latest"            ],            "env": {                // Base URL of your Plesk server. May include port.                // If you don't have a valid TLS certificate or want to use HTTP,                // add the --insecure flag to the args above.                // However, this is not recommended as you credentials may be leaked as a result.                "PLESK_HOST": "https://plesk.example.net:8443",                // API key (recommended).                // Create via `plesk bin secret_key --create -description 'Plesk MCP'` on the server.                "PLESK_API_KEY": "00000000-0000-0000-0000-000000000000",                // Alternatively, you can use username and password.                "PLESK_USERNAME": "admin",                "PLESK_PASSWORD": "passwd"            }        }    }}

You may want to use env file (e.g. via "envFile" parameter) if your agent or app supports it. This will avoid putting credentials directly in the config file.

See uvx plesk-mcp@latest --help for details on available options and environment variables.

Recommended Usage

For better behavior, it's recommended to use this MCP server in combination with a documentation MCP server. Select either plesk-local-docs-mcp or plesk-remote-docs-mcp. This will allow the agent to get more accurate information about Plesk usage when needed.

You may also attach several Plesk servers at once if needed (e.g. for managing multiple servers).

Here's an example configuration:

json
{    "servers": {        "plesk-docs": {            "command": "uvx",            "args": [                "plesk-local-docs-mcp@latest"            ],            "env": {                "OPENAI_API_KEY": "sk-..."            }        },        "plesk1": {            "command": "uvx",            "args": [                "plesk-mcp@latest"            ],            "env": {                "PLESK_HOST": "https://plesk1.example.net:8443",                "PLESK_API_KEY": "00000000-0000-0000-0000-000000000000"            }        },        "plesk2": {            "command": "uvx",            "args": [                "plesk-mcp@latest"            ],            "env": {                "PLESK_HOST": "https://plesk2.example.net",                "PLESK_USERNAME": "admin",                "PLESK_PASSWORD": "passwd"            }        }    }}

Development

MCP server run command:

bash
uv run plesk-mcp --log-level debug --insecure

Before commit:

bash
uv run ruff formatuv run ruff check --fixuv run mypy .uv run pytest

Publish:

bash
uv build --clearuv publishmcp-publisher login githubmcp-publisher publish

Testing

Using Plesk Docker Image

If you don't have a Plesk instance but want to test this MCP server, you may use Plesk Docker image instead:

bash
docker run -d --rm --tmpfs /tmp --tmpfs /run --tmpfs /run/lock -v /sys/fs/cgroup:/sys/fs/cgroup --cgroupns host -p 80:80 -p 443:443 -p 8880:8880 -p 8443:8443 --name plesk plesk/plesk

The Docker image startup is not instant, so give it a minute or so before trying to connect.

And then configure the MCP server as:

json
{    "servers": {        "plesk": {            "command": "uvx",            "args": [                "plesk-mcp@latest",                "--insecure"            ],            "env": {                "PLESK_HOST": "https://localhost:8443",                "PLESK_PASSWORD": "changeme1Q**"            }        }    }}

Without Plesk Server (Demo Mode)

Alternatively, run in demo mode from sources (with mocked responses):

json
{    "servers": {        "plesk": {            "command": "uv",            "args": [                "run",                "plesk-mcp"            ],            "env": {                "PLESK_HOST": "https://linux.demo.example.net",                "PLESK_API_KEY": "-"            }        }    }}

Automated tests

Unit tests run with uv run pytest (in the project root and in each sub-project). Smoke tests that exercise real services are skipped by default and selected via -m smoke:

bash
# Plesk MCP smoke tests (against a reachable Plesk instance, e.g. from the Docker image described above)PLESK_HOST=https://localhost:8443 PLESK_PASSWORD='changeme1Q**' PLESK_INSECURE=1 \    uv run pytest -m smoke

来源:README.md,提交 fcf4fd5

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分