Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

MainWP

MCP server by mainwp Community

MainWP MCP Server connects Claude, Cursor, OpenAI Codex, VS Code Copilot and other MCP clients to MainWP, a self-hosted dashboard for managing many WordPress sites. Deletions wait for your approval by default. It is built for agencies and freelancers.

  • Score 80
  • 34 stars
  • 1.2k a week
  • GPL-3.0
  • Updated

Install MainWP

Built from the published package, never by AI.

claude mcp add mainwp -e MAINWP_URL=YOUR_MAINWP_URL -e MAINWP_USER=YOUR_MAINWP_USER -e MAINWP_APP_PASSWORD=YOUR_MAINWP_APP_PASSWORD -- npx -y @mainwp/mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install MainWP in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mainwp block.

About

The MainWP MCP Server connects Claude, Cursor, OpenAI Codex, VS Code Copilot, and other MCP-compatible AI tools to MainWP, a self-hosted dashboard for managing many WordPress sites. You can ask for pending plugin updates, update WooCommerce across sites, or check which client sites are disconnected. It runs on your own computer, next to your AI tool, and installs nothing new on your Dashboard or child sites.

By default, deleting a site, plugin, or theme shows a preview and runs only after you approve it. Safe mode blocks those destructive operations outright, and allow and block lists control which tools the AI can see. The server signs in with a WordPress Application Password that can be revoked at any time and talks only to your Dashboard. It is built for agencies and freelancers who manage many WordPress sites and want AI help with updates, maintenance, and client work.

Written from the project's README and checked against it.

Tools it gives your assistant

  • SitesList, sync, check connectivity, add, reconnect, or remove child sites.
  • UpdatesSee pending core, plugin, theme, and translation updates across the network, and apply them.
  • Plugins and themesSee what is installed, activate, deactivate, or delete plugins and themes.
  • Clients and tagsManage client records, assign sites, and track costs.
  • KnowledgeRead agency, client, and site notes, skills, and memories before working (Dashboard 6.3 and later).
  • Guided workflowsRun network summaries, site reports, security audits, and update plans.

What you need

  • MainWP Dashboard 6.0 or later, reachable over HTTPS
  • WordPress Application Password created in the Dashboard
  • Node.js 20.19 or later on the computer that runs your AI tool
  • An MCP-compatible AI client
SettingNeededWhat it is
MAINWP_URLEnvironment variableRequiredAddress of your MainWP Dashboard, such as https://dashboard.example.com
MAINWP_USEREnvironment variableRequiredWordPress username of the Dashboard administrator (the login name, not the display name)
MAINWP_APP_PASSWORDEnvironment variable, secretRequiredWordPress Application Password for that user, not their login password

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • Which sites have pending plugin updates?
  • Update WooCommerce everywhere it's behind.
  • Which client sites are disconnected right now?

Good to know

  • Some tools need a newer Dashboard version; the Quickstart lists which.
  • Safe mode blocks destructive operations with no approval prompt.
  • Around 70 tools in all, depending on your Dashboard version.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to MainWP

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

MainWP: common questions

Can the AI change my sites without asking first?

By default, deleting a site, plugin, or theme shows a preview and runs only after you say yes. On Dashboard 6.3 and later, updates work the same way.

Does it install anything on my child sites?

No. The source says it runs on your own computer and nothing new is installed on your Dashboard or child sites.

How does the server sign in to my Dashboard?

It uses a WordPress Application Password, separate from your login password, that you can revoke at any time.

How do I install MainWP?

In Claude Code run claude mcp add mainwp -e MAINWP_URL=YOUR_MAINWP_URL -e MAINWP_USER=YOUR_MAINWP_USER -e MAINWP_APP_PASSWORD=YOUR_MAINWP_APP_PASSWORD -- npx -y @mainwp/mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is MainWP the official server?

MainWP is a community project by mainwp, not verified by a company domain.

Is MainWP free?

The code is published under the GPL-3.0 licence. The service it connects to may have its own pricing.

Is MainWP safe to use?

It scores 80 of 100. Grades: maintenance A, licence C, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to MainWP?

Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.

Does MainWP work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

MainWP Install

Add to stack

Loading.