Before you start
- MCPMate is installed on your site, and its setup checks pass.
- Claude Code installed.
- WordPress 6.0 or later and PHP 7.4 or later, your site on HTTPS, permalinks set to anything but “Plain”, and an administrator account.
Your MCP URL
Copy yours from MCPMate → Connections. It looks like this:
https://your-site.com/wp-json/ mcpmate/ mcp
Steps
-
Add your site with one command
In your terminal, run this command with your own MCP URL. Add
--scope userto use it in every project.Terminalclaude mcp add --transport http wordpress https://your-site.com/wp-json/mcpmate/mcp
-
Sign in from Claude Code
Start Claude Code, type /mcp, pick wordpress and sign in. Or run claude mcp login wordpress.
-
Approve in your browser
Your browser opens your site’s approval page. Check it, then approve.
Approve on your site
The approval page shows three things:
- the app’s name, marked “not verified” if it registered itself;
- where it will send you back;
- the access choice: Full or Read-only.
Approval links last 10 minutes. If one expires, start again from Claude Code.
Try it
Three first prompts. They only read, so nothing on your site changes.
-
Prompt
Give me a health summary of my WordPress site.
-
Prompt
Which theme and plugins does my site use, and are any out of date?
-
Prompt
Read my homepage and suggest three ways to make it clearer.
If it doesn’t work
The approval page warns about “this computer”. That’s expected for desktop apps like Claude Code, so you can approve.
Sign-in fails with “registration rejected (404)”? Your host blocks addresses under /.well-known. The AI apps can find how to sign in row in Site checks shows the rule to add.
For hosting problems, such as a stripped Authorization header or a blocked /.well-known address, see troubleshooting. Each fix names the Site checks row in the plugin that matches it.