# MainWP [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/mainwp/mainwp-mcp  
**GitHub Stars:** 34  
**npm Downloads (last month):** 3393  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mainwp

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

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mainwp": {
    "command": "npx",
    "args": ["-y","@mainwp/mcp"],
    "env": {
      "MAINWP_URL": "",
      "MAINWP_USER": "",
      "MAINWP_APP_PASSWORD": ""
    }
  }
}
```

**Requires environment variables:** `MAINWP_URL`, `MAINWP_USER`, `MAINWP_APP_PASSWORD` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What MainWP does

MainWP MCP server gives AI assistants access to a MainWP Dashboard, which centrally manages a network of WordPress child sites. It is intended for agencies and freelancers handling maintenance, updates, client records, and recurring site checks across multiple installations.

The server supports site discovery and administration, including listing sites, synchronizing data, checking connectivity, adding or reconnecting child sites, and removing them. It can inspect pending core, plugin, theme, and translation updates, then apply selected updates. Plugin and theme tools cover installed-item inspection, activation, deactivation, and deletion.

MainWP data beyond site administration is also available. AI workflows can work with clients, site assignments, tags, costs, agency notes, client notes, site notes, skills, and memories. Guided operations include network summaries, site reports, security audits, and update plans. MainWP add-ons can provide additional tools beyond the server's base set.

## How it works

The server runs on the user's computer next to the MCP client and communicates with the MainWP Dashboard over HTTPS. It does not require software to be installed on the Dashboard or on individual child sites. Authentication uses a WordPress Application Password rather than the account's normal login password; that credential can be revoked from WordPress at any time.

Potentially destructive operations are approval-gated by default. The AI can present a preview of an update or deletion, but the operation runs only after confirmation. Safe mode blocks updates and deletions entirely, while dry-run update requests can show the expected changes without applying them. Tool allowlists and blocklists control which capabilities are exposed to the AI client.

## Setup and configuration

A local setup requires MainWP Dashboard 6.0 or later on WordPress 6.9 or later, an HTTPS-reachable Dashboard, Node.js 20.19 or later, and an MCP-compatible client. Some operations require newer Dashboard versions. Create an Application Password under **Users > Profile > Application Passwords**, then configure the client to launch the npm package with `npx`.

The required connection settings are:

- `MAINWP_URL`: HTTPS URL of the MainWP Dashboard
- `MAINWP_USER`: WordPress username used for authentication
- `MAINWP_APP_PASSWORD`: WordPress Application Password

After restarting the client, a request such as “List all my sites” can verify the connection. Client-specific configuration locations are documented for Claude Desktop, Claude Code, Cursor, VS Code Copilot, OpenAI Codex, and other MCP clients. Claude Code can install the server together with an agent skill and ten `/mainwp:*` workflow commands through the MainWP plugin.

MainWP Dashboard 6.5 or later also supports connecting Claude, ChatGPT, and other AI applications directly through remote connections, without installing the local server.

## Tools and capabilities

- List, synchronize, connect, add, reconnect, and remove child sites
- Find pending core, plugin, theme, and translation updates
- Preview or apply updates with approval and safe-mode controls
- Inspect, activate, deactivate, and delete plugins and themes
- Manage clients, site assignments, tags, and tracked costs
- Store and use agency, client, and site knowledge
- Generate network summaries, site reports, security audits, and update plans
- Restrict the AI-visible tool set with allow and block lists

## Limitations and notes

The Dashboard must be reachable over HTTPS, and compatibility varies by operation because some tools require a newer MainWP Dashboard release. Credentials remain in the client environment and should use a dedicated administrator account when a separate API audit trail is desirable. The server connects to the MainWP Dashboard; it does not install components on child sites.

_Full upstream README: https://allmcps.com/mcp/mainwp/readme_

