The Claude desktop app can work with a WordPress site through MCP (Model Context Protocol): count and export content, run imports and sync posts between sites, all from a chat. On the WordPress side, the official MCP Adapter plugin turns the site into an MCP server. Claude Desktop starts MCP servers from its configuration file, so connecting a site takes one entry in that file and an Application Password. This guide covers a live site over HTTPS and a local development site, and what works in claude.ai in the browser.
Free: the connection and all actions used here are in the free Import Export by RockStarLab plugin. The test below used Import Export by RockStarLab 2.2.13, WordPress 7.1, MCP Adapter 0.7.1, @automattic/mcp-wordpress-remote 0.5.5 and Node.js 22.
Short Answer
Install Import Export by RockStarLab, turn on Enable Abilities API in its AI Agent Connection settings and let the wizard activate MCP Adapter. Create an Application Password in your WordPress profile. In the wizard’s last step, choose Claude Desktop, paste the password and copy the generated settings into Claude Desktop’s configuration file (Settings > Developer > Edit Config). They add a wordpress server that runs npx -y @automattic/mcp-wordpress-remote with your site’s MCP address, username and Application Password. Restart Claude Desktop and ask your first question.
What You Need
- WordPress 6.9 or newer, where the Abilities API is part of core.
- An administrator account. The plugin’s actions require the
manage_optionspermission. - HTTPS on a live site. WordPress offers Application Passwords only over HTTPS, except on local development sites.
- Node.js 22 or newer on your computer, for the
npxcommand that Claude Desktop runs. Check it withnode -v. - The Claude desktop app for macOS or Windows.
Step 1: Turn On Agent Access and MCP Adapter
Go to Import Export by RockStarLab > Plugin Options > AI Agent Connection and turn on Enable Abilities API. The wizard below the switch checks the site’s REST API and, in step 2, installs and activates the official MCP Adapter plugin. Both steps show Ready when the site is prepared:

MCP Adapter publishes the site’s MCP server at https://your-site.com/wp-json/mcp/mcp-adapter-default-server. It answers with three tools: one lists the available actions (abilities), one describes an action’s input, and one runs it.
Step 2: Create an Application Password
Go to Users > Profile, scroll to Application Passwords, enter a name such as “Claude Desktop” and click Add Application Password. WordPress shows the password once, so copy it. The Last Used column later shows when Claude Desktop connected:

An Application Password only works for API requests, not for logging in to the dashboard, and you can revoke it without changing your normal password.
Step 3: Generate the Claude Desktop Settings
Back in the wizard, in step 4, choose AI app: Claude Desktop and Connection method: Custom config, check the username, paste the Application Password and click Generate connection. The settings are put together in your browser; the password is not sent anywhere:

One command instead writes the entry into Claude Desktop’s configuration file for you. It needs Python 3, keeps your other servers and stops if a wordpress server already exists.
Step 4: Add the Site to Claude Desktop
In Claude Desktop, open Settings > Developer and click Edit Config. This opens claude_desktop_config.json:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Paste the generated settings. If the file already has other servers, add only the wordpress entry inside mcpServers and separate it from the others with a comma. The settings look like this:
{
"mcpServers": {
"wordpress": {
"command": "npx",
"args": ["-y", "@automattic/mcp-wordpress-remote"],
"env": {
"WP_API_URL": "https://your-site.com/wp-json/mcp/mcp-adapter-default-server",
"WP_API_USERNAME": "your-username",
"WP_API_PASSWORD": "xxxx xxxx xxxx xxxx xxxx xxxx"
}
}
}
}
@automattic/mcp-wordpress-remote is a small bridge from Automattic, the company behind MCP Adapter. Claude Desktop starts it on your computer, and it forwards Claude’s requests to your site over HTTPS with your Application Password. The password is stored in plain text in this file, so keep the file private and use a separate Application Password for each computer.
Save the file and quit Claude Desktop completely, then open it again. The app reads the file only at startup.
In our test, we generated the settings in the wizard and started the bridge exactly as they say. It connected to the site, returned the three MCP Adapter tools and ran the plugin’s rsl-ie/export-count action, which counted 123 published posts.
Step 5: Send the First Request
Open a new chat and ask something that only reads data:
Use the wordpress tools and the Import Export by RockStarLab abilities. Tell me how many published posts, pages and media files the site has. Do not change anything.
The counting, exports, imports and Content Sync behind such requests come from Import Export by RockStarLab. WordPress itself gives the agent three read-only abilities through MCP Adapter, for site, user and environment information, so without the plugin the agent can describe the site but not count, export or move its content.
Claude asks for permission before it uses a tool from the server. Allow it once, or for the whole chat. For the next requests, see the examples in connecting Claude Code to WordPress; the actions and prompts are the same in Claude Desktop.
Local Development Sites
For a site in Local, DevKinsta or a similar tool on the same computer, Claude Desktop can talk to WordPress through WP-CLI instead of HTTP. MCP Adapter adds the command wp mcp-adapter serve for this:
{
"mcpServers": {
"wordpress-local": {
"command": "/path/to/wp",
"args": ["mcp-adapter", "serve", "--server=mcp-adapter-default-server", "--user=admin"]
}
}
}
No Application Password is needed: --user sets the WordPress user the actions run as. The command must be a wp that can reach the site’s database. With Local, that is usually a small script that sets Local’s PHP and MySQL socket and then runs wp --path=… for the site; our test machine uses one such script per site. We ran the same command and sent the same requests: the result matched the HTTP connection, 123 published posts.
What About claude.ai in the Browser?
Claude in the browser and on mobile connects to MCP servers as custom connectors (Customize > Connectors > Add custom connector). Those requests come from Anthropic’s servers, so the site must be reachable from the internet over HTTPS. According to Anthropic’s connector documentation, a custom connector signs in with OAuth, or sends fixed request headers such as Authorization: Basic …, which is in beta for a limited set of organizations. MCP Adapter on a self-hosted site signs in with Application Passwords, so without request headers or an OAuth server on the site, use the desktop app setup above.
Troubleshooting
- The server doesn’t appear in Claude Desktop. Check the file for a missing comma or quote, then quit and reopen the app. Settings > Developer lists the configured servers and shows an error when one fails to start.
- “npx” not found or a fetch error. Install Node.js 22 or newer; the bridge needs it.
- 401 or “invalid application password”. Copy the password again with its spaces, check the username, and make sure the site uses HTTPS.
- No RockStarLab actions in the list. Turn on Enable Abilities API in the plugin, and connect with an administrator account.
Before letting an agent import or sync content, back up the site.
FAQ
How do I connect Claude to my WordPress site?
Activate MCP Adapter on the site, create an Application Password, and let the plugin’s connection wizard generate the Claude Desktop settings. Paste them into claude_desktop_config.json and restart Claude Desktop.
Can I add WordPress as a custom connector in claude.ai?
Only if Claude can sign in to the site: with OAuth, or with request headers, which are in beta for some organizations. With Application Passwords, use the Claude desktop app.
Is it safe to give Claude access to WordPress?
Claude acts with the permissions of the WordPress user you connect, and asks before it uses a tool. Use a separate Application Password, revoke it when you no longer need it, and keep backups before imports.
Does this work with local WordPress sites?
Yes. Use the WP-CLI command wp mcp-adapter serve in the Claude Desktop configuration; it doesn’t need HTTPS or an Application Password.
Related Guides
- How to Connect Claude Code to WordPress via MCP
- Let an AI Agent Draft on Staging, Then Push the Approved Posts to Live
- Using Import Export with AI agents
Get the free plugin on WordPress.org.

Comments 0
Have a question or a tip to share? Leave it below.