MainWP
io.github.mainwp/mainwp-mcp
Manage WordPress sites in MainWP from AI tools, with approval before destructive changes by default.
- Repository
- github.com/mainwp/mainwp-mcp
- Website
- docs.mainwp.com/mcp-server
- Version
- 1.7.0
- Author
- mainwp (namespace verified by the registry)
- Source
- Official MCP registry (updated Nov 25, 2026)
How to install it
Variables to fill in: MAINWP_URL, MAINWP_USER, MAINWP_APP_PASSWORD.
On your machine
Claude Code
The server runs on your machine (npm package). In a terminal:
claude mcp add mainwp-mcp -e MAINWP_URL=YOUR_MAINWP_URL -e MAINWP_USER=YOUR_MAINWP_USER -e MAINWP_APP_PASSWORD=YOUR_MAINWP_APP_PASSWORD -- npx -y @mainwp/[email protected]Claude Desktop claude_desktop_config.json
Settings, Developer, Edit config, then add:
{
"mcpServers": {
"mainwp-mcp": {
"command": "npx",
"args": [
"-y",
"@mainwp/[email protected]"
],
"env": {
"MAINWP_URL": "YOUR_MAINWP_URL",
"MAINWP_USER": "YOUR_MAINWP_USER",
"MAINWP_APP_PASSWORD": "YOUR_MAINWP_APP_PASSWORD"
}
}
}
}Cursor ~/.cursor/mcp.json
In ~/.cursor/mcp.json:
{
"mcpServers": {
"mainwp-mcp": {
"command": "npx",
"args": [
"-y",
"@mainwp/[email protected]"
],
"env": {
"MAINWP_URL": "YOUR_MAINWP_URL",
"MAINWP_USER": "YOUR_MAINWP_USER",
"MAINWP_APP_PASSWORD": "YOUR_MAINWP_APP_PASSWORD"
}
}
}
}VS Code .vscode/mcp.json
In .vscode/mcp.json:
{
"servers": {
"mainwp-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@mainwp/[email protected]"
],
"env": {
"MAINWP_URL": "YOUR_MAINWP_URL",
"MAINWP_USER": "YOUR_MAINWP_USER",
"MAINWP_APP_PASSWORD": "YOUR_MAINWP_APP_PASSWORD"
}
}
}
}ChatGPT
ChatGPT only connects to remote servers (an https address). This package runs locally: use one of the apps above.
These configurations are built from the information published by the author. Check the repository before installing a local server.
Our test
This server runs on your machine: we cannot test it remotely.
Reviews
No review yet.
Sign in to leave a review. Your email is all you need.
Comments
No comment yet. A question, a tip? Start the discussion.
Sign in to comment.
Badge for your README
Show that your project is listed (and tested, if it responds): paste this code in your README. The badge follows the latest test and links back to this entry.
Markdown (GitHub)
[](https://lagora.dev/en/entry/io.github.mainwp/mainwp-mcp)HTML
<a href="https://lagora.dev/en/entry/io.github.mainwp/mainwp-mcp"><img src="https://lagora.dev/badge/io.github.mainwp/mainwp-mcp.svg?lang=en" alt="io.github.mainwp/mainwp-mcp on L’Agora" height="20"></a>For the entry’s author only: sign in to continue.