npx -y @mainwp/mcp with your Dashboard URL, WordPress username, and Application Password in the environment. Only the config file location and format differ.
If you keep credentials in a central ~/.config/mainwp-mcp/settings.json instead (see Configuration Reference), omit the env block in any of these examples.
- Claude Desktop
- Claude Code
- Cursor
- VS Code Copilot
- OpenAI Codex
- ZenCoder
- Other MCP hosts
Edit the Claude Desktop configuration file:Replace the URL with your Dashboard address, the username with the WordPress user that owns the Application Password, and the password with the one WordPress generated. Spaces in the password are fine either way, WordPress accepts it with or without them.Restart Claude Desktop after saving.
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
mcpServers block (create the file if it does not exist):Managing multiple Dashboards
Give each Dashboard its own folder with its ownsettings.json, then point each server entry at the right folder with cwd:
./settings.json from its working directory first, so each entry picks up its own credentials. Details in the Configuration Reference.