Claude Code is at its best on WordPress when it can see the code and reach the site: theme and plugin files on disk, WP-CLI in the terminal, and an MCP server for content and layout. This is a setup that works, including native Elementor 4 builds with Elementor Ultra, and the guardrails that keep it off production until you are ready.
Claude Code is a coding agent that works in your terminal, on the files and commands you give it. On WordPress that makes it strong at:
debug.log, tracing a hook or a slow query, and proposing a fix.Point Claude Code at a copy, not at production. Any local environment works: WordPress Studio, wp-env, LocalWP or your own Docker setup. For Elementor work, npx @algorismus/elementor-ultra-playground starts a local WordPress with Elementor and the Elementor Ultra companion plugin from a ready-made snapshot.
Keep secrets out of the repository. Put application passwords and API keys in environment variables or a local file that git ignores.
Claude Code reads a CLAUDE.md file at the root of the project. Use it for the things you would otherwise repeat in every session:
# Project: client-site
- Theme: wp-content/themes/client-child (child of Twenty Twenty-Five)
- Coding standards: WordPress PHP coding standards; run composer lint before committing
- Local site: http://client-site.test (WP-CLI available)
- Never run search-replace or database commands against production
- Ask before installing or activating pluginsThe same idea scales up: WPOS calls these skills and stores them on your account, so the agent follows them on every client site.
Add an MCP server so Claude Code can act on the site itself, not only its files. Use whichever server suits the site:
# WordPress.com, or a self-hosted site connected through Jetpack
claude mcp add --transport http wordpress-com https://public-api.wordpress.com/wpcom/v2/mcp/v1
# A plugin that gives you an HTTP endpoint (use the URL from its settings)
claude mcp add --transport http client-site https://client-site.test/your-plugin-mcp-endpoint
# The official MCP Adapter through Automattic's proxy
claude mcp add --transport stdio \
--env WP_API_URL=https://client-site.test/wp-json/mcp/mcp-adapter-default-server \
--env WP_API_USERNAME=agent-user \
--env WP_API_PASSWORD=your-application-password \
wordpress -- npx -y @automattic/mcp-wordpress-remote@latestBy default a server is added to the current project, privately for you. Use --scope project to share the configuration with your team in .mcp.json, or --scope user to make it available in every project. claude mcp list shows what is connected, and /mcp inside a session handles sign-in for servers that use OAuth.
If the sites are in a WPOS workspace, WPOS’s own MCP server gives Claude Code the same tools as WPOS’s built-in agent, including native Gutenberg, Elementor and Divi builds, WooCommerce and SEO, and your own agent doesn’t spend WPOS credits. Book a free 30-minute call with the founders to connect it.
Step-by-step details for each route are in How to connect Claude to WordPress.
If the site is built in Elementor 4, give Claude Code Elementor-aware tools. Elementor Ultra, an open-source project from the WPOS team, adds an MCP server with about 90 tools for pages, widgets, global classes, variables, media, forms and rollback, and the exjsx compiler, which turns one typed JSX file into a verified, native Elementor page that stays editable in the Elementor editor.
Install it as a Claude Code plugin:
/plugin marketplace add Algorismus-io/claude-plugin-elementor
/plugin install elementor@algorismusOr work with the compiler directly:
npx exjsx init site
npx exjsx build siteDeploying to a site uses an application password, supplied as WP_URL, WP_USER and WP_APP_PASSWORD. The toolkit’s --gates dev loop re-checks every save at 1200, 1920 and 390 pixels wide, so layout breakage shows up before a client sees it. It is tested on Elementor 4.1.4 and 4.2.0; Elementor Pro is only needed for Pro features such as forms with submissions, popups and the theme builder. The Elementor Ultra quickstart has the full setup, and this walkthrough shows the JSX-to-page workflow.
Claude Code is a developer’s tool for one project at a time. It is excellent when the person driving it can read the diff. Agencies also have account managers, designers and clients who should not need a terminal, and dozens of sites to keep consistent.
WPOS covers both sides. Its built-in agent works inside wp-admin on every client site, building natively in Gutenberg, Elementor or Divi, following your team’s skills and checking its own render before it reports done. And because WPOS speaks MCP, developers can drive those same sites from Claude Code with the same tools, without spending WPOS credits. Try WPOS free for 30 days.
Yes, through an MCP server or WP-CLI, but it should not be your first step. Work on a local or staging copy, keep permission prompts on, and deploy changes you have reviewed.
Yes. With Elementor Ultra, installed as a Claude Code plugin, it gets about 90 Elementor 4 tools and a JSX compiler that produces native, editable Elementor pages.
Any that gives Claude Code the files and WP-CLI: WordPress Studio, wp-env, LocalWP or Docker. For Elementor work, the Elementor Ultra playground starts a ready-made local site with one command.
In a CLAUDE.md file at the root of the project. Claude Code reads it at the start of a session, so standards and rules do not need repeating.
Usually not. It suits developers who review diffs. With WPOS, developers can drive client sites from Claude Code over MCP while account managers and designers use the built-in agent in wp-admin on the same sites.
Same client sites, same tools: WPOS's agent in wp-admin, or your own Claude Code over MCP. Free for 30 days, no card.
Start free