Skip to content

How to Connect Claude to WordPress with an MCP Server

By HandyMCP Updated Oct 2026 12 min read

How to Connect Claude to WordPress with an MCP Server
On this page

You can connect Claude to WordPress in a few minutes with a WordPress MCP server. Once it is set up, Claude can read your pages, write drafts, edit Elementor layouts, fix SEO fields and update WooCommerce products, all inside the permissions you choose.

This guide walks through the full setup with HandyMCP, the plugin we build for this job. It covers Claude on the web, desktop and mobile, Team and Enterprise plans, and Claude Code in the terminal.

Quick answer: Install the HandyMCP plugin, copy your server URL from HandyMCP > Connection, then in Claude go to Settings > Connectors > Add custom connector and paste it. Click Connect, sign in on your own site and choose what Claude may do. For Claude Code, run claude mcp add with the URL and an access token.

What is a WordPress MCP server?

MCP (Model Context Protocol) is an open standard that lets AI apps use tools. A WordPress MCP server is a plugin that turns your site into a set of those tools: “create a page”, “update a product”, “list posts missing a meta description” and so on. Claude connects to it with a normal sign-in, then calls the tools when you ask for something in plain words.

HandyMCP runs on your own site. There is no relay, no vendor account and no usage fee or limits. Claude talks to your site directly. For background, read what is MCP for WordPress or the official Model Context Protocol site.

Why connect Claude to WordPress

  • Less copy and paste. Claude writes straight into a draft instead of you pasting text into the editor.
  • Real page builder edits. Claude edits Elementor and Gutenberg layouts in their own format, so pages stay editable.
  • Bulk jobs. SEO titles for 50 posts, stock checks, category clean-ups.
  • Site questions. “Which pages have no meta description?” gets a real answer from your data.

What you need

  • A WordPress site on HTTPS, running WordPress 6.2 or newer and PHP 7.4 or newer.
  • An administrator account on that site. Other roles can be allowed later in Settings.
  • A Claude plan that supports custom connectors, or Claude Code.
  • The HandyMCP plugin. The free version covers posts, pages, Gutenberg, Elementor, SEO, menus, media and WooCommerce basics.

Step 1: Install the WordPress MCP plugin

In your dashboard go to Plugins > Add New, upload the HandyMCP zip and activate it. A HandyMCP menu appears with Connection, Abilities, Activity, Undo history and Settings. Detailed steps are in the install guide.

Step 2: Copy your MCP server URL

Open HandyMCP > Connection. At the top you will see your server URL. It looks like this:

https://your-site.com/wp-json/handymcp/v1/mcp

Copy it. The same screen has steps for 20+ apps, your access tokens, active sessions and a connection check.

HandyMCP connection screen showing the server URL to connect Claude to WordPress
The Connection screen shows your server URL, per-app steps, access tokens and sessions.

Step 3: Add the Claude to WordPress connector

Claude web, desktop and mobile

  1. In Claude open Settings > Connectors and choose Add custom connector.
  2. Give it a name such as “My WordPress site” and paste the server URL.
  3. Click Add, then Connect. A consent page from your own site opens.
  4. Sign in and choose scopes: read only, edit content, manage the store or manage the site.
  5. Approve. You are back in Claude with the connector active.

Menu names in Claude can change. If something looks different, follow the current steps on your Connection screen.

Team and Enterprise plans

An owner adds the custom connector once for the organisation. Each member then clicks Connect and signs in with their own WordPress account. Each person can only do what their WordPress role allows.

Claude Code

Create a personal access token on the Connection screen. It is shown once, so copy it. Then run:

claude mcp add --transport http wordpress https://your-site.com/wp-json/handymcp/v1/mcp --header "Authorization: Bearer YOUR_TOKEN"

Add --scope user to use it in every project, or --scope project to share it with a repo. Inside Claude Code, type /mcp to check the connection or to sign in with OAuth instead of a token. Full guide: connect Claude Code to WordPress.

Step 4: Choose what Claude may do

Before your first real Claude to WordPress task, open HandyMCP > Abilities. You can switch whole tool groups off, turn single tools off, or set the connection to read only. A sensible start is read only, then add edit content once you are comfortable.

HandyMCP abilities screen to control which WordPress tools Claude can use
Turn tool groups on or off, or keep Claude read only.

Step 5: Try your first prompts

Start a new chat and ask for something small and safe:

  • “List my pages and tell me which ones have no meta description.”
  • “Summarise my last five blog posts in one line each.”
  • “Create a draft landing page for my webinar with Elementor, using my global colours.”
  • “Write SEO titles and descriptions for posts in the News category that are missing them.”
  • “Show me the five products with the lowest stock.”
  • “Add a Contact link to the main menu pointing to /contact/.”

More in our Claude prompts for WordPress and the prompt library.

Keeping it safe

  • Live page guard. Ask for a redesign, new version or draft and HandyMCP creates a draft copy. A published page is only replaced when you clearly ask.
  • Confirmation for risky actions. Destructive tools need your explicit yes. Bulk WooCommerce changes over 10 products ask first.
  • Conflict check. If someone edited a page after Claude read it, the save is refused.
  • Undo. Every change is saved first. Undo one change, a whole task or every change on a page. See undo AI changes.
  • Activity log. Every request, app, tool and page touched.
  • Secure sign-in. OAuth 2.1 with PKCE or hashed personal access tokens you can pause or revoke. Cookie login is never accepted by the MCP endpoint.
  • Privacy. Customer emails and phones are masked, secrets are never returned, and site content is treated as data, not instructions.
HandyMCP undo history for changes Claude made to WordPress, grouped by task
Undo history groups Claude’s changes by task.

Read more in is it safe to let AI edit a live WordPress site.

Common mistakes

  • Using http instead of https. The connector needs HTTPS.
  • Approving read only, then asking for edits. Reconnect and add the edit content scope.
  • Losing the token. Tokens are shown once. Revoke it and create a new one.
  • Vague prompts. Name the page and the change you want.
  • Connecting a non-admin account without allowing that role in Settings.

Troubleshooting

  • Claude says it cannot connect. Check the site uses HTTPS and run the connection check on the Connection screen.
  • A security plugin blocks the request. Allow /wp-json/handymcp/ in its firewall settings.
  • Claude connects but cannot change anything. Check the scopes you approved and that read only mode is off.
  • Changes do not show on the front end. Ask Claude to purge the cache.
  • Claude Code shows the server as failed. Run /mcp, check the token and the Authorization header.

Full list in WordPress MCP not connecting fixes.

What you can do once you connect Claude to WordPress

The first week after people connect Claude to WordPress usually looks the same: a few careful read-only questions, then small edits, then bigger jobs once they trust the undo button. Here is what that looks like in practice.

Content

  • Write a first draft of a post from your notes, in your usual categories, with an SEO title and description.
  • Rewrite an old post so it matches your current pricing or product names.
  • Find every page that mentions an old address or phone number and fix them in one go.

Design

  • Build a new landing page as a draft in Elementor or Gutenberg, using your global colours and fonts.
  • Duplicate a page and change one section for an A/B test.
  • Tidy heading levels and add missing image alt text across the site.

Store

  • Add new WooCommerce products from a short list, with prices, stock and categories.
  • Find products with low stock or missing images.
  • Put a category on sale for a weekend (Pro adds bulk price changes and coupons).

Every one of these works the same way: you ask in plain words, Claude calls the right tool on your site, and the change shows up in the activity log and the undo history. The Claude to WordPress connection does not add any new admin screens for you to learn.

Activity log after you connect Claude to WordPress, listing every request
Every request Claude makes is listed in the activity log.

Claude to WordPress: OAuth or an access token?

There are two ways to sign Claude in to your site. Both give you the same tools and the same safety checks; they differ in how the sign-in works.

OAuth sign-inAccess token
Used byClaude web, desktop and mobileClaude Code, scripts, other apps
How you approveOn your own WordPress login pageYou create the token on the Connection screen
ScopesChosen on the approval screenChosen when you create the token
ExpiryRefreshed automaticallyYou set an expiry date
RevokeRemove the sessionRevoke the token

For most people, OAuth is the easiest way to connect Claude to WordPress, because there is nothing to copy or store. Use a token when you work in the terminal, or when your host blocks the sign-in pages and you need to keep working while you fix it.

Connect Claude to WordPress on hosts with firewalls

Most sites connect on the first try. When a Claude to WordPress connection fails, the cause is almost always something in front of WordPress, not WordPress itself. The connection check names it for you. The most common ones:

  • Cloudflare: Bot Fight Mode and challenge pages stop Claude’s servers. One Skip rule fixes it. See Cloudflare blocking Claude or ChatGPT.
  • SiteGround: the host answers some sign-in addresses itself. HandyMCP fixes this automatically. See the SiteGround MCP guide.
  • Security plugins: Wordfence, Sucuri and others may block the REST API for automated requests. Allow /wp-json/handymcp/.
  • Caching: a cache that stores sign-in answers causes random failures. Exclude the HandyMCP paths.

If Claude shows “Couldn’t register with your site’s sign-in service”, read our guide to the sign-in service error.

Connect Claude to WordPress for a whole team

On Claude Team and Enterprise, an owner adds the custom connector once. After that, each person who wants to connect Claude to WordPress clicks Connect and signs in with their own WordPress account. This matters for two reasons:

  • Permissions follow the person. An Editor can edit any post, an Author only their own. Claude can never do more than the WordPress user who approved it.
  • The log shows who did what. Each request is tied to a WordPress user, so you can see whose Claude made a change.

Agencies with many client sites can add one connector per site, or use the Pro client sites hub so one Claude to WordPress connection can work across all of them.

How long does it take to connect Claude to WordPress?

On a typical site, about five minutes: one minute to install the plugin, one to copy the URL, two to add the connector and sign in, and one for a test question. Sites behind Cloudflare or on SiteGround can take a few minutes longer the first time, mainly to add a firewall rule. After that, the Claude to WordPress connection stays signed in and refreshes itself.

Before you connect Claude to WordPress: a checklist

  1. Your site loads over HTTPS without warnings.
  2. You know which WordPress account Claude will act as.
  3. You have a recent backup, especially before big jobs.
  4. Permalinks are not set to Plain.
  5. You decided which tool groups Claude should start with.

With those in place, the five steps above are all it takes to connect Claude to WordPress safely.

Claude to WordPress: what happens behind the scenes

You do not need to know any of this to use it, but it helps to understand what happens when you connect Claude to WordPress, especially if something goes wrong later.

  1. Claude finds your sign-in page. It calls your server URL, and your site tells it where to sign in.
  2. Claude registers itself. Your site gives Claude its own app ID, so it shows up as a separate app you can remove later.
  3. You approve. You sign in on your own WordPress login page and choose scopes. Your password never goes to Claude.
  4. Claude gets a token. From then on, every Claude to WordPress request carries that token, and HandyMCP checks it, your role and the scopes on each call.
  5. Claude lists the tools. It sees only the tools you left switched on in Abilities.

Because every step happens between Claude and your own site, there is no third-party relay in the middle. That is also why the Claude to WordPress connection keeps working if HandyMCP the company disappeared tomorrow: the plugin and the sign-in run on your server.

When you want to stop, removing the connector in Claude or revoking the session on your site ends the Claude to WordPress link at once. Nothing keeps running in the background.

Free vs Pro

The free plugin has 80+ tools for content, Gutenberg, Elementor, SEO, menus, media, forms and WooCommerce basics, plus the last 20 changes in undo. Pro has 260+ tools and adds other page builders, Elementor Pro Theme Builder, full WooCommerce, plugin and theme updates with automatic restore, malware scanning, file editing and full undo history. See pricing.

Next steps

Frequently asked questions

Can Claude edit my WordPress site directly?

Yes. With a WordPress MCP server like HandyMCP, Claude calls tools on your site to read and edit content, within the permissions you approve.

Which Claude plans support custom connectors?

Plans change, so check Anthropic’s current plan details. On Team and Enterprise, an owner adds the connector and members click Connect.

Do I need an API key to connect Claude to WordPress?

No. Claude signs in with OAuth on your own site. Claude Code can use a personal access token instead.

Is it safe to connect Claude to a live site?

HandyMCP keeps live pages safe with drafts, confirmations, conflict checks, an activity log and undo for every change.

Can I connect more than one site?

Yes. Add a connector per site. The Agency plan adds a Client sites hub so one connection works across sites.

Does Claude see my private content?

Only what the WordPress user who approved it can see, and only when it calls a tool. Customer emails and phone numbers in orders and form entries are masked by default, and passwords, keys and secrets are never returned.

Will connecting Claude slow my site down?

No. HandyMCP only does work when Claude calls a tool, and each call is a normal WordPress request. Visitors never load any of it, so page speed stays exactly as it was.

Can I disconnect Claude later?

Yes. Revoke the session or token on the Connection screen, or remove the connector in Claude.

Does it work with Elementor and WooCommerce?

Yes. The free plugin edits Elementor layouts and handles WooCommerce basics. Pro adds full WooCommerce and Theme Builder.

Ready to start? Install HandyMCP free and connect Claude to WordPress today.

14-day money-back guarantee

Give your AI the keys, keep the brakes.

Connect your site in a few minutes. Every change is logged, and site edits can be undone in one click.

HandyMCP Changes screen with AI changes grouped by task and undo buttons

HandyMCP Pro · 7-day trial

Try every Pro feature, free

Your key arrives by email in under a minute. Nothing to cancel.