Skip to main content
Every client below runs the same server the same way: 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.
Edit the Claude Desktop configuration file:
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
Add the MainWP server to the mcpServers block (create the file if it does not exist):
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.

Managing multiple Dashboards

Give each Dashboard its own folder with its own settings.json, then point each server entry at the right folder with cwd:
The server reads ./settings.json from its working directory first, so each entry picks up its own credentials. Details in the Configuration Reference.