# Can ChatGPT or Claude Edit Your WordPress Site?

Canonical: https://figment.so/blog/use-ai-with-your-wordpress-site

Yes, but the route depends on which WordPress you have. WordPress.com has its own AI and an MCP connection for outside agents. Self-hosted sites use application passwords, WP-CLI or a coding agent in a Git repo.

**Yes, and "WordPress" here means two different products.** WordPress.com is a hosted service with its own AI editing built in and an official MCP connection for outside agents. Self-hosted WordPress (wordpress.org software, on your own host) has no AI of its own. Access for ChatGPT, Claude or a coding agent comes through the REST API with application passwords, WP-CLI on the server, or a coding agent editing theme files in a Git repository. A normal chat with no connection can only draft text and code for you to paste in. Mixing up the two WordPresses is the most common way people over- or under-estimate what is possible.

## What can WordPress.com's own AI do?

WordPress.com's **AI Assistant** works inside the block editor. Automattic's announcement says it can "adjust layouts, styles, and patterns" on posts and pages, "rewrite" content, "translate" sections, generate title options and "generate an image," and it also works in the Media Library to "create and edit images directly" ([WordPress.com, "Introducing the WordPress AI Assistant"](https://wordpress.com/blog/2026/02/17/wordpress-ai-assistant/)). It reads your theme, colors, fonts and structure first, so a request like "add a testimonials section below this one" or "make my colors brighter and bolder" fits your existing design rather than a generic template (same source). Sites on **Business or Commerce plans** can opt into it at no extra cost, and it is on automatically for sites built with the AI website builder regardless of plan. The catch: it "works best with block themes," so classic-theme sites will not see it in the post editor, though AI image generation in the Media Library still works (same source).

Separately, the **Jetpack AI Assistant block** (the older, narrower feature) generates and rewrites content inside the block editor, and it also runs on self-hosted sites through the Jetpack plugin ([WordPress.com Support, "Improve a page or post with Jetpack AI"](https://wordpress.com/support/wordpress-editor/jetpack-ai/)).

## What can an outside AI agent do on WordPress.com?

**Through WordPress.com's own MCP support, quite a lot, with your explicit confirmation on every write.** WordPress.com's blog states: "we introduced MCP support on WordPress.com, giving AI agents like Claude, ChatGPT, OpenClaw, and Cursor a window into your site's content," and as of a 2026 update that includes 19 write abilities across posts, pages, comments, categories, tags and media ([WordPress.com, "AI agents can now create and manage content on WordPress.com"](https://wordpress.com/blog/2026/03/20/ai-agent-manage-content/)). Agents can draft and publish posts, build and update pages, approve or reply to comments, restructure categories and tags, and fix alt text and captions on media (same source).

The safeguards are explicit: "Every change requires your approval" (the agent describes what it plans to do and asks for explicit confirmation), new posts default to drafts, "the write capabilities respect the same user role permissions as the rest of WordPress.com," and "every operation has its own toggle in your MCP settings" (same source). Write access is available on all WordPress.com paid plans, and you manage which operations are allowed from your account's MCP settings (same source).

## What about self-hosted WordPress?

Self-hosted WordPress has no equivalent built-in assistant. Three separate routes exist.

**The REST API with Application Passwords.** WordPress core has shipped Application Passwords since version 5.6, generated from a user's Edit Profile page and used over HTTPS with HTTP Basic Authentication ([WordPress Developer Resources, "Authentication"](https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/)). WordPress's documentation calls this the preferred method over the older Basic Authentication plugin, which "requires sending your username and password with every request, and should only be used for development and testing" (same source). An application password is revocable on its own, without changing the account's login password. Create one per integration and revoke it when the job is done.

**WP-CLI**, the command-line interface maintained by the WordPress open-source project, does "administrative and development tasks in a programmatic way," such as installing and updating plugins, importing content, running search-replace across a database and managing users, from a terminal on the server ([WP-CLI Handbook](https://make.wordpress.org/cli/handbook/)). A coding agent with shell access can run `wp` commands directly, which is a different and more powerful route than the REST API for bulk or database-level work.

**A coding agent editing theme or plugin files in a Git repository.** If your WordPress install's code lives in version control, Claude Code, Codex or Cursor can read and edit PHP, template and CSS files like they would on any codebase, then you deploy through your normal process. This is a code change, not a content change, and it needs your usual review and deployment steps before it reaches the live site.

There is also an **official MCP Adapter plugin**, part of the WordPress "AI Building Blocks" initiative, that self-hosted sites can install to expose registered WordPress "Abilities" (specific, scoped actions) to MCP clients ([WordPress Developer Blog, "From Abilities to AI Agents"](https://developer.wordpress.org/news/2026/02/from-abilities-to-ai-agents-introducing-the-wordpress-mcp-adapter/)). It authenticates with JWT tokens or Application Passwords rather than WordPress.com's OAuth. The same post is explicit that MCP clients should be treated as logged-in WordPress users and part of your security surface. It recommends dedicated, limited-capability users for MCP access and warns against permission callbacks that grant blanket access for destructive operations (same source).

## What can't any of these routes do?

- **The REST API and MCP Adapter only reach what is registered.** Application Passwords authenticate a request. They do not grant access beyond what that user's role and the exposed endpoints or Abilities allow.
- **A theme file edit is not a live update until deployed.** Editing a template in a repository changes source code, not the running site, until your build and deploy process runs.
- **AI features are plan- and theme-gated on WordPress.com.** The AI Assistant needs a Business/Commerce plan (or an AI-website-builder site) and a block theme. A classic theme or a lower plan will not show it in the editor.
- **None of this bypasses WordPress user roles.** An Editor-level Application Password cannot do what only an Administrator can, on WordPress.com or self-hosted.

## Which route fits my WordPress?

| Your WordPress | Best AI route | What it reaches |
| --- | --- | --- |
| WordPress.com, block theme, Business/Commerce | Built-in AI Assistant | Layout, styles, patterns, copy, images, translation |
| WordPress.com, any paid plan | MCP support (Claude, ChatGPT, Cursor) | Posts, pages, comments, categories, tags, media, with confirmation on every write |
| Self-hosted, has a Git repo | Coding agent (Claude Code, Codex, Cursor) | Theme/plugin source files, pending your deploy |
| Self-hosted, content only | REST API + Application Passwords, or WP-CLI | Posts, pages, users, and other registered endpoints or commands |

## What should I never give an AI?

Never give ChatGPT or Claude your WordPress login password, a security code or a browser session. An application password or an MCP connection does the job and can be revoked on its own. Remove customer names, emails and order details before you paste page text or exports into a chat.

## How do I keep a way back?

Before a self-hosted change, back up both halves of the site. WordPress's documentation is direct that "there are two parts to backing up your WordPress site: Database and Files. You need both to be able to fully restore a typical WordPress site," and to do this "regularly, and always before an upgrade or a move to a new location" ([WordPress Developer Resources, Backups](https://developer.wordpress.org/advanced-administration/security/backup/)). WordPress also keeps post revisions you can restore from the editor ([WordPress.org, "Revisions"](https://wordpress.org/documentation/article/revisions/)).

On WordPress.com Business or Commerce plans, a staging site lets you "test significant theme and plugin updates, incompatibilities, or any other major changes... before applying them to your main ('production') site," syncing in either direction when you are ready ([WordPress.com Support, "Create a Staging Site"](https://wordpress.com/support/how-to-create-a-staging-site/)). The same page warns that syncing back to production can replace the destination's user list, so review before you sync a store or membership site.

For more on giving any AI tool a narrow, reviewable way to change a live site, see [How to Have ChatGPT, Claude, Codex or Cursor Edit an Existing Website](/blog/can-ai-edit-my-website). If you are weighing whether to leave WordPress rather than manage two different AI access models, the [WordPress migration guide](/blog/migrate-from-wordpress-to-figment) covers what a WordPress export does and does not carry over.
