It's safe enough if you treat the AI like a new staff member. Connect it as its own WordPress user with the lowest role that does the job, using OAuth or its own application password. Use a maintained MCP server with curated tools. Keep publishing, deleting and settings changes behind your approval, and keep comments and form entries away from an AI that can act.
WordPress has spent decades building a permission system: roles, capabilities, application passwords, revisions. When you connect an AI assistant over MCP, all of that suddenly matters again, because the assistant acts as a WordPress user. Give it your own administrator login and it can do anything you can, including installing plugins and changing who else has access. Give it a well-chosen role and most of the risk disappears before you've written a single rule.
The other half of the risk comes from what the AI reads. Comments, form entries and order notes are written by strangers, and some of them may be written for the AI rather than for you. This guide covers both halves in order: how risky different setups are, which user the AI should be, how it should sign in, which servers to avoid, why untrusted text matters, the six rules and what to do if something goes wrong.
How risky is your setup?
| Your setup | Risk | Main rule |
|---|---|---|
| WordPress.com connector, you ask questions and approve changes | Low | Keep confirmations on |
| MCP Adapter, Editor role, approval on | Low to medium | One application password per tool |
| Plugin MCP server with dozens of write tools | Medium | Turn off tools you don't use |
| AI reads comments or form entries and can publish | High | Split reading from acting |
| A server that runs arbitrary PHP on the live site | Very high | Staging only |
| Archived or unmaintained MCP plugin | High | Replace it |
Who is this guide for?
It's for anyone connecting Claude, ChatGPT or a coding agent to WordPress. My guide to which WordPress MCP server to use covers the choice of server. This page covers the settings around it. The ideas match my guide to MCP security for online stores, applied to WordPress.
The single most important setting is which WordPress user the AI acts as.
Which WordPress user should the AI use?
A user of its own, with the lowest role that does the job. That's the rule of least privilege. WordPress roles already decide what each user can do, and MCP servers respect them. On WordPress.com, each MCP tool is restricted by the same rules as user roles.1 WooCommerce's abilities run only as far as WordPress and WooCommerce permissions allow.2
| Job | Role to give the AI |
|---|---|
| Reading stats and auditing content | Contributor, or read-only tools |
| Drafting posts for review | Author or Contributor |
| Editing any post and page | Editor |
| Store products and orders | Shop Manager |
| Plugins, themes, settings | Nobody. Keep this with people |
Four layers between an AI and your WordPress site
Once the role is set, the next question is how the AI proves it's that user.
How should the AI sign in?
With OAuth where the server supports it, or its own application password. OAuth means you approve access in the browser and the AI app gets an expiring token. WordPress.com uses this, so your login details aren't stored on your computer.1
On self-hosted sites, an application password is the usual route. It's tied to one WordPress user and meant for API access, so a tool can act as that user without the main password.3 WordPress's own advice is to create one per integration, revoke any that are no longer needed, and rotate them on a schedule or after a suspected leak.3 Application passwords work only over HTTPS by default.4
You can see each application password's last use and revoke it individually from the user's profile.3 Name each one after the tool, such as "Claude Desktop", so you know which to revoke.
A well-chosen user and credential can still be undone by a poorly built server.
Which MCP servers are risky?
Unmaintained ones, and ones that can run arbitrary code. An MCP plugin is still a plugin, and plugins are where WordPress security problems live. Patchstack found 91% of new WordPress ecosystem vulnerabilities in 2025 were in plugins.5
- Archived plugins. Automattic's original wordpress-mcp repository was archived on 19 January 2026.6 An archived plugin gets no security fixes.
- Arbitrary PHP or file access. Some servers let an AI run any PHP code. AI Engine keeps that power in a separate companion plugin, meant for development or staging sites, and says its main MCP tools don't run arbitrary code.7
- Too many write tools. A server with 140 tools gives an AI 140 ways to change your site. Turn off the ones you don't need.
Even a good server can be steered by the wrong text, which is where comments and forms come in.
Why do comments and form entries matter?
Because text written by strangers can carry instructions an AI will follow. That's prompt injection, and OWASP ranks it as the top risk for applications built on language models.8 On a WordPress site, the untrusted text sits in comments, contact form entries, WooCommerce order notes and user profiles.
The danger comes when one AI session reads that text and can also publish, email or change users. Read comments in one conversation, with read-only tools, and get a summary. Then make changes in a second conversation without the untrusted text in it.
All of this condenses into six rules you can apply on any site.
What are the six rules?
- Its own user. One WordPress user per AI tool, with the lowest role that works.
- Its own credential. OAuth or a dedicated application password, revoked when it's no longer used.
- A maintained, curated server. The MCP Adapter, WordPress.com MCP or a plugin with approvals and undo.
- Approval for anything that sticks. Publishing, deleting, user changes and settings wait for a person.
- Staging for code and bulk work. Never let an agent run code or bulk edits on the live site first.
- A monthly review. Check which users, application passwords and MCP plugins exist, and remove what nobody uses.
If an AI also answers your visitors, make sure your policies are written clearly enough to repeat. The free AI policy checker tests that.
Rules lower the odds of a problem. It still helps to know what to do when one happens.
What should you do if something goes wrong?
Revoke first, then restore, then find out what happened. Revoke the AI's application password or disconnect it in your WordPress.com account. Restore changed posts from revisions or a backup. Then read the AI conversation and the server's log, if it keeps one, to see which request caused it. Fix the rule that let it through as well as the post. My guide to Claude for WordPress shows a setup that keeps the damage small.
What does a safe setup look like for one site?
Here's how the rules come together for a small business site on self-hosted WordPress with a contact form and a blog. It's an illustration, not a client setup.
| Setting | Choice | Why |
|---|---|---|
| Server | MCP Adapter plus a maintained plugin server with undo | Curated tools, kept up to date |
| User | "claude-editor", Editor role | Can edit content, can't touch plugins or users |
| Credential | Application password named "Claude Desktop" | Easy to see and revoke on its own |
| Write tools | Posts, pages, media and SEO fields only | Everything else switched off |
| Approval | On for every change | A person reads each edit before it saves |
| Untrusted text | Form entries read in a separate, read-only session | Planted instructions can't reach write tools |
| Bulk work | Staging copy first | Mistakes stay off the live site |
| Review | First Monday of each month | Old passwords and unused plugins get removed |
None of these settings slow everyday work down much, and together they mean a mistake costs a revision restore rather than a site rebuild.
What mistakes should you avoid?
- Using your own administrator account. Create a separate user for each AI tool.
- Sharing one application password across tools. You can't revoke one without breaking the others.
- Keeping archived MCP plugins. No updates means no security fixes.
- Running code tools on the live site. Keep anything that executes PHP on staging.
- Reading comments and publishing in the same session. Split them.
If you'd like a second look at how AI connects to your WordPress site, a 20-minute call is enough to go through users, passwords and servers. You'll leave with a short list of changes to make.
Questions people ask
Is it safe to give Claude access to WordPress?
It's safe enough with limits: its own user, the lowest role that works, OAuth or a dedicated application password, and approval for changes. WordPress.com's connector confirms every change by default.9
What role should an AI user have in WordPress?
Editor for content work, Author or Contributor for drafts, Shop Manager for stores. Keep Administrator, plugins, themes and settings with people.
Are WordPress application passwords safe for MCP?
They're designed for this. Each is tied to one user, meant for API access, and can be revoked on its own.3 Create one per tool and revoke unused ones.
Can a WordPress comment hijack an AI assistant?
It can carry instructions, which is prompt injection.8 Keep the AI that reads comments separate from the one that can act on your site.
Should I use an MCP plugin that can run PHP?
Only on development or staging sites. Arbitrary code execution on a live site turns one bad request into a full compromise.
