How to connect an AI assistant to your Managed WP site with MCP
Using Model Context Protocol (MCP), you can connect your Managed WP site to interact with an AI assistant that can perform supported actions on your WordPress site, such as managing plugins.
To set up the connection, you’ll need the latest version of the one.com plugin, an MCP-compatible AI assistant, Node.js, and your WordPress username and an application password. You’ll then add your WordPress MCP connection details to your AI assistant and verify that the connection works.
This guide walks you through the setup using Claude Desktop as an example. You can also connect other AI assistants that support MCP.
Before you start, make sure you have:
- A Managed WP website with the one.com plugin installed and updated to the latest version.
- An AI assistant that supports MCP, such as Claude Desktop, ChatGPT, or GitHub Copilot.
- Node.js installed on your device if your MCP setup uses
npmornpx.- Administrator access to your WordPress dashboard.
- Step 1 - Install or update the one.com plugin
- Step 2 - Choose and download your AI assistant
- Step 3 - Install Node.js on your device
- Step 4 - Get your WordPress credentials for MCP
- Step 5 - Connect your site to Claude Desktop
- Step 6 - Verify the connection
- How to connect another AI assistant
Step 1 - Install or update the one.com plugin
Make sure the one.com plugin is installed on your Managed WP website. You can follow our guide on how to install the one.com parent plugin manually.
If the plugin is already installed, update it to the latest version. MCP is an evolving protocol, and new capabilities may be added through updates to WordPress and the one.com plugin.
Tip: Keep the one.com plugin updated to ensure you have access to the latest supported MCP features.
Step 2 - Choose and download your AI assistant
You can connect your Managed WP site to various AI assistants that support MCP. In this guide, we use Claude Desktop as an example and walk you through the connection step by step.
If you prefer another MCP-compatible AI assistant, you can use that instead. The setup process may differ depending on the assistant. See Step 7 for more information about connecting other AI assistants.
Here are some AI assistants and tools that support MCP:
Note: The following steps use Claude Desktop. Menus and configuration options may look different if you use another AI assistant.
Step 3 - Install Node.js on your device
To let your AI assistant communicate with your WordPress site, it needs a small piece of software called an MCP server. This runs locally on your computer and acts as the connection between your AI assistant and your WordPress site.
For the setup in this guide, the MCP server is started using a tool called npx, which is included when you install Node.js. This is why Node.js needs to be installed on your device before you set up the connection.
- Go to the Node.js download page.
- Install the appropriate version for your operating system.
Note: You don't need to know how to use Node.js or
npxyourself. Once Node.js is installed, your AI assistant can use the required tools when starting the MCP connection.
Step 4 - Get your WordPress credentials for MCP
To connect your AI assistant to your WordPress site, MCP needs your WordPress username and an application password. An application password is a separate password generated by WordPress that allows an external application to access your site without sharing your regular WordPress login password.
Find your WordPress username
- Log in to your WP Admin.
- Go to Users > Profile.
- Find your WordPress username and keep it available. You will need it when you configure the MCP connection in Step 5.
Create an application password
- On the same Profile page, scroll down to Application Passwords.
- Enter a name that helps you identify where the password will be used. For example, if you are connecting Claude Desktop, you can enter: Claude Desktop MCP.
- Click Add Application Password.
-
WordPress will now generate an application password. Copy the password and store it somewhere secure.
Copy the application password when WordPress displays it. You will not be able to view the same password again later.
Tip: Use a separate application password for each app or connection. This makes it easier to revoke access to one connection without affecting the others.
Step 5 - Connect your site to Claude Desktop
Now that you have everything you need, you can connect your WordPress site to Claude Desktop by adding your site details to Claude’s MCP configuration.
- Open Claude Desktop on your computer.
- Click your name or profile menu and select Settings.
- In Settings, click on Developer in the menu on the left.
- Click Edit Config.
- Claude Desktop will open a file named
claude_desktop_config.json. Open this file in a plain-text or code editor, such as Notepad or Visual Studio Code.
Add the WordPress MCP server
The next step is to add your WordPress site as an MCP server in Claude. This tells Claude how to connect to your site.
- Copy the following configuration code:
{
"mcpServers": {
"wordpress": {
"command": "npx",
"args": ["-y", "@automattic/mcp-wordpress-remote@latest"],
"env": {
"WP_API_URL": "https://your-site-url/wp-json/mcp/onecom-mcp",
"WP_API_USERNAME": "your-wordpress-username",
"WP_API_PASSWORD": "your-application-password"
}
}
}
}- Replace the following placeholders with your own WordPress details:
-
your-site-url— Replace this with the address of your WordPress website. -
your-wordpress-username— Replace this with the WordPress username you found in Step 4. -
your-application-password— Replace this with the application password you created in Step 4.
-
Paste the configuration into the
claude_desktop_config.jsonfile.If the file already contains settings, don't delete them. Add the
mcpServersconfiguration alongside the existing settings. Everything needs to remain inside the same outer{ }brackets.The code in the
claude_desktop_config.jsonfile should now look like this:-
Show an example of the Claude configuration
{ "mcpServers": { "wordpress": { "command": "npx", "args": ["-y", "@automattic/mcp-wordpress-remote@latest"], "env": { "WP_API_URL": "https://your-site-url/wp-json/mcp/onecom-mcp", "WP_API_USERNAME": "your-wordpress-username", "WP_API_PASSWORD": "your-application-password" } } }, "coworkUserFilesPath": "/Users/xxxx/Claude", "preferences": { "launchPreviewPersistedWorkspaces": [], "launchPreviewSessionScopedSessions": [], "coworkScheduledTasksEnabled": false, "coworkHipaaRestricted": false, "ccdScheduledTasksEnabled": false, "sidebarMode": "chat", "bypassPermissionsGateByAccount": { "5d5ad1e7-xxxx-4ece-9cb9-51a622ff72e9": true, "8d4040f8-xxxx-415d-acd9-9cf85dabbd69": false }, "coworkWebSearchEnabled": true, "coworkModelAutoFallbackByAccount": { "5d5ad1e7-xxxx-4ece-9cb9-51a622ff72e9": true, "8d4040f8-xxxx-415d-acd9-9cf85dabbd69": true }, "remoteToolsDeviceName": "xxxxx-macbook-pro-local", "epitaxyPrefs": { "starred-local-code-sessions": [], "starred-cowork-spaces": [], "starred-session-groups": [], "ccd-sessions-filter": { "state": { "selectedProjects": [] }, "version": 0 }, "desktop-frame.paneStore.v1": { "state": { "extraPanesByMode": {}, "colWeightsByMode": {}, "rowSplit": 0.5, "draftNonce": 0 }, "version": 4 }, "dframe-local-slice": { "pinnedOrder": [], "homeProjectsPinnedOrder": [] }, "dframe-group-scopes": {} } } }
Note: The other settings in your own Claude configuration file may look different from this example. Keep your existing settings and add the
mcpServersconfiguration without removing them. -
- Save the
claude_desktop_config.jsonfile and restart Claude Desktop.
Note: Make sure there are no missing commas or brackets in the JSON file and that you have replaced all placeholders with your own details. Incorrect JSON or unchanged placeholders will prevent the connection from working.
Managing multiple WordPress sites
If you manage more than one WordPress website, you can add a separate MCP server entry for each site. Claude will be able to work across all your connected sites in the same conversation.
Give each entry a unique name, for example wordpress-site1 and wordpress-site2.
{
"mcpServers": {
"wordpress-site1": {
"command": "npx",
"args": ["-y", "@automattic/mcp-wordpress-remote@latest"],
"env": {
"WP_API_URL": "https://your-site-url/wp-json/mcp/onecom-mcp",
"WP_API_USERNAME": "your-wordpress-username",
"WP_API_PASSWORD": "your-application-password"
}
},
"wordpress-site2": {
"command": "npx",
"args": ["-y", "@automattic/mcp-wordpress-remote@latest"],
"env": {
"WP_API_URL": "https://your-second-site-url/wp-json/mcp/onecom-mcp",
"WP_API_USERNAME": "your-wordpress-username",
"WP_API_PASSWORD": "your-application-password"
}
}
}
}Replace the URL, username, and application password in each entry with the credentials for the corresponding WordPress website.
Tip: Use a descriptive name for each site in the configuration. This makes it easier to identify the correct website when working with several sites in the same AI assistant.
Step 6 - Verify the connection
After restarting Claude Desktop, go back to Settings > Developer. Your WordPress MCP server should now appear as an active connection.
You can also test the connection directly in a Claude conversation.
Ask Claude: "List all the WordPress abilities."
If the connection is working, Claude will return the WordPress abilities made available through the one.com MCP connection. Depending on the currently available features, these can include actions such as:
- Listing available one.com marketplace plugins
- Listing installed one.com products
- Installing a plugin
- Activating a plugin
- Deleting a plugin
You can then ask Claude to perform one of the supported actions.
For example: "Install the Weglot plugin."
Claude will use the one.com MCP connection to perform the supported action on your WordPress website and return the result in the conversation.
Note: Always review what your AI assistant is about to do before approving actions that can change your website, such as installing, activating, or deleting plugins.
How to connect another AI assistant
You can also connect your Managed WP site to another AI assistant or development tool that supports MCP.
The location and format of the MCP configuration depend on the application you are using. Follow the MCP setup instructions provided by your AI assistant.
When adding the one.com WordPress MCP server, use the same connection details from this guide. In particular, make sure the WordPress API URL uses the one.com MCP endpoint:
"WP_API_URL": "https://your-site-url/wp-json/mcp/onecom-mcp"
Replace your-site-url with your own WordPress website address. You will also need to provide the WordPress username and application password you created in Step 4.
You can find more information in these external guides:
- How to Connect Rank Math With ChatGPT
- How to Connect Rank Math With Claude Desktop
- How to Connect Rank Math With GitHub Copilot
Note: The names of menus, configuration files, and MCP settings vary between AI assistants. Refer to the official documentation for the assistant you are using.
Related articles: