MainWP

io.github.mainwpv1.4.0更新於 Oct 6, 2026

Manage WordPress sites in MainWP from AI tools, with approval before destructive changes by default.

概覽

AI 產生的概覽

讓 AI 助理管理自架的 MainWP 儀表板:列出並同步 WordPress 網站、檢視並套用更新,以及處理外掛、佈景主題、客戶與筆記。

功能
將相容於 MCP 的 AI 用戶端連接到自架的 MainWP 儀表板,用來管理多個 WordPress 網站。約 70 個工具涵蓋:列出、同步、檢查連線狀態、新增、重新連接或移除子網站;檢視並套用核心、外掛、佈景主題與翻譯更新;啟用、停用或刪除外掛與佈景主題;管理客戶記錄、標籤與費用;讀取代理商、客戶與網站筆記、技能與記憶。引導式工作流程可產生網路摘要、網站報告、安全性稽核與更新計畫。
適用情境
適合管理大量 WordPress 網站的代理商與自由工作者,用自然語言詢問哪些網站有擱置的更新、在整個網路中套用更新,或檢查哪些客戶網站已中斷連線。它針對現有 MainWP 儀表板的維護與客戶工作,而非單一 WordPress 網站。
執行需求
透過 npx 以 npm 套件 @mainwp/mcp 在本機執行,因此執行 AI 工具的電腦需要 Node.js 20.19 或更新版本。需要可透過 HTTPS 存取的 MainWP Dashboard 6.0 或更新版本、相容於 MCP 的用戶端,以及環境變數 MAINWP_URL、MAINWP_USER 與 MAINWP_APP_PASSWORD(WordPress 應用程式密碼,不是登入密碼)。部分工具需要更新的儀表板版本。
安裝前請注意
此伺服器可以變更資料:新增、重新連接或移除子網站,以及啟用、停用或刪除外掛與佈景主題。預設情況下,破壞性變更會先顯示預覽,只有確認後才執行,安全模式則直接封鎖這些操作;更新確認取決於儀表板版本。MAINWP_APP_PASSWORD 是可隨時撤銷的 WordPress 應用程式密碼,應妥善保密,最好使用專用的管理員帳號簽發。此伺服器只與你的儀表板通訊。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 MainWP,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[MainWP MCP]

Manage your whole WordPress network by talking to your AI assistant.

Website · Documentation · Quickstart · Prompt Cookbook · Video · Community · Discord · Support

[npm version] [CI] [License: GPL-3.0]

Official MainWP MCP Server

The MainWP MCP Server connects Claude, Cursor, OpenAI Codex, VS Code Copilot, and other MCP-compatible AI tools to MainWP, the self-hosted dashboard for managing many WordPress sites, so you can ask in plain English:

"Which sites have pending plugin updates?"

"Update WooCommerce everywhere it's behind."

"Which client sites are disconnected right now?"

"Check what we know about this client's sites before you update anything."

It runs on your own computer, next to your AI tool. Nothing new is installed on your Dashboard or your child sites.

[Terminal conversation through the MainWP MCP server: asking how many sites am I managing, then updating WooCommerce on every site where it is behind]

You stay in control

  • Changes wait for your approval. By default, deleting a site, plugin, or theme shows you a preview first and runs only after you say yes. On Dashboard 6.3 and later, updates work the same way. Update confirmation is coming in MainWP 6.3 but available now in the Early Release program.
  • Safe mode blocks those destructive operations outright, with no approval prompt, while you get comfortable.
  • You choose the tools. Allow and block lists decide which tools your AI can see at all.
  • Your credentials stay with you. The server signs in with a WordPress Application Password that you can revoke at any time, and it talks only to your Dashboard.

How it all works: Safety & Permissions.

What you can do

  • Sites: list, sync, check connectivity, add, reconnect, or remove child sites
  • Updates: see pending core, plugin, theme, and translation updates across the network, and apply them
  • Plugins and themes: see what is installed, activate, deactivate, or delete
  • Clients and tags: manage client records, assign sites, and track costs
  • Knowledge: agency, client, and site notes, skills, and memories your AI reads before it works. Knowledge is coming in MainWP 6.3 but available now in the Early Release program.
  • Guided workflows: network summaries, site reports, security audits, and update plans

Around 70 tools in all, depending on your Dashboard version. See Tools & Resources.

Built for agencies and freelancers who manage many WordPress sites and want AI help with updates, maintenance, and client work.

Requirements

  • Node.js 20.19 or later on the computer that runs your AI tool
  • MainWP Dashboard 6.0 or later, reachable over HTTPS (some tools need a newer Dashboard; the Quickstart lists which)
  • An MCP-compatible AI client

Get started

1. Create an Application Password. In your MainWP Dashboard, go to Users > Profile > Application Passwords, add one named "MainWP MCP Server", and copy it. It is separate from your login password, and you can revoke it at any time. A dedicated administrator account for API access keeps the audit trail clean.

2. Add the server to your AI tool. For Claude Desktop and most other MCP clients:

json
{  "mcpServers": {    "mainwp": {      "command": "npx",      "args": ["-y", "@mainwp/mcp"],      "env": {        "MAINWP_URL": "https://your-dashboard.com",        "MAINWP_USER": "admin",        "MAINWP_APP_PASSWORD": "xxxx xxxx xxxx xxxx xxxx xxxx"      }    }  }}

3. Restart your AI tool and ask "List all my sites". A working setup returns your child sites by name and URL.

Config file locations for each client are in the client setup guide. Every setting is in the Configuration Reference.

Using Claude Code? The plugin installs the server, an agent skill, and ten /mainwp:* workflow commands:

text
/plugin marketplace add mainwp/mainwp-mcp/plugin install mainwp@mainwp-mcp

Credentials still come from your environment. See Claude Code plugin.

Documentation

Full documentation lives at docs.mainwp.com/mcp-server:

Community

Contributing

Bug reports and pull requests are welcome. Please report security issues privately as described in SECURITY.md.

bash
npm ci             # install dependenciesnpm run dev        # run in watch modenpm run inspect    # test with MCP Inspectornpm test           # run testsnpm run lint       # check code stylenpm run format     # fix formatting

CI runs lint, format check, type check, tests, and build on every pull request. When you change a configuration option, update the docs-site configuration reference in the same change. .agents/skills/mainwp-dashboard is the canonical copy of the agent skill; see docs/plugin.md.

License

GPL-3.0. See LICENSE.

來源:README.md,提交 0cff693

工具

0
工具後設資料尚未被收錄。

版本歷史

1
  1. v1.4.0最新Oct 6, 2026