MainWP logo

MainWP

Manage WordPress networks through MainWP with AI-driven site maintenance, updates, reporting, and approval-gated changes.

Install MainWP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mainwp": {
      "command": "npx",
      "args": [
        "-y",
        "@mainwp/mcp"
      ],
      "env": {
        "MAINWP_URL": "YOUR_VALUE_HERE",
        "MAINWP_USER": "YOUR_VALUE_HERE",
        "MAINWP_APP_PASSWORD": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y @mainwp/mcp

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

MainWP MCP server connects MCP-compatible AI clients to a self-hosted MainWP Dashboard for managing multiple WordPress sites. It exposes more than 70 tools for site operations, updates, plugins, themes, clients, tags, notes, reports, audits, and guided maintenance workflows. Updates and deletions require approval by default, while safe mode blocks those changes and still permits dry runs. Run it locally beside the AI client using a MainWP Application Password, or use MainWP Dashboard 6.5+ remote connections where supported.

Use cases

  • List child sites with connectivity or update issues
  • Review pending WordPress updates across a network
  • Apply approved plugin, theme, or core updates
  • Generate site reports and security audits
  • Manage MainWP clients, tags, notes, and site assignments

Key features

  • Network-wide WordPress site management
  • Approval-gated updates and deletions
  • Safe mode and update dry runs
  • Plugin, theme, and translation update tools
  • Client, tag, cost, and knowledge management
  • Tool allowlists and blocklists

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

12/12 checks healthy over the last 46d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d ago via OSV.dev · @mainwp/mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars34Stargazers on the source repository.
npm downloads3.4kPackage downloads in the last 30 days.
Last commit2d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How MainWP works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MainWP

MainWP is an MCP server that connects AI clients to a self-hosted MainWP Dashboard for managing WordPress networks. Its main tools cover child sites, updates, plugins, themes, clients, tags, notes, reports, audits, and guided workflows, with approval controls for updates and deletions.

Install it by configuring your MCP client to run `npx -y @mainwp/mcp` with `MAINWP_URL`, `MAINWP_USER`, and `MAINWP_APP_PASSWORD` environment variables. You also need Node.js 20.19 or later, an HTTPS-reachable MainWP Dashboard, and a WordPress Application Password.

Yes, MainWP supports Cursor through its MCP configuration. Add the server command and the three MainWP environment variables to Cursor's MCP settings, restart the client, and test the connection by asking it to list your sites.

Yes, updates require approval by default and show a preview before execution. Safe mode blocks updates and deletions altogether, while a dry run can show what an update would change without applying it.

A local setup requires MainWP Dashboard 6.0 or later on WordPress 6.9 or later, with the Dashboard reachable over HTTPS. Some tools need a newer Dashboard version, and remote connections require MainWP Dashboard 6.5 or later.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMainWP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mainwp?style=directory)](https://allmcps.com/mcp/mainwp)
HTML Embed
<a href="https://allmcps.com/mcp/mainwp"><img src="https://allmcps.com/api/badge/mainwp?style=directory" alt="MainWP on AllMCPs" /></a>