Connect an Agent
Step-by-step setup for Claude, ChatGPT, Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, Gemini CLI, n8n and any other MCP app.
Open AI Product Tools > AI Agents. On the first visit, the setup checklist shows the app chips in step 2. Once you have an agent, click Connect an agent at the top of the Agents tab instead. Pick your app and its steps open below the chips.
Apps connect in one of two ways:
- Sign in (Claude, ChatGPT, Claude Desktop): the app opens a WordPress screen in your browser, you choose what it may do, and click Approve. The app never sees a key.
- API key (Claude Code, Cursor, VS Code, Windsurf, Gemini CLI, n8n): you create a key on this page and give it to the app. The key is shown only once, right after you create it.
Your store address
Every app talks to one address: https://your-store.com/wp-json/aipt/v1/mcp. The page shows your exact address with a Copy button, and it is always under Settings > Store address for agents. The screenshots on this page come from a local demo store, so they show http://localhost.
Sign-in apps
Claude
Click Add to Claude. Claude opens its Add custom connector dialog with your store's name and address already filled in. Add the connector, then click Connect.
Claude sends you to a WordPress screen. Choose what Claude may do and click Approve. See The approval screen below.
Come back to the AI Agents page. Step 3 ticks itself off when Claude makes its first request.

ChatGPT
In ChatGPT, open Settings, then Connectors, then Advanced, and turn on Developer mode.
Add a connector and paste your store address.
ChatGPT sends you to a WordPress screen. Choose what it may do and click Approve.
Come back to the AI Agents page. Step 3 ticks itself off when ChatGPT makes its first request.

Claude Desktop
In Claude Desktop, open Settings, then Connectors, and click Add custom connector. Paste your store address and add it. Claude Desktop opens the WordPress approval screen in your browser; choose what it may do and click Approve.

Menu names change
AI apps rename their menus from time to time. If a menu name is slightly different in your version, look for "connectors", "integrations" or "MCP servers".
The approval screen
Every sign-in app sends you to the same WordPress screen. If you are not logged in to WordPress in that browser, you log in first. The screen shows which app is asking (Requesting app), the site that receives the connection (Will connect to, for example claude.ai), and how the app registered itself (Registered by), then asks you to choose a permission level:
- Read only: read products, content and activity, and change nothing.
- Content editor: also generate, write and apply product content.
- Store editor: also change price, SKU, status, category and slug.
Click Approve to connect, or Deny to refuse. Start with Content editor; you can raise or lower the level later from the agents list.

On the Free plan, a fourth sign-in is refused on this screen while three agents are connected. Revoke one you no longer use, or upgrade.
API-key apps
Every API-key app starts with the same short form:
- Name: shown in your agents list and in the activity log, for example "Cursor on my laptop".
- What can it do?: Read only, Content editor (recommended) or Store editor.
Then create the key. The key is shown once. Copy it into the app right away, not into a note. If you lose it, make a new one; the old key is revoked.

Claude Code
Click Create key. The page shows the key and the command to run in your terminal:
claude mcp add --transport http ai-product-tools "https://your-store.com/wp-json/aipt/v1/mcp" --header "Authorization: Bearer YOUR_KEY"
Cursor
Click Create key and open Cursor. Cursor opens and offers to add the store. Prefer to do it by hand? Click Show the key and the mcp.json snippet and add this to Cursor's mcp.json:
{
"mcpServers": {
"ai-product-tools": {
"url": "https://your-store.com/wp-json/aipt/v1/mcp",
"headers": { "Authorization": "Bearer YOUR_KEY" }
}
}
}VS Code
Click Create key and open VS Code to install it in one step, or click Show the key and the .vscode/mcp.json snippet and add this to .vscode/mcp.json:
{
"servers": {
"ai-product-tools": {
"type": "http",
"url": "https://your-store.com/wp-json/aipt/v1/mcp",
"headers": { "Authorization": "Bearer YOUR_KEY" }
}
}
}
Windsurf
Click Create key, then add this to mcp_config.json:
{
"mcpServers": {
"ai-product-tools": {
"serverUrl": "https://your-store.com/wp-json/aipt/v1/mcp",
"headers": { "Authorization": "Bearer YOUR_KEY" }
}
}
}Gemini CLI
Click Create key, then add this to Gemini CLI's settings.json:
{
"mcpServers": {
"ai-product-tools": {
"httpUrl": "https://your-store.com/wp-json/aipt/v1/mcp",
"headers": { "Authorization": "Bearer YOUR_KEY" }
}
}
}n8n
Click Create key, then in your workflow:
- Add an MCP Client node and set Connection Type to HTTP Streamable.
- Set Endpoint to your store address.
- Under Authentication, choose Header Auth and create a credential named
Authorizationwith the valueBearer YOUR_KEY. The page shows this value ready to copy.

Another MCP app
Any app that supports remote MCP servers over HTTP works. Pick Another MCP app and tell the page how your app connects:
- It signs in: add a remote MCP server in your app (it may be called a connector or an integration) with your store address. The app sends you to the approval screen and shows up in your agents list, marked as waiting until its first request arrives.
- It uses a key: create a key, point your app at your store address, and send the key in an
Authorization: Bearer YOUR_KEYheader.

Check that it works
After step 2, the page watches for the agent's first request. Ask the agent something simple; Copy this request gives you "List 3 products from my store." The step ticks itself off when the request arrives, and you can leave the page in the meantime.

Nothing after a minute?
- Make sure the app shows your store as connected.
- Run a site check. It finds the hosting problems that most often stop a connection.
- Lost the key? Click Make a new one; the old key is revoked.
- Picked the wrong app? Click Start over; this connection is removed and you can choose again. A key you already pasted somewhere stops working.