To connect Claude Desktop to WordPress, install the official MCP Adapter plugin on the site, create a dedicated user with an application password, then declare the server in Claude Desktop’s claude_desktop_config.json file, with the @automattic/mcp-wordpress-remote proxy launched by npx. After a restart, Claude sees your site’s tools and asks for your permission before every call. This tutorial walks through each step, the tests to run, the common errors and the security settings.
If the topic is new to you, start with what MCP changes for WordPress: the useful use cases and the risks are explained there. Here, we get hands-on.
What you need
- WordPress 6.9 or later: the Abilities API, which the adapter relies on, has been part of core since that version.
- A site served over HTTPS: WordPress only offers application passwords over HTTPS, except in local development (see HTTPS on WordPress).
- Claude Desktop, up to date, on macOS or Windows.
- Node.js LTS on your computer: the
node --versioncommand must respond. - Administrator access to the site, for the duration of the setup.

The six steps of the connection
1. Install MCP Adapter
Download mcp-adapter.zip from the releases page of the WordPress/mcp-adapter GitHub repository, then go to Plugins > Add Plugin > Upload Plugin. With WP-CLI:
wp plugin install https://github.com/WordPress/mcp-adapter/releases/latest/download/mcp-adapter.zip --activate
The plugin creates a default MCP server, reachable at https://your-site.com/wp-json/mcp/mcp-adapter-default-server. It offers three generic tools: discover the available abilities, get the details of one of them, and run it. Only the abilities that core or your plugins declare as public for MCP are covered.
2. Create a dedicated user
In Users > Add New User, create for example claude-agent, with the lowest role that does the job: Contributor to read and suggest, Author to prepare drafts, Editor only if the agent needs to edit other people’s content. Never Administrator on a live site (see roles and least privilege). This account will be used by Claude alone: you will know exactly what it did, and you can cut it off without touching your own.
3. Generate an application password
Logged in as an administrator, open the profile of claude-agent, go to the Application Passwords section, enter the name “Claude Desktop” and click Add Application Password. Copy the 24 characters displayed: they will never be shown again. This password grants the account’s permissions without going through the login screen; all the rules for managing it are in our guide to application passwords.
4. Test the endpoint
Before touching Claude, check that the site responds. From a terminal:
curl -X POST "https://your-site.com/wp-json/mcp/mcp-adapter-default-server" \
-u "claude-agent:xxxx xxxx xxxx xxxx xxxx xxxx" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}'
A JSON response containing serverInfo confirms that the plugin is running and that authentication works. A 401 code means a wrong username or password, a 404 an inactive plugin or disabled permalinks.
5. Declare the server in Claude Desktop
In Claude Desktop, open Settings > Developer > Edit Config. The button creates or opens the file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Add the server under the mcpServers key (keep any other servers already there):
{
"mcpServers": {
"my-wordpress-site": {
"command": "npx",
"args": ["-y", "@automattic/mcp-wordpress-remote@latest"],
"env": {
"WP_API_URL": "https://your-site.com/wp-json/mcp/mcp-adapter-default-server",
"WP_API_USERNAME": "claude-agent",
"WP_API_PASSWORD": "xxxx xxxx xxxx xxxx xxxx xxxx"
}
}
}
}
The @automattic/mcp-wordpress-remote package is a local proxy: Claude Desktop talks to it over STDIO, and it forwards everything to your site over HTTPS. Add "LOG_FILE" with a file path in env to keep a record of the exchanges while you fine-tune the setup.
6. Restart and test in Claude
Quit Claude Desktop completely (not just the window) and launch it again. In the message box, the connectors menu should list my-wordpress-site and its tools. Start with a read-only request: “What abilities does my WordPress site expose?”, then “Give me the site information”. Claude asks for your approval before every tool call: read what it is about to do before you accept.
Variant: a local site with WP-CLI
If the site runs on your computer (development environment), Claude Desktop can launch WP-CLI directly, with no HTTP and no application password:
{
"mcpServers": {
"wordpress-local": {
"command": "wp",
"args": ["--path=/path/to/site", "mcp-adapter", "serve", "--server=mcp-adapter-default-server", "--user=claude-agent"]
}
}
}
The --user parameter sets the account whose permissions the agent takes on: here again, no administrator. Without it, the server runs with no user and sees almost nothing.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| The server does not appear | Invalid JSON, Claude not really restarted | Validate the JSON (commas, braces), quit Claude from the taskbar or the menu |
npx not found | Node.js missing or not in Claude’s PATH | Install Node.js LTS, or give the full path to npx in command |
| 401 error | Wrong password, or authentication header stripped by the server | Create a new password; on Apache running as CGI, check the HTTP_AUTHORIZATION rule in .htaccess |
403 error or rest_forbidden | Role too low, or REST API blocked by a plugin or a firewall | Move up one role if needed, allow /wp-json/mcp/ for this account |
| No useful tools | No ability declared as public for MCP | Check the plugins that provide abilities, ask Claude for the list |
ENOENT error with ${APPDATA} (Windows) | Variable not passed to the proxy | Add "APPDATA" with its full path in env |
If your security plugin or firewall restricts the REST API to administrators only, open an exception for the MCP endpoint rather than giving the agent the administrator role.
The security settings not to skip
- The configuration file contains the password in plain text: don’t share it, don’t commit it to version control, and lock your computer session.
- One application password per computer and per tool, revoked as soon as it is no longer used or a device is lost.
- Test on a staging site first, especially for write tools.
- Keep manual approval for tools that change the site; reserve permanent permission for read-only tools.
- Be wary of content written by others (comments, forms): booby-trapped text can try to give the agent orders. A restricted account limits the damage.
Compatibility with WP Feint
The MCP connection goes through the REST API with an application password: it does not use the login page, so a login URL hidden by WP Feint gets in the way of nothing. If you have enabled Pro’s two-factor authentication on the agent’s account, the API rejects its regular password and accepts only the application password: that is exactly the intended behavior. Pro’s activity log keeps a record of the sensitive actions taken by the agent (setting changed, plugin activated, account created).
Key takeaways
- MCP Adapter on the site, Node.js on the computer, the
@automattic/mcp-wordpress-remoteproxy inclaude_desktop_config.json. - A dedicated user with the minimal role, with its own application password.
- Test the endpoint with
curlbefore configuring Claude. - Restart Claude Desktop completely; the
mcp*.loglogs explain failures. - The configuration file contains a secret: treat it as one.
Frequently asked questions
Can you connect Claude to WordPress without Node.js?
For a remote site with Claude Desktop, the mcp-wordpress-remote proxy needs Node.js. For a local site, the WP-CLI variant does without it. Claude’s remote connectors require an OAuth connection, which MCP Adapter does not provide on its own.
Which role should Claude’s account get?
The lowest one that does the job: Contributor to audit and suggest, Author to write drafts, Editor to correct other people’s content. Avoid Administrator, except on a staging site.
Can Claude publish without my approval?
Claude Desktop asks for your approval before every tool call, unless you allow it permanently. With an Author or Contributor account, it can in any case only publish what that role allows.
How do I cut off access quickly?
Revoke the “Claude Desktop” application password in the account’s profile: access stops immediately. Then remove the server from the configuration file.
Can several sites be connected at the same time?
Yes: add one entry per site under mcpServers, with a distinct name and an application password specific to each site.
One more agent, access kept under control
WP Feint Pro enforces two-factor authentication by role, restricts the API to application passwords for protected accounts and keeps a record of sensitive actions, whether they come from you or from an agent. The free version already hides the login page and shuts down XML-RPC.
Sources
- Model Context Protocol: connect Claude Desktop to local servers (external link, opens in a new tab)
- MCP Adapter: CLI Usage Guide (external link, opens in a new tab)
- npm: @automattic/mcp-wordpress-remote (external link, opens in a new tab)
- WordPress: Application Passwords Integration Guide (external link, opens in a new tab)


