# WP24X7 Agent setup: connect Claude to WordPress

URL: https://wp24x7.com/wp24x7-mcp/docs/setup/
Updated: 2026-11-29
Type: page
Audience: WordPress owners and developers connecting an AI client

> To connect an AI client to WordPress, install the WP24X7 Agent plugin, generate an Application Password on its Connect screen and paste the prompt it gives you into your client. It needs WordPress 5.6 or newer and PHP 8.0 or newer, and the endpoint is /wp-json/wp24x7-agent/v1/mcp on your own site.

## Key facts

- For: owners and developers connecting Claude Code, Claude Desktop, Cursor or VS Code
- Requires: WordPress 5.6+, PHP 8.0+, HTTPS recommended
- Endpoint: /wp-json/wp24x7-agent/v1/mcp on your own site
- Auth: a WordPress Application Password sent as HTTP Basic
- Safety: Read and Write on by default, Destructive and Code off
- Status: release 0.6.0, not yet run on a production site, test on staging
- Start: install the plugin, open Connect

To connect an AI client to WordPress, install the WP24X7 Agent plugin, generate an Application Password on its Connect screen, and paste one prompt into your client. **It needs WordPress 5.6+ and PHP 8.0+, and the endpoint is /wp-json/wp24x7-agent/v1/mcp on your own site.**

> **Test on staging first**
The current release, 0.6.0, has not yet been run on a production site. Try it on a staging copy and take a backup before letting any tool change a live site. See the [product page](/wp24x7-mcp) for status.

## What do I need before starting?

| Requirement | Detail |
|:--|:--|
| WordPress | 5.6 or newer |
| PHP | 8.0 or newer |
| HTTPS | Recommended |
| WordPress user | Administrator has full power; a lower role gives the agent less |
| MCP client | Claude Code, Claude Desktop, Codex, Cursor, VS Code or Antigravity |

## How do I install and connect?

1. In WordPress go to Plugins, then Add New, then Upload Plugin.
2. Choose `wp24x7-agent.zip` and activate it (or upload the `wp24x7-agent` folder to `/wp-content/plugins/`).
3. Open WP24X7 Agent, then Connect.
4. Pick your client, tick the consent box and press Generate prompt.
5. The plugin creates an Application Password for your user and shows one prompt. Paste it into your agent.

For manual configuration use "Prefer manual configuration?" on the same screen.

### Claude Code
The plugin documentation gives this form, with your own user name and Application Password:

```
claude mcp add --transport http wp24x7 \
  https://YOUR-SITE/wp-json/wp24x7-agent/v1/mcp \
  --header "Authorization: Basic $(printf 'USER:APP PASSWORD' | base64)"
```
### Claude Desktop and stdio-only clients
These connect through the `mcp-remote` bridge. The Connect screen has the exact snippet to copy.
### Cursor, VS Code, others
Pick the client on the Connect screen and paste the prompt it generates, or use manual configuration.

_An AI client connected to a WordPress site over MCP_

## What if sign-in fails?

| Symptom | Likely cause | Fix |
|:--|:--|:--|
| 401 or unauthorized | Wrong user or mangled password | Check user name, regenerate the Application Password |
| 404 on the endpoint | Permalinks off or REST API blocked | Check `/wp-json/` loads in a browser |
| Works in browser, fails in client | Host strips the Authorization header | Send `X-WP24X7-Authorization` instead |
| HTTP 429 | 10 failed logins from one IP in 15 minutes | Wait for Retry-After, correct credentials |
| Client lists no tools | Client not restarted | Restart it and confirm transport is HTTP |

The Settings screen includes a connection check. To cut an agent off at any time, revoke its Application Password in your WordPress profile.

## How do I choose what the agent may do?

Open WP24X7 Agent, then Settings. Read and Write are on by default. Destructive and Code are off. Turn on only what the task needs. Full explanation on [permissions and safety](/wp24x7-mcp/docs/permissions-and-safety).

## Which user should I connect as?

The agent acts with that user's permissions. For a trial, create a dedicated user such as an Editor rather than connecting as your own Administrator. If a task needs more, raise the role for that task and lower it again afterwards. A separate user also makes the activity log easier to read.

## What does a first session look like?

1. Install on a staging copy and activate.
2. Connect from the Connect screen, using a dedicated user.
3. Ask the agent to describe the site: theme, active plugins, forms.
4. Ask it to draft a new page as a draft, not published.
5. Open the activity log and match it against what you asked.
6. Only then decide whether to enable more than Read and Write.

The [tools page](/wp24x7-mcp/docs/tools) lists what is available.

## Does it work on multisite, and how do I disconnect?

Yes on multisite: network-activate it and every site gets its own activity log, settings and safety tiers. To disconnect, revoke the Application Password and the agent can no longer sign in. Deactivating the plugin turns the endpoint off.

**Want engineers to set this up safely?**
We can connect an AI client to a real site with the right limits.
[Post a project](/post-project)
[WordPress AI integration](/wordpress-ai-integration)

## Frequently asked questions

### What are the requirements?

WordPress 5.6 or newer and PHP 8.0 or newer. HTTPS is recommended.

### What is the endpoint?

https://YOUR-SITE/wp-json/wp24x7-agent/v1/mcp, using a WordPress Application Password sent as HTTP Basic.

### My host strips the Authorization header. What now?

Send the X-WP24X7-Authorization header instead. The Settings screen has a connection check.

### Does Claude Desktop work?

Yes, through the mcp-remote bridge. The Connect screen shows the exact snippet.

### Which WordPress user should I connect as?

The agent can only do what that user can do, so the user is the first safety control. For a trial, create a dedicated Editor rather than connecting as your own Administrator. An Editor works on posts and pages but cannot install plugins or change users.

### What should I ask the agent first?

Something read-only, such as scanning the site and summarising its theme, plugins and forms. Then try a small reversible write, such as drafting a page as a draft rather than publishing it.

### Which AI clients can connect?

Claude Code, Claude Desktop, Codex, Cursor, VS Code and Antigravity. Clients that only support stdio connect through the mcp-remote bridge.

### What do I do if I get HTTP 429?

After 10 failed Application Password logins from one IP in 15 minutes the plugin returns HTTP 429 with a Retry-After header. Wait for that period and correct the credentials. A correct login always works.

### What if I get 401 or 404 on the endpoint?

For 401, check the user name and that the Application Password was copied intact, or regenerate it. For 404, pretty permalinks may be off or a security plugin may block the REST API. Check that /wp-json/ loads in a browser.

### How do I cut the agent off?

Revoke its Application Password in your WordPress profile and it can no longer sign in. Deactivating the plugin turns the endpoint off. Do this when a trial ends or a team member who used it leaves.

### Does it work on WordPress multisite?

Yes. Network-activate it and every site, including ones created later, gets its own activity log, settings and safety tiers. Network-wide data such as raw SQL and the debug log needs a super admin.

### Is it safe to use on a live site?

The current release, 0.6.0, has not yet been run on a production site, so test on a staging copy first. Take a backup before you let any tool change a live site, and enable only the safety tiers the task needs.
