> For the complete documentation index, see [llms.txt](https://ce-docs.keywordrush.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ce-docs.keywordrush.com/ai-agents/connect-claude.md).

# Connect Claude

Claude works on your site directly over the WordPress REST API. Allow your domain in Claude's settings, give it your WordPress login, and point it at your site's agent guide — about two minutes, and it's ready to build.

### Watch it in action

{% embed url="<https://www.youtube.com/watch?v=du__HYrMnuU>" %}

The whole flow end to end: connecting Claude to your site with no MCP, monetising an existing draft with product blocks and a featured image, rebuilding its structure with Egg Blocks, then putting the lot on a **scheduled task** that publishes a new article every day.

{% hint style="success" %}
**Using Claude Code?** Skip step 1 — [**Claude Code**](https://www.anthropic.com/claude-code) (Anthropic's terminal tool) already reaches your site. Go straight to step 2.
{% endhint %}

### 1. Allow your site's domain

Claude runs code in a sandbox that can only reach domains you've approved. Your site has to be on that list.

1. In Claude, open **Settings → Capabilities**.
2. Check that **Cloud code execution and file creation** and **Allow network egress** are both on — they normally are. Switch on whichever isn't; the domain list below does nothing without them.
3. Under **Domain allowlist → Additional allowed domains**, type your site's domain and click **Add**.

The **Content Egg → AI Agents** page shows the exact domain to paste, on its **Claude** tab. Use the host your site actually runs on — if that's `www.example.com`, add that rather than the bare version, or add `*.example.com` to cover both.

You can leave the **Domain allowlist** dropdown on its default: whatever it's set to, the domains you add below are allowed on top of it. (Selecting **All domains** works too, and saves you adding anything — it also lets Claude reach every other site on the internet, so add your own domain instead unless you have a reason not to.)

Restart Claude afterwards so it picks up the new setting.

<figure><img src="/files/Y3JHX9S9XCL2Tr5V6Mgw" alt=""><figcaption><p>Adding your site's domain in Claude's Settings → Capabilities</p></figcaption></figure>

{% hint style="info" %}
**On a Team or Enterprise plan?** This capability is off by default and controlled by your organization's owner in **Organization settings → Capabilities**. If you can't find the setting, that's why — ask your admin to enable it and allow your domain.
{% endhint %}

### 2. Give Claude your login details

From [**Turning on Agent Access**](/ai-agents/turning-on-agent-access.md) you'll have your WordPress **username** and an **application password**. Paste both into the chat when you start working.

{% hint style="warning" %}
**Anything you type in a chat stays in that conversation.** Use a dedicated WordPress user for Claude rather than your own admin account, and revoke the application password when you're done with it — see [**Where your password ends up**](/ai-agents/safety-and-permissions.md#where-your-password-ends-up).
{% endhint %}

### 3. Give it the guide (don't skip this)

Credentials let Claude *reach* your site; the guide teaches it how to **use** it. Without the guide it tends to build pages with Markdown tables and bare product blocks instead of the right Content Egg blocks.

Copy your **Agent guide** link from the AI Agents page (**Copy link**) and open a chat with something like:

> Read this guide and follow it when working on my site: `https://YOUR-SITE.com/wp-json/content-egg/v1/agent-guide` My WordPress username is `USERNAME` and the application password is `xxxx xxxx xxxx xxxx xxxx xxxx`.

That's the whole setup. Claude reads the guide, learns your site's abilities, and gets to work.

<figure><img src="/files/6JOhH3x65OHvoJJBSq21" alt=""><figcaption><p>Starting a chat with the agent guide link and credentials</p></figcaption></figure>

### 4. Better: put it all in a Project

Pasting the guide link and your login into every new chat gets old fast. A **Project** carries them for you, and it's what scheduled tasks need later on — so it's worth the two minutes.

Create a Project, name it anything, and fill in two fields:

* **Instructions** — your Agent guide URL. Claude reads the guide before it touches your site.
* **Context** (or Project knowledge) — your WordPress username and the application password.

Every chat you start inside that Project now arrives knowing how to reach your site. Nothing to paste.

{% hint style="warning" %}
The password is then stored in the Project and available to every chat in it. That's exactly why you should connect a **dedicated WordPress user** rather than your own admin account — see [**Where your password ends up**](/ai-agents/safety-and-permissions.md#where-your-password-ends-up).
{% endhint %}

### Test it

Start a chat and try:

> **Using Content Egg, show my active modules and search Amazon for wireless earbuds.**

Claude should list your active modules and come back with a few products and prices.

<figure><img src="/files/odXWyNjphpQTKkWGOagR" alt=""><figcaption><p>Claude listing modules and searching for products</p></figcaption></figure>

If that works, you're connected. See [**Example prompts & workflows**](/ai-agents/prompts-and-workflows.md) for what to ask next.

### Run it on a schedule

Claude can run a saved prompt on a schedule — daily, weekly, whatever cadence you set. That's the step that turns "an assistant that builds pages when I ask" into a publishing routine that runs without you: research the topic, find the products, build the article, publish it.

Scheduled tasks work best from inside the **Project** you set up above, because the Project already carries your guide URL and login into every run.

1. Open your Project and create a **scheduled task**.
2. Paste the prompt — the entire job, start to finish.
3. Turn on **Skip all approvals**, so it doesn't stop mid-run waiting for a confirmation nobody's there to give.
4. Choose the frequency — **Daily**, weekly, or your own interval — and save.
5. **Run now** tests it straight away, without waiting for the first scheduled run.

Runs happen in the cloud, so your computer doesn't have to be on. Each completed run keeps its own record — you can open it later and read Claude's reasoning alongside the article it built.

{% hint style="warning" %}
**Every run starts a fresh session with no memory.** Claude has no idea what it wrote yesterday or last week. Left to itself it will cheerfully publish the same article twice — so give it a **topic queue** in the prompt and tell it to check your existing posts before picking the next one.
{% endhint %}

A daily-publishing task prompt looks roughly like this:

> Follow the Content Egg Agent Guide for my site. The guide URL and login details are in this Project's Context.
>
> Use the topic queue below. **First search my existing posts and skip anything already covered**, then take the next topic that isn't:
>
> * Burr Grinder vs. Blade Grinder: Which Is Better?
> * …
>
> Write the article, find a relevant product for each section with Content Egg and add product blocks, set a featured image, and publish it.

### What else is worth scheduling

* **Topic research** — trends and article ideas on a weekly cadence, so you always have a queue.
* **Out-of-stock cleanup** — find products that have gone out of stock and replace them.
* **Featured images and media** for newly published posts.
* **Price refreshes** on your top-performing reviews.

Two things to decide before you turn one loose:

* **Publish, or leave a draft?** Publishing daily is the point for a topic queue you've already approved. If you'd rather see it first, end the prompt with "leave it as a draft, don't publish" — or connect a WordPress user without publish rights and it can't publish either way. See [**What your assistant can and can't do**](/ai-agents/safety-and-permissions.md).
* **Keep the cadence sane.** Every run spends your affiliate networks' API quota. Nothing needs to run hourly.

{% hint style="info" %}
**Your off switch:** revoking the application password stops every scheduled task using it, immediately.
{% endhint %}

### Prefer a permanent connection? (advanced)

The setup above asks for your credentials in each new conversation. If you'd rather set them once, Claude Desktop can connect over **MCP** (Model Context Protocol) instead. It's more work up front, and it buys you two things:

* Your application password lives in a config file on your own computer — it never goes into a conversation.
* You get a connector entry in Claude with per-tool permission controls.

You'll need the free **WordPress MCP Adapter** plugin and **Node.js** installed.

1. Download the latest release **`.zip`** from the [MCP Adapter releases page](https://github.com/WordPress/mcp-adapter/releases).
2. In WordPress, go to **Plugins → Add New Plugin → Upload Plugin**, choose the zip, **Install**, then **Activate**. Your **MCP endpoint** now appears on the AI Agents page.
3. In Claude Desktop, open **Settings → Developer → Edit Config** and add a `content-egg` server:

```json
{
  "mcpServers": {
    "content-egg": {
      "command": "npx",
      "args": ["-y", "@automattic/mcp-wordpress-remote@latest"],
      "env": {
        "WP_API_URL": "https://YOUR-SITE.com/wp-json/content-egg/mcp",
        "WP_API_USERNAME": "YOUR_WP_USERNAME",
        "WP_API_PASSWORD": "YOUR_APPLICATION_PASSWORD"
      }
    }
  }
}
```

4. Save and **restart Claude Desktop**. Under **Settings → Connectors** you'll see **content-egg** — click it to set tool permissions.

<figure><img src="/files/KWZyFZP8NoW9EREdNXoe" alt=""><figcaption><p>The content-egg connector in Claude Desktop — set tool permissions here</p></figcaption></figure>

{% hint style="success" %}
You don't have to type this by hand. Once the adapter is active, the **Claude** tab on the AI Agents page gains a **Permanent connection for Claude Desktop (MCP)** section with the whole block ready to copy, pre-filled with your endpoint and username — just drop in your application password. (It isn't there before you install the adapter.)
{% endhint %}

<figure><img src="/files/M1ajezhftuZ5zQJkBSuy" alt=""><figcaption><p>Adding the Content Egg MCP server to Claude Desktop</p></figcaption></figure>

Once connected this way, Claude can call the **`get-guide`** tool to fetch the guide through the MCP channel — no link to paste.

{% hint style="info" %}
MCP in the **browser** is a different story: claude.ai's **Add custom connector** dialog only offers OAuth sign-in, and the MCP Adapter authenticates with an application password. If the beta **Request headers** option appears in your account, you can add the endpoint with an `Authorization: Basic <token>` header — the AI Agents page builds that token for you. Otherwise use the REST setup at the top of this page, which works everywhere.
{% endhint %}

### If something goes wrong

* **"I can't reach that site" / connection errors** — the domain isn't allowed yet, or it's spelled differently than your site (`www.` matters). Recheck step 1.
* **401 errors even though the password is right** — some servers strip the login details before WordPress ever sees them. Ask your host to enable `Authorization` header pass-through; it's a one-line change they'll recognise.
* **Requests blocked or timing out** — a firewall or security plugin may be blocking Claude. Allow the requests, or ask your host to whitelist the REST API.
* **"Unauthorized"** — use the **application password**, not your normal login password, and confirm Agent Access is switched on.
* **It can search but can't build or edit** — building and editing require **Content Egg Pro**.
* **Claude sees no Content Egg tools (MCP setup)** — confirm the MCP Adapter plugin is active, the endpoint shows on your AI Agents page, and you restarted Claude Desktop.
