A friend of mine builds and runs WordPress sites for a living, and asked how I run my work from my phone. This is the WordPress version. Claude Code works on your own computer, on a local copy of the site. You tell it what to change from the Claude app, check the screenshots, and the live site only changes when you send the code up. Every tool here was checked against its own docs this week.
Work on a copy. Claude edits a local copy of the site in WordPress Studio, with WP-CLI, the theme files and the plugins, never the live server.
Code goes up, content stays live. Theme and plugin changes go up through git. Posts, orders and users live on the live site. Never push a database over it.
Steer it from your phone. Remote Control in the Claude app reaches Claude Code on your computer. You approve, it works, it sends screenshots.
You already know WordPress. Claude does the typing: the PHP, the CSS, the WP-CLI commands, the git commits. You decide what ships.
Let Claude set it up for you
Paste one request and Claude walks you through the rest.
Install Claude Code once.
Open Terminal on a Mac, or PowerShell on Windows, paste the line for your computer, then type claude and log in with your Claude Pro or Max plan.
Mac
curl -fsSL https://claude.ai/install.sh | bash
Windows (PowerShell)
irm https://claude.ai/install.ps1 | iex
Paste one request.
Copy this into Claude Code. It installs a free setup skill and goes through everything on this page with you, one step at a time, asking before each change.
Install this skill in ~/.claude/skills/wordpress-setup: https://massonit.com/wordpress/wordpress-setup/SKILL.md. Then use wordpress-setup to set up my WordPress work on this computer with me, one step at a time. Ask before you change anything.
Never paste a password in the chatNever paste a WordPress password, an Application Password, a hosting login or your wp-config.php into the chat. Local sites in Studio need no password at all. When a live site does, you copy it and Claude saves it to your Keychain without seeing it, or you set it yourself on Windows.
Then use it from your phone.
When it’s done, open the Claude app, go to Code, pick your computer, and ask for your first change on the local copy.
Only have your phone right now? In the Claude app, ask: “Read massonit.com/wordpress-from-your-phone and help me get Claude Code on my computer, step by step.”
How it works Five stops between your phone and the live site
Claude Code is an agent that runs in a terminal on your computer. It reads and edits files, runs commands like WP-CLI and git, and shows you what it did. Remote Control lets the Claude app on your phone talk to that same session. Nothing runs on the live server until you push.
You ask from your phone.
“On the bakery site, fix the mobile header and match the menu page to the new photos.”
Claude works on your computer.
It pulls the theme, edits the CSS and templates, runs WP-CLI against the local copy and checks the PHP.
You check the result.
It sends screenshots at phone and desktop width, or a preview link. You say what to change.
The code goes into git.
One commit per change, with a message you can read. Easy to undo, easy to review.
You decide when it goes live.
Staging first, then live, through your host’s git deploy or push. The database on live is never replaced.
The one rule
Code goes up. Content stays live. Themes and plugins travel from your copy to the live site through git. Posts, pages, orders, form entries and users are made on the live site, and a database push from a copy would erase whatever changed there since you copied it.
Your local copy Pick where the copy lives
Claude needs a WordPress it can break without anyone noticing. Three good options, from easiest to most hands-on.
WordPress Studio
By WordPress.com
Start here
Best for
Free and open source, on Mac, Windows and Linux, with no Docker. It has a CLI and its own Claude Code connection (section 03). Brings any site down from an All-in-One WP Migration export, a Jetpack backup or a Local export.
Try it
studio --help
studio import client-site.wpress
studio wp plugin list
Watch for
It runs on SQLite, not MySQL, so test plugins that do heavy database work. Push and pull only work with WordPress.com and Pressable sites. For other hosts, bring the site down with an export and send code up with git.
Local
By WP Engine
For WP Engine and Flywheel
Best for
Free app with real MySQL. Pushes and pulls with WP Engine and Flywheel through Connect. Since version 10.2 it has a CLI Claude can drive.
Try it
localwp list
localwp cli my-site "plugin list"
Watch for
No official Claude connection. 10up makes a community add-on, but it can read and edit wp-config.php, so you don’t need it: the CLI is enough.
Playground and wp-env
By the WordPress project
For throwaway tests
Best for
Spin up a clean WordPress for one plugin or theme, test, throw it away. Playground runs in Node with no install. wp-env is the standard for plugin developers who already use Docker.
Try it
npx @wp-playground/cli@latest server --auto-mount
Watch for
Playground forgets its database when it stops, unless you mount all of wp-content. wp-env needs Docker.
The toolkit What Claude uses to work on WordPress
Most of the work is files and WP-CLI. The rest are connections, called MCP servers, that give Claude named tools for a site or a service. Install the first three and you can do almost everything.
Studio for Claude Code
Local sites
Start here
What it does
An MCP server and a plugin from WordPress.com. Claude can create, start and stop local sites, run WP-CLI on them, take screenshots, and copy content between a local site and a WordPress.com site.
Set it up
claude mcp add wordpress-studio -- studio mcp
claude plugin marketplace add Automattic/studio-plugins
claude plugin install wp-studio@studio
Good to know
The plugin needs Node 22 or later. Studio also links several of the official WordPress skills into each site for you.
WP-CLI
Every site
Claude’s main tool
What it does
The command line for WordPress. Claude updates plugins, exports the database, searches and replaces, and checks the result, all as commands it can read back. In Studio it’s studio wp.
Set it up
studio wp db export before-changes.sql
studio wp search-replace "http://old.test" "https://new.test" --dry-run
Good to know
Stable WP-CLI is still 2.12. The new wp ability and wp ai commands are only in the nightly build for now.
WordPress agent skills
Know-how
Official
What it does
Instructions from the WordPress project that teach Claude how to do WordPress work the right way: blocks, block themes, plugins, WP-CLI and operations, the REST API, the Interactivity API, performance, PHPStan, Playground, wp-env.
npx skills is a third-party installer from Vercel, not WordPress or Anthropic. The skills are written for WordPress 7.0 and later.
Code checks
Before you ship
Run every time
What it does
WordPress Coding Standards (PHPCS), PHPStan with WordPress stubs, and the Plugin Check plugin. Claude runs them and fixes what they find before anything goes into git.
Composer asks once to allow the PHPCS installer plugin. Plugin Check is for the local copy, not for production.
WordPress.com MCP
Live content
Check your plan
What it does
For sites hosted on WordPress.com, or self-hosted sites connected with Jetpack. Claude can manage posts, pages, media, plugins, themes and settings. It asks before each change, and new posts start as drafts. It can’t edit PHP, CSS or JS files.
Set it up
claude mcp add --transport http wpcom-mcp https://public-api.wordpress.com/wpcom/v2/mcp/v1
# then type /mcp in Claude Code and sign in
Good to know
You sign in with WordPress.com, so there’s no password to handle. WordPress.com’s own pages disagree about which plans include it, so check yours.
MCP Adapter
Any self-hosted site
Optional, still pre-1.0
What it does
The official plugin that turns a site’s “abilities” into tools Claude can call. WooCommerce uses it. On its own it doesn’t add post or page editing yet: it only shows what other plugins have registered.
Version 0.7.1, needs WordPress 6.9 or later. On a local copy it runs through WP-CLI, so no password is needed.
Claude in Chrome
wp-admin screens
Look first, then ask
What it does
Claude works in your own Chrome: it opens wp-admin, clicks through a settings screen, checks a page at phone width, or reads the Query Monitor panel on the local copy.
Set it up
/chrome
# then pick "Enabled by default"
Good to know
It’s signed in as you, and on a live site you’re usually an admin. Ask it to look and report, then approve each change.
Automattic also lists a block-theme builder, build-with-wordpress, in Claude’s official plugin directory. Find it by typing /plugin in Claude Code.
Page builders How Claude gets along with your builder
The closer a page is to plain files and HTML, the better Claude does. Here’s each builder, from easiest to hardest.
Gutenberg and block themes
The easiest. Blocks are HTML comments inside the post, and a block theme is files you can keep in git. Claude can write templates, patterns and theme.json directly.
Elementor
Pages are JSON stored in the database, so Claude shouldn’t edit them raw. Elementor’s own MCP (September 2026) works with Claude Code, is admin-only and saves its work as drafts. Check whether your version needs Pro. After any direct change, run wp elementor flush-css.
Beaver Builder
Official MCP support since August 2026, through Beaver Builder AI.
Divi 5 and Bricks
Divi has its own AI but no official MCP, and Bricks only has community ones. Let Claude work in the child theme and in Chrome, and check every page by eye.
Builder MCPs log in with an Application Password, which WordPress allows only over HTTPS. Create the local site with HTTPS so they work on the copy too.
Going live From your copy to the live site, safely
This is the same order the big hosts recommend. WP Engine puts it plainly: code goes from local to production through git, and it’s never advised to include a database when copying to a live site.
Back up the live site first.
Your host’s backup, or UpdraftPlus. Most hosts also back up the target automatically before a push.
Bring down a fresh copy.
Studio pull for WordPress.com and Pressable, your host’s staging or Local Connect for WP Engine and Flywheel, or an All-in-One WP Migration export into Studio for anything else.
Claude works on the copy.
Edits, WP-CLI, code checks, screenshots. You review from your phone.
Code goes up through git.
Keep the theme and custom plugins in a GitHub repo. Deploy with your host’s git integration, WP Engine’s GitHub Action, or WP Pusher. Studio can push just themes or plugins to WordPress.com and Pressable.
Content changes happen on live.
In wp-admin, or through the WordPress.com or builder MCP as drafts you publish yourself.
Never push a database over a live siteA database push replaces everything on live: new orders, comments, form entries and users since your copy are gone. Studio’s own docs say publishing content and settings replaces the entire live database. Push code only.
Phone setup Set it up once, then use it from anywhere
Claude Code runs on your computer. The Claude app on your phone talks to it with Remote Control, so your local sites, files and git stay where they are. It needs a Claude Pro or Max plan and a claude.ai login; an API key won’t work.
Install Claude Code and log in.
Paste the line for your computer into Terminal (Mac) or PowerShell (Windows), then type claude and log in.
curl -fsSL https://claude.ai/install.sh | bash # Mac
irm https://claude.ai/install.ps1 | iex # Windows
Keep the computer awake.
A desktop that stays on is best. On a Mac, System Settings → Energy, or run this while you’re out. On Windows, Settings → Power, never sleep when plugged in.
caffeinate -dimsu
Turn on Remote Control.
In Claude Code, type /config and turn on “Enable Remote Control for all sessions”, plus “Push when actions required” so your phone buzzes when Claude needs a yes. To start new sessions from your phone, leave this running in its own window.
claude remote-control
Open it on your phone.
In the Claude app, go to Code and pick your computer. Start a session in the site’s folder and ask for something small first.
Hand over passwords without typing them.
Never paste a password in the chatNever paste a password into the chat. Copy it, and Claude moves it with save-key without seeing it. On Windows, set it yourself.
On a Mac, copy the Application Password and run save-key: it moves it from the clipboard into your Keychain and Claude never sees it. On Windows, add it yourself as a user environment variable (search “environment variables” in Start). Local Studio sites don’t need this.
~/studio/bin/save-key CLIENT_WP_APP_PASSWORD
Claude · Codeoffice-mac
On the bakery site, fix the mobile header and match the menu page to the new photos.
Done on the local copy. The header overflowed at 390px; fixed in the child theme. Two screenshots attached. Commit ready. Push to staging?
Push to staging.
Pushed through git. Staging is updated. Live is untouched.
From your phone, on your own computer
What save-key does
It’s a short script from my AI-studio guide. It reads the Mac’s clipboard, saves the password to the Keychain, clears the clipboard, and adds a line to ~/.zshrc that loads it when a terminal opens. It never prints the secret. The setup skill writes the site’s MCP settings so the file only holds the variable’s name, never the password.
Claude Code also runs in the cloud from the app, on a copy of a GitHub repo. That’s fine for theme and plugin code, but it can’t reach the local sites on your computer, so for WordPress work, your own computer is the better home.
Client sites When you run sites for other people
One folder per client.
Each with a CLAUDE.md file: the host, how it deploys, the builder, what never to touch. Claude reads it every time you open that folder.
A separate user for Claude.
On live sites, give Claude its own WordPress user and its own Application Password, so you can revoke it in one click. Editor is safer than Administrator, but an Editor can still add scripts.
Many sites at once.
MainWP has an official MCP server: one dashboard for all your sites, with a revocable Application Password and a confirmation step before changes.
WooCommerce stores.
WooCommerce has its own MCP (since 10.3) for products and orders. From 11.3 it runs through the MCP Adapter. Orders hold customers’ personal data, so use a low-privilege user.
Stay safe Rules that keep client sites safe
Copy or staging first.
Claude never edits a production server directly over SFTP or SSH. It works on the copy, and code goes up through git.
Back up before database work.
Run wp db export first. Claude’s rewind (Esc twice) undoes its file edits, but not commands or database changes.
Dry run every search and replace.
Use wp search-replace with --dry-run first, never raw SQL. Raw SQL breaks the serialized data WordPress stores in the database.
No secrets in the chat.
No passwords, Application Passwords, hosting logins or wp-config.php. The setup adds a rule so Claude can’t open wp-config.php.
Keep Claude asking on live work.
For anything that touches a live site, stay in the normal mode where Claude asks before each command. Never use the mode that skips permissions.
Vet AI plugins.
AI Engine’s MCP had two privilege-escalation bugs; keep it updated or skip it. Plugins that run PHP from a chat, like Novamira, belong on staging only.
Free setup skill A skill that sets all of this up with you
A skill is a file of instructions Claude follows for a job. This one goes through the setup on this page, one step at a time, in your language, and asks before every change.
What it does
Checks your computer, Claude plan and what’s already installed
Sets up Remote Control and phone notifications
Installs WordPress Studio, its CLI, MCP and plugin
Brings one real site down as a local copy
Adds the official WordPress skills and the code checks
Puts the theme and plugins in git and writes a CLAUDE.md for the site
Sets up the deploy route your host supports
Adds the safety rules, including the wp-config.php block
Install it
Paste this in Terminal, or just paste the request from the box at the top into Claude Code.
Change the site name and send. Each one works on the local copy first.
Updates
On the bakery site’s local copy, back up the database, update every plugin and theme, and tell me what broke. Don’t deploy.
Child theme
Make a child theme for the bakery site and move the custom CSS from the Customizer into it. Commit it, don’t deploy.
A new block
Build a block pattern for a three-column pricing table that matches the theme. Send me screenshots at phone and desktop width.
Moving domains
On the local copy, change every link from http://old-domain.com to https://new-domain.com. Dry run first and show me the count.
Code review
Check my custom plugin with WordPress Coding Standards and PHPStan, fix what’s safe, and list the rest for me.
A look at live
Open wp-admin on staging in Chrome and tell me which plugins are inactive or out of date. Don’t change anything.
Ship it
Push the theme changes we just made to staging through git. Give me the staging link and wait for my yes before live.
Words Quick definitions
Claude Code
Claude as an agent in a terminal on your computer. It edits files and runs commands, asking first.
Remote Control
The feature that lets the Claude app on your phone drive Claude Code on your computer.
Local copy
A copy of a site running on your own computer, where mistakes cost nothing.
Staging
A private copy of the site on the host, for checking changes before live.
WP-CLI
WordPress from the command line: plugins, users, the database, search and replace.
MCP
A standard way to give Claude tools for a service, like a WordPress site or WordPress.com.
Skill
A file of instructions Claude follows for one kind of job.
Application Password
A separate password for tools, not for logging in. You can revoke each one on its own.
Block theme
A theme made of block templates and theme.json, which Claude can edit as files.
Serialized data
How WordPress packs settings into the database. Raw SQL edits break it; wp search-replace doesn’t.
SQLite
A database in a single file, which Studio uses instead of MySQL.
Want help?
Want this set up for your sites?
If you’d rather have someone set it up with you, or want it for a team that runs a lot of sites, write to me. Tell me your host, your builder and how many sites you run.