You can access Rank Math’s SEO and AI tools directly from the Claude Desktop app. To do this, you first need to connect your WordPress site to Claude Desktop using MCP. Once connected, you can perform SEO tasks, access AI-powered insights and tools, and even make SEO changes to your WordPress site directly from Claude.
In this knowledgebase article, we’ll show you how to connect Rank Math with Claude Desktop using MCP.
How to Connect Rank Math to Claude Using MCP:
1 Getting Started With Rank Math MCP
You will need a few things to get started. Specifically, you’ll need to gather some details and install the required software:
- Website URL
- WordPress username
- Application password
- Install Claude Desktop
- Install Node.js
You already have your site URL. However, you will not include https:// in the URL. So, if your site URL is https://example.com, you will use example.com as your URL.
We will show you how to get your WordPress username and application password. To get started with both, head to Users → Profile from your WordPress dashboard.

1.1 How to Find Your WordPress Username
To find your WordPress username, scroll down to the Username field. Your WordPress username will be displayed. Copy it.

1.2 How to Create an Application Password
Now, scroll down to Application Passwords. Enter a name for your application password into the New Application Password Name field.
Ensure the name is descriptive so you can identify the application password when you want to delete or review it later. For our example, let us call ours Claude Desktop MCP.
Once done, click Add Application Password.

It will display the application password you will use to connect to Claude Desktop. Make sure to click Copy. Also, ensure to save this application password somewhere safe, as WordPress will not show it to you again.

1.3 Install Claude Desktop App on Your Device
The next step is to download the Claude Desktop app on your device. You can do so here. Once done, log in to your Claude account.
1.4 Install Node.js on Your Device
You also need to download Node.js on your device to connect using MCP. You can download Node.js here.
The specific version you download depends on your operating system and CPU architecture. However, the site will typically pre-select your device name and architecture. Review them, and click Windows Installer (.msi) if you use Windows or macOS Installer (.pkg) if you use macOS.
Once done, you can proceed to install the downloaded file on your device.

2 Head to the Claude Developer Settings
Open Claude Desktop on your device. Now, click on your username and select Settings, as shown below.

Once done, select Developer.

3 Open the Edit Config File in Claude
Now, click Edit Config.

Claude Desktop will open or attempt to open a file named claude_desktop_config.json. You should open the file using a text or code editor, such as Notepad or VS Code.

4 Add Your MCP Server Configuration
The next step is to add your WordPress MCP server configuration to the Claude JSON file you just opened. For a start, the claude_desktop_config.json file already has some code. That is normal. Do not delete that code.
Now, copy the MCP server configuration below and add it above the code in the Claude Desktop JSON file. Make sure to format it properly so that the entire code (MCP server configuration and the code you met in the Claude config file) is within the same curly bracket.
{
"mcpServers": {
"your-site-url": {
"type": "stdio",
"command": "npx",
"args": [
"-y", "@automattic/mcp-wordpress-remote@latest"
],
"env": {
"WP_API_URL": "https://your-site-url/wp-json/mcp/mcp-adapter-default-server",
"WP_API_USERNAME": "your-wordpress-username",
"WP_API_PASSWORD": "your-application-password",
"OAUTH_ENABLED": "false"
}
}
}
}
You should also ensure to replace the following placeholders in the MCP server configuration with the WordPress details you created or copied earlier:
your-site-url— Replace with your site URLyour-wordpress-username— Replace with your WordPress usernameyour-application-password— Replace with your application password
Note: your-website-domain appears twice in the MCP server configuration. You should replace both. Ensure not to include https:// in your site URL, as the MCP server configuration already includes it where required.
The code in the claude_desktop_config.json file should now look like this.

Once done, save the file and restart Claude.
5 Request the Available Rank Math MCP Tools
Now, ask Claude to list the available MCP tools on your device. It will return a response similar to the one shown below.

You can also instruct Claude to perform SEO, link analysis, and AI Visibility-related tasks on your site. For example, let us prompt Claude to audit our site’s SEO. It will do so using Rank Math and will return a response, as shown below.

As you can see, its response is comprehensive and shows us issues that failed the test, warnings indicating areas for improvement, and notes on the test it ran.

Rank Math provides multiple MCP tools to perform SEO tasks and manage your WordPress site from Claude. You can refer to this article for a list of the MCP tools available in Rank Math and the tasks you can complete with them.
That is all on connecting Rank Math to Claude using MCP. If you have any questions, you’re always more than welcome to contact our dedicated support team, who are available 24/7, 365 days a year.