# MCP: AI on your WordPress site

> What the ProseCaptain MCP is, how to connect a WordPress site in one click and give AI tools access.

The ProseCaptain MCP is the server through which Claude, Cursor and other AI tools work on your WordPress sites: they write and edit pages and posts, lay out blocks, change menus and footer widgets, add media and set SEO. One address works for every tool:

```text
https://wp-mcp.prosecaptain.com/mcp
```

[Connect in ProseCaptain →](https://app.prosecaptain.com/settings/ai)

## How it works

1. **Connect the site.** In the ProseCaptain plugin, click **Connect to AI**. The plugin creates a separate user `prosecaptain-ai` with the **ProseCaptain AI** role and hands its application password to ProseCaptain, encrypted.
2. **Issue a token.** In the ProseCaptain app, create an MCP token for yourself or a teammate.
3. **Add the AI tool.** Paste the address and the token into Claude Code, Cursor, VS Code or another MCP client. Steps for each are in [Connect Claude, Cursor and others](/en/docs/mcp-clients/).

From then on you can ask, for example: “Add a link to the new Careers page in the squares.pl footer” or “Draft a post about launching a mobile app and set its SEO description”.

## Step 1: connect the site

You need the ProseCaptain plugin 2.6 or later and a WordPress administrator account.

1. In WordPress, open **ProseCaptain** → the settings tab and, if you have not yet, click **Sign In** to connect the site to your workspace.
2. In the **AI tools (MCP)** card, choose whether this is the production or the staging site.
3. Accept the terms of AI work on the site and the privacy policy.
4. Click **Connect to AI**.

The site appears in the ProseCaptain app under **Settings** → **AI tools**.

Without the plugin: in the app, click **Connect a site**, sign in to WordPress as a user with the Editor or ProseCaptain AI role and approve access on the WordPress screen. Administrator accounts are refused.

## Step 2: issue an MCP token

1. In the ProseCaptain app, open **Settings** → **AI tools**.
2. Click **New token**, say who it is for (e.g. “Anna, Claude Code”) and accept the terms of AI work.
3. Copy the token. It is shown once; only its hash is stored.

Give each person and each tool its own token. You revoke a token in the same place with one click, effective immediately.

## Step 3: add the AI tool

Steps for Claude Code, Claude Desktop, Cursor, VS Code, Windsurf and Cline: [Connect Claude, Cursor and others](/en/docs/mcp-clients/).

## What the AI can and cannot do

| Can | Cannot |
|---|---|
| Create and edit pages, posts and custom post types | Install plugins or themes |
| Lay out blocks and patterns | Change users or their roles |
| Change menus, footer and sidebar widgets | Change site settings |
| Add media from a URL | Delete content |
| Set SEO titles and descriptions (Rank Math) | Touch sites of another workspace |

Rules and the full tool list: [Tools and security](/en/docs/mcp-tools/).