How to Connect WP Rocket MCP to Claude
Table of Contents
We’re excited to introduce WP Rocket MCP, coming with our major release, WP Rocket 3.23: a secure connection that lets your AI assistant manage your entire site portfolio, all from one conversation.
If you manage multiple WordPress sites, you know the drill: log into one dashboard, check the score, log into the next, repeat. With WP Rocket MCP, you can ask Claude to check speed scores, get recommendations, apply changes, or generate performance reports across all your sites at once, without switching tabs, copy-pasting data, or logging in one site at a time.
🔒 Nothing changes on your site without your approval.
Let’s set it up: it only takes a few minutes.
You can watch the video or keep reading and discover all the steps.
What you’ll Need to Connect WP Rocket MCP to Claude
Before you start, make sure you have:
- Claude Desktop installed on your computer (the free version works fine)
- WP Rocket installed and active on your site
- Your website URL, WordPress username, and an application password (we’ll create this in Step 1)
- Windows only: Node.js installed, since the connection runs on the npx command. Mac users don’t need anything extra. If you don’t have Node.js installed installed, we’ll explain how to do it in Step 2.
Your Step-by-Step Setup Guide
Step 1: Create an application password
- Log in to your WordPress dashboard and go to Users → Profile.
- Scroll down to Application Passwords.
- Give it a name, something like WP Rocket MCP, and click Add New.
- WordPress will generate a password. Copy it now and store it somewhere safe: it’s only shown once.
This password is what lets Claude connect securely to your site. You can revoke it at any time from the same screen.
Step 2: Check Node.js (Windows only)
Mac users can skip to Step 3.
- Open Command Prompt.
- Type:
npx
- If it returns a file path, you’re ready. If nothing comes back, install Node.js from nodejs.org and try again.
Step 3: Configure Claude Desktop
This is the main setup step. Take it slowly and double-check each part before saving.
- Open Claude Desktop, click your profile in the bottom left, and go to Settings → Developer.
- Click on the config file to open it in a text editor (use Notepad on Windows).
- Right after the file’s opening curly bracket {, paste the following code, then add a comma after it:
"wp-rocket-mcp": {
"command": "npx",
"args": ["-y", "wp-rocket-mcp"],
"env": {
" WP_API_URL": "YOUR_SITE_URL",
" WP_API_USERNAME": "YOUR_WORDPRESS_USERNAME",
" WP_API_PASSWORD": "YOUR_APPLICATION_PASSWORD"
}
}
- Replace the three placeholders with your own details:
- Before saving, check that the file contains both this new mcpServers section and your existing Claude Desktop settings: you’re adding to the file, not replacing it.
- Save the file, then fully close and reopen Claude Desktop.
⚠️ Common mistakes to avoid: forgetting the comma after the code block or saving the file with a placeholder still in place instead of your real details. Both will stop the connection from working.
Step 4: Verify the connection
- Go back to Settings → Developer. Your site should now show as an active connection.
- Ask Claude: “What MCP tools are available on my site?”
If it’s working, Claude will list the WP Rocket MCP abilities available to it, such as reading your Rocket Insights scores, adjusting settings, measuring the impact of changes, and more.
Now try your first real prompt
Now for the payoff. Ask Claude something like:
"What is my speed score?"
Claude will pull your real performance data straight from Rocket Insights and give you an actual answer: no dashboard, no copy-pasting, just a conversation.
From here, you can ask Claude to:
- Summarize your latest performance report
- Identify which recommendations to apply first
- Enable a specific WP Rocket feature
- Generate a full performance report for a client.
Managing multiple sites
If you manage multiple sites, just add another entry to the same config file for each one. Claude will be able to work across all your connected sites in the same conversation. You can check on a client portfolio, compare scores, or create tailored reports without switching between dashboards.
What’s Next?
That’s it! One setup, and Claude can help you monitor, troubleshoot, and report on your sites, all grounded in your real Rocket Insights data. Nothing changes without your approval.
Want to see it in action? Check out our blog post on more ways to use WP Rocket MCP, from daily portfolio checks to automated client reports. 🚀