# Connect Claude to WordPress safely with an MCP server

URL: https://wp24x7.com/connect-claude-to-wordpress-with-an-mcp-server/
Updated: 2026-11-29
Type: blog post
Audience: WordPress owners considering an AI assistant

> An MCP server lets an AI assistant such as Claude read and change a WordPress site through defined tools. Connect it with a dedicated low-privilege user, start on a staging copy, keep destructive and code tiers off, and review the audit log. Treat the connection like giving a new staff member access.

## Key facts

- For: WordPress owners and developers considering an AI assistant
- How: a plugin publishes an MCP endpoint; the assistant signs in as a WordPress user
- Sign-in: an Application Password you can revoke at any time
- Safety tiers: Read always on, Write on by default, Destructive and Code off
- Audit: every write recorded with user, tool, target and result
- Advice: staging first, backup first, lowest workable role
- Help: WP24x7 offers AI integration set-up

An MCP server lets an AI assistant such as Claude read and change your WordPress site through defined tools, instead of copying text back and forth. **Connect it with a dedicated low-privilege user, keep dangerous tools off, start on a staging copy, and review what it did.**

> **Quick answer**
Install an MCP plugin on a staging copy, connect with a dedicated Editor user and an Application Password, leave the Destructive and Code tiers off, start with read-only tasks, then review the audit log. Revoke the password when the project ends.

## What is an MCP server for WordPress?

Model Context Protocol (MCP) is an open standard for connecting AI assistants to outside systems. A WordPress MCP server is a plugin that publishes an endpoint on your site. The assistant connects, sees a list of tools (for example "create a draft post", "list plugins" or "upload an image"), and calls them when you ask. The work happens through WordPress itself, with WordPress's own permission checks.

Different servers exist. We build one, [WP24X7 Agent](/wordpress-ai-integration), so the specifics below describe it. If you use another, ask its vendor the same questions.

## What can an assistant do with it?

Depending on the tools exposed and permissions given: write and edit posts and pages, build layouts with blocks, manage media and menus, adjust SEO fields, review plugins and themes, work with Elementor or WooCommerce when active, and run read-only checks such as a speed scan. The value is speed on routine tasks, with you reviewing the results. An assistant can make confident mistakes, so treat its output as a draft from a capable but unreviewed colleague.

_An assistant calling WordPress tools through an MCP endpoint_

## How does the connection work?

In our plugin:

- The endpoint is `/wp-json/wp24x7-agent/v1/mcp`, using MCP over Streamable HTTP.
- The assistant signs in with a **WordPress Application Password** for a user you choose, sent as HTTP Basic authentication. The Connect screen can create it, and you can revoke it from that user's profile at any time.
- HTTPS is recommended, because credentials travel in a header.
- Clients that only speak a local protocol can connect through a bridge such as `mcp-remote`.
- There is no relay server, account or per-call fee in the plugin itself. Content travels between your site and the AI client you use, whose own terms govern what it does with your data.

## How are the risks controlled?

Four layers matter, and you should look for each in any MCP server.

| Layer | What it does | Your action |
|:--|:--|:--|
| User permissions | The assistant acts as a WordPress user; capability checks apply | Use a dedicated low-role user, such as an Editor |
| Safety tiers | Groups tools so you can switch categories off | Leave Destructive and Code off |
| Update safeguards | Snapshot, health check, automatic rollback on failure | Still keep tested backups |
| Audit log | Every write recorded with user, tool, target and result | Review after each session |

The tiers in detail:

| Tier | Default | Covers |
|:--|:-:|:--|
| Read | Always on | Look at the site, themes, blocks, plugins and forms |
| Write | On | Create and edit content, media, menus and settings; update plugins and themes |
| Destructive | Off | Deleting posts, users, plugins and elements, with explicit confirmation |
| Code | Off | Editing files, zip installs, raw read-only database queries, search and replace |

The plugin's documentation says to treat Code as full control of the site: leave it off unless needed and turn it off again afterwards. Request contents and credentials are not logged, and you choose how long the log is kept.

## What is the prompt injection risk?

An assistant reads your site's content, and content can contain text that tries to give it instructions: a comment, a product description or a pasted document. This is prompt injection. Our plugin treats text found in site content as data, not instructions, but no tool can fully remove the risk, because the assistant is a language model.

> **Keeping it manageable**
Keep Destructive and Code off unless needed. Do not let an assistant act on untrusted content such as public comments without review. Check the audit log after a session. Ask for confirmation before bulk changes.

## How should I set it up?

1. **Use staging first.** Clone the site and connect the assistant there.
2. **Take a backup** before the first session. See [backups and restore testing](/wordpress-backups-what-to-back-up-and-test-a-restore).
3. **Create a dedicated user** with the lowest workable role.
4. **Install and activate the plugin,** open its Connect screen, choose your client and generate the connection prompt. Paste it into your assistant.
5. **Check the tiers** in Settings and leave Destructive and Code off.
6. **Start with read-only tasks,** such as a site scan, then small writes such as a draft post.
7. **Review the activity log** and the changes.
8. **Revoke** the Application Password when a project ends.

Only go to production once you trust the workflow, and keep the user's access to the minimum. The step-by-step guide is on the [setup page](/wp24x7-mcp/docs/setup).

## What does not work?

The plugin's own documentation lists things it does not do, such as sign-in by OAuth (it uses Application Passwords), image generation, and ACF tools. Check the current notes before planning around a feature.

## When should I ask for help?

Setting up an assistant safely on a business site involves permissions, hosting quirks (some hosts strip authorization headers) and a review process.

- **AI integration** Set-up and training for an assistant on your site. [Read more](/wordpress-ai-integration)
- **Security service** Review the result and harden the site. [Read more](/wordpress-security-service)
- **WordPress support** Help from an engineer. [Read more](/wordpress-support)

**Want this set up safely?**
Our engineers connect an assistant with the right limits and review the result.
[Post a project](/post-project)
[Call the help desk](tel:+18043754450)

## Frequently asked questions

### What is MCP?

Model Context Protocol is an open standard that lets an AI assistant call tools exposed by another system. A WordPress MCP server exposes site actions, such as editing a post, as tools the assistant can use.

### Can the AI do anything on my site?

Only what the server exposes, and only with the permissions of the WordPress user it signs in as. A well-built server also lets you switch dangerous categories of action off.

### Should I connect an assistant to a live store?

Start on a staging copy, keep destructive and code-editing actions off, and review the activity log. Treat the connection like giving a new staff member access.

### How does the assistant sign in?

With a WordPress Application Password for a user you choose, sent as HTTP Basic authentication. You can revoke it from that user's profile at any time, which cuts the assistant off immediately. HTTPS is recommended.

### Which WordPress user should I connect as?

A dedicated user with the lowest role that does the job, such as an Editor for content work, rather than an administrator. WordPress capability checks still apply to everything the assistant does.

### What are the safety tiers?

Read is always on. Write is on by default. Destructive, covering deletions that need explicit confirmation, and Code, covering file edits, zip installs and raw read-only database queries, are off by default. Treat Code as full control of the site.

### What is prompt injection and should I worry?

Site content such as a comment or product description can contain text that tries to instruct the assistant. No tool removes the risk fully because the assistant is a language model, so keep risky tiers off, review untrusted content, check the audit log and ask for confirmation before bulk changes.

### What happens to my data?

There is no relay server, account or per-call fee in the plugin itself. Content travels between your site and the AI client you use, and what that client does with it is governed by its own terms and settings, so read them.

### Can I see what the assistant did?

Yes. Every write is recorded with the user, tool, target and result. Request contents and credentials are not logged, and you choose how long the log is kept.

### What if an update the assistant makes breaks the site?

In our plugin, plugin and theme updates take a snapshot, run a health check and roll back automatically if the site fails. You should still keep your own tested backups.

### Does it work with Claude Desktop?

Clients that only speak a local protocol can connect through a bridge such as mcp-remote. The plugin's Connect screen gives the exact snippet.

### Can WP24x7 set this up for me?

Yes. The AI integration service handles permissions, hosting quirks such as hosts that strip authorization headers, and a review process, and the security service can review the result.
