Manage WordPress sites in MainWP from AI tools, with approval before destructive changes by default.
Connect Runs on your machine
claude mcp add mainwp-mcp -e MAINWP_URL=<MAINWP_URL> -e MAINWP_USER=<MAINWP_USER> -e MAINWP_APP_PASSWORD=<MAINWP_APP_PASSWORD> -- npx -y @mainwp/[email protected]
{
"mcpServers": {
"mainwp-mcp": {
"command": "npx",
"args": [
"-y",
"@mainwp/[email protected]"
],
"env": {
"MAINWP_URL": "<MAINWP_URL>",
"MAINWP_USER": "<MAINWP_USER>",
"MAINWP_APP_PASSWORD": "<MAINWP_APP_PASSWORD>"
}
}
}
}
{
"mcpServers": {
"mainwp-mcp": {
"command": "npx",
"args": [
"-y",
"@mainwp/[email protected]"
],
"env": {
"MAINWP_URL": "<MAINWP_URL>",
"MAINWP_USER": "<MAINWP_USER>",
"MAINWP_APP_PASSWORD": "<MAINWP_APP_PASSWORD>"
}
}
}
}
{
"servers": {
"mainwp-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@mainwp/[email protected]"
],
"env": {
"MAINWP_URL": "<MAINWP_URL>",
"MAINWP_USER": "<MAINWP_USER>",
"MAINWP_APP_PASSWORD": "<MAINWP_APP_PASSWORD>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
MAINWP_URLRequired | Address of your MainWP Dashboard, such as https://dashboard.example.com |
MAINWP_USERRequired | WordPress username of the Dashboard administrator (the login name, not the display name) |
MAINWP_APP_PASSWORDRequired, secret | WordPress Application Password for that user, not their login password |
Details
| Package | @mainwp/[email protected] (NPM, stdio) |
| First published | 13 Oct 2026 |
| Last updated | 13 Oct 2026 |
| Registry name | io.github.mainwp/mainwp-mcp |
More other servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
