---
title: Connecting an AI Assistant to Your Site
description: "Since WordPress 6.9, plugins can register what they do as **abilities** through WordPress's Abilities API, and WordPress itself registers a few. This guide connects an AI assistant to your site through MCP (Model Context Protocol), the standard most assistants use…"
url: "https://brightleafdigital.io/docs/connecting-an-ai-assistant-to-your-site/"
updated: "2026-11-23"
category: BrightLeaf Digital General
---

# Connecting an AI Assistant to Your Site

Since WordPress 6.9, plugins can register what they do as **abilities** through WordPress's Abilities API, and WordPress itself registers a few. This guide connects an AI assistant to your site through MCP (Model Context Protocol), the standard most assistants use to talk to outside tools. Once it is connected, the assistant can use every ability on your site that its plugin makes available to assistants, from any plugin, including the GravityOps plugins.

## What you need

- WordPress 6.9 or later.
- HTTPS. WordPress only offers application passwords on secure sites (local development sites are the exception).
- An assistant that supports MCP, such as Claude Code, Claude Desktop, Cursor or GitHub Copilot in VS Code.

## Step 1: Install the MCP Adapter plugin

The MCP Adapter is WordPress's official bridge between the Abilities API and MCP.

1. Go to **Plugins → Add New**, search for **MCP Adapter**, then install and activate it.
2. Its endpoint is now available at:

```
https://your-site.com/wp-json/mcp/mcp-adapter-default-server
```

If your site uses plain permalinks, use `https://your-site.com/?rest_route=/mcp/mcp-adapter-default-server` instead.

Install it from WordPress.org rather than from GitHub source; a source checkout is missing files it needs.

## Step 2: Create an application password

The assistant signs in as a WordPress user, with an application password instead of the real one.

1. Go to **Users → Profile** for the user the assistant will act as.
2. Under **Application Passwords**, enter a name (for example, "Claude on my laptop") and click **Add New Application Password**.
3. Copy the password. WordPress shows it only once.

The assistant can do exactly what that user can do. Each ability checks the user's permissions, usually the same ones its plugin's screens require, so pick a user with access to the things you want the assistant to manage. Create one application password per assistant and device, so you can revoke one without affecting the others.

## Step 3: Connect your assistant

### Claude Code

Claude Code connects directly. First, encode your username and application password:

```
printf 'your-username:xxxx xxxx xxxx xxxx xxxx xxxx' | base64 | tr -d '\n'
```

Then add the server, pasting the result:

```
claude mcp add --transport http my-site \
  https://your-site.com/wp-json/mcp/mcp-adapter-default-server \
  --header "Authorization: Basic PASTE_THE_RESULT_HERE"
```

### Claude Desktop, Cursor and GitHub Copilot in VS Code

These connect through a small proxy that runs on your computer. It needs Node.js.

Add this to the app's MCP configuration (in Claude Desktop: **Settings → Developer → Edit Config**; in Cursor: `~/.cursor/mcp.json`):

```
{
  "mcpServers": {
    "my-site": {
      "command": "npx",
      "args": ["-y", "@automattic/mcp-wordpress-remote@latest"],
      "env": {
        "WP_API_URL": "https://your-site.com/wp-json/mcp/mcp-adapter-default-server",
        "WP_API_USERNAME": "your-username",
        "WP_API_PASSWORD": "xxxx xxxx xxxx xxxx xxxx xxxx"
      }
    }
  }
}
```

In VS Code, the file is `.vscode/mcp.json` in your project (or your user configuration, from the **MCP: Open User Configuration** command), and its top-level key is `servers` instead of `mcpServers`.

Save the file and restart the app.

### Claude.ai, ChatGPT and other web assistants

Web assistants connect through a custom connector (in Claude: **Settings → Connectors → Add custom connector**), using the endpoint address from Step 1. They sign in with OAuth: you approve the connection on your site once, and no password is copied into the assistant.

WordPress does not include an OAuth sign-in of its own, so your site needs a plugin that adds one before a web assistant can connect. If you would rather not add one, use Claude Code or a desktop app with an application password instead.

## Step 4: Check that it works

Ask your assistant: "What abilities are available on my site?"

The MCP Adapter gives the assistant three tools: one to list the available abilities, one to describe an ability, and one to run it. The assistant should list abilities by name, such as `core/get-site-info` from WordPress itself, or `gocsm/list-snippets` from GravityOps Code Snippet Manager. From there, ask in plain language for what you need.

## Troubleshooting

| Problem | What to check |
| --- | --- |
| 401 Unauthorized | Use the login name or email, not the display name. Some hosts strip the `Authorization` header; the standard WordPress `.htaccess` passes it through, otherwise ask your host. Some security plugins disable application passwords. |
| 404 showing a web page | Plain permalinks or stale rewrite rules. Use the `?rest_route=` address, or re-save **Settings → Permalinks**. |
| 404 with `rest_no_route` | The MCP Adapter is inactive, or was installed from GitHub source. Reinstall it from WordPress.org. |
| An ability you expect is missing | Abilities are only shared with assistants when their plugin marks them as available. Check that the plugin is active, that its version and plan include abilities, and that the connected user has the permissions the ability needs. |
| Permission errors on some actions | The connected user's role lacks the needed access. |

## Keeping it safe

An application password gives the same access as the user it belongs to. Treat it like a password, and revoke it under **Users → Profile** when you no longer need it.

## Stuck? Ask in GravityOps Help

Search past answers or post your question.

[Ask in GravityOps Help](https://brightleafdigital.io/community/gravityops-help/)[Open a support request](https://brightleafdigital.io/support/)

GravityOps Weekly

[This iframe contains the logic required to handle Ajax powered Gravity Forms.](about:blank)
