---
title: "Connecting ChatGPT and Claude to WordPress with MCP: what to allow and what to keep off"
description: "An AI assistant that can read your site is useful. One that can change it needs limits. How to connect ChatGPT and Claude to WordPress with read-only access first, scoped tokens, approvals and a record of every change."
url: https://pageforge.pro/connect-chatgpt-claude-to-wordpress/
type: post
published: 2026-11-17T09:00:00+00:00
updated: 2026-11-18T13:55:27+00:00
author: "PageForge"
language: en-US
categories: ["AI"]
tags: ["ai assistants", "chatgpt", "claude", "mcp", "wordpress security"]
---

# Connecting ChatGPT and Claude to WordPress with MCP: what to allow and what to keep off

> An AI assistant that can read your site is useful. One that can change it needs limits. How to connect ChatGPT and Claude to WordPress with read-only access first, scoped tokens, approvals and a record of every change.

The Model Context Protocol (MCP) is an open standard that lets an AI client, such as ChatGPT, Claude, Cursor or VS Code, call tools on a server. When that server is your WordPress site, the tools can list pages, read SEO fields and check templates. They can also publish, edit and delete content, if the server offers those tools and you allow them.

So the real question is what the assistant may do, and who confirms it first.

## What an assistant can do on a WordPress site

Sort possible actions by what happens if the assistant gets them wrong.

| Kind of action | Examples | If it goes wrong | Suggested setting |
| --- | --- | --- | --- |
| Read | List pages, read SEO titles, search content | Site data is shared with the AI provider | Allow, for content you are happy to share |
| Check and preview | Validate rows, preview a generated page | Nothing changes | Allow |
| Edit one item | Update an SEO title, add ALT text to an image | One page is wrong until you fix it | Allow with approval |
| Bulk changes and publishing | Rewrite 300 meta descriptions, publish a campaign | Many pages are wrong at once | Preview first, then approve |
| Delete | Trash or delete posts | Content is lost | Keep off, or preview and approve each one |
| Site administration | Plugins, themes, users, settings, files | The site itself is at risk | Keep off |

Most of the value sits in the first three rows. Start there.

## Start read-only

A read-only connection lets you learn what the assistant is good at, such as finding service pages with no meta description, with no risk of changing a page.

Reading still shares data: whatever the assistant reads goes to the AI provider, under that provider’s terms. Do not connect an account that can read content you would not paste into a chat yourself.

## Give the connection its own, smaller identity

An assistant should never act as your administrator account.

- **Use a role that matches the job.** If the assistant only works on posts and pages, connect it through a user with the Editor role or lower. WordPress roles and capabilities still apply to everything it does.
- **Use scopes where the server offers them.** A scope limits what one connection may do, separately from what the user may do. A client that only reads campaign progress should not hold a scope that publishes.
- **Keep credentials in headers, never in URLs.** Tokens in a URL end up in server logs, browser history and analytics. OAuth sign-in or a token in a request header avoids that.
- **Use one token per client, and revoke what you stop using.** If a laptop with a token is lost, you revoke that one token and nothing else breaks.

WordPress’s built-in Application Passwords can also be revoked one by one, but each carries every permission its user has.

## Require approval for changes, on both sides

The MCP specification says there should always be a human who can deny a tool call, and that clients should ask for confirmation on sensitive operations. Both major clients do this in their own way.

- **ChatGPT** asks for confirmation before write actions by default. It treats any tool not marked as read-only as a write action. You can tell it to remember an approval, but only for the current conversation.
- **Claude** shows tool approval requests, and lets you allow a tool once or always. Its help center recommends choosing “always” only for servers and tools you trust to run unsupervised, and turning off tools you do not need.

Client approvals are useful, but the server should not rely on them alone. The specification also tells clients to treat a server’s labels for its tools, such as “read-only”, as untrusted unless the server itself is trusted. A careful server enforces its own preview-and-confirm step for risky actions, whatever the client does.

## Keep a record

When an assistant can make changes, you should be able to see what changed, when, and through which connection. Look for an audit log that records the client, user, tool, arguments and result, with credentials removed. Revisions cover single posts, not settings. Take a backup before any bulk run.

## Watch for instructions hidden in content

An assistant reads pages, comments, form entries and spreadsheet cells, and any of them can contain text written to look like an instruction. With read-only tools, the worst case is a misleading answer. With write tools, it could be a change you did not ask for.

Keep write tools switched off when the assistant is working with content you did not write, such as comments, form submissions or imported data. Both OpenAI and Anthropic warn about this kind of prompt injection in their connector documentation.

## Setting up the connection

### ChatGPT

ChatGPT connects to remote MCP servers through developer mode. Which plans can add one, and whether a workspace admin must enable it first, depends on your account, so check OpenAI’s current help article. The server must be reachable over HTTPS, and ChatGPT signs in with OAuth.

### Claude

Claude calls these custom connectors. On Pro and Max, add one from **Customize > Connectors** with **Add custom connector**, and enter the server URL exactly as the provider documents it. On Team and Enterprise, an owner adds the connector for the organization and members connect individually. The free plan allows one custom connector. Claude connects from Anthropic’s servers, so your site must be reachable over the public internet on the standard HTTPS port.

### Developer tools

Cursor, VS Code, Claude Code, Codex and similar tools read a configuration file and send a token in a header. For PageForge, a Cursor configuration looks like this, with your own site address and token:

```
{
  "mcpServers": {
    "pageforge": {
      "url": "https://example.com/wp-json/pageforge/v1/mcp",
      "headers": { "X-PageForge-MCP-API-Key": "your-personal-access-token" }
    }
  }
}
```

PageForge shows the exact snippet for each tool when you create a token.

## How PageForge handles it

PageForge’s connection is off until an administrator switches it on under **PageForge > Connections**.

### Free: read, check and preview

In the free plugin, an assistant can read site status, templates and generated pages, preview how variables resolve, preview a page from a row, validate rows before a run, read and audit SEO fields, find images missing ALT text and search content. There is no tool that changes your site.

ChatGPT and Claude sign in with OAuth, and you approve the connection in WordPress. Other clients use a personal access token sent in a header. These tokens do not expire on their own, so revoke them on the Connections screen when you are done. Every request runs with the permissions of the WordPress user behind the connection; a scope never replaces a WordPress capability.

### Pro: approved changes

PageForge Pro adds tools that make changes: create or cancel a generation campaign, update SEO fields on one page or in bulk, and update image ALT text on one image or in bulk.

- Each kind of change needs its own scope, granted when the client signs in.
- Risky calls, such as publishing or bulk updates, never run on the first request. The assistant gets a preview and a confirmation code that only works for the same client, the same tool and the exact same arguments. It can be used once and expires after five minutes.
- Assistant actions are written to an audit log, with anything that looks like a credential removed.
- Disconnecting a client stops its access immediately.

**Pro** Changes through an AI assistant are part of every PageForge Pro plan: Starter, Professional and Enterprise. The free plugin stays read-only.

## Other ways to connect WordPress

WordPress 6.9 added the Abilities API, and the official MCP Adapter plugin turns abilities registered by WordPress and other plugins into MCP tools. Some plugins run their own MCP servers, and some hosted SEO services connect through the REST API with an Application Password.

Whichever you choose, ask the same questions:

| Question | Why it matters |
| --- | --- |
| Is it off until you switch it on? | Nothing is exposed by accident after an update |
| Can you start read-only? | You learn what it does before it can change anything |
| Are write permissions separate from read permissions? | A reporting connection cannot publish |
| Can you revoke one client without affecting others? | A lost laptop is a small problem, not a site-wide one |
| Do risky actions need a preview and a confirmation on the server? | Safety does not depend on the client’s settings |
| Is there an audit log? | You can see what changed and which connection did it |
| Does it respect WordPress roles? | The assistant can never do more than its user |

## A sensible order

1. Take a backup.
2. Connect read-only, through a user with the lowest role that works.
3. Use it for questions and checks until you know what you want it to do.
4. Add one write permission at a time, with approvals on.
5. Keep deleting and site administration off.
6. Read the audit log after the first few changes.
7. Revoke connections you no longer use.

PageForge Free includes the read-only connection.

Try it on your own site

PageForge is free on WordPress.org. Upload a CSV, build one template and preview the first page in a few minutes.

[Get PageForge free](https://wordpress.org/plugins/pageforge/)

---

Source: https://pageforge.pro/connect-chatgpt-claude-to-wordpress/ · PageForge
