OptAEO
§ Resources · Guide · MCP Setup

Connect OptAEO to your AI tools.

Talk to OptAEO from Claude Desktop, Cursor or VS Code. Read scores, find products that need attention, run the agent — all from a chat window.

▷ Get a free scan
Setup time · 5 min
Reading time · 6 min
Updated 2026 · V

Overview

Model Context Protocol (MCP) is the open standard AI assistants use to talk to apps. OptAEO exposes an MCP endpoint at /api/mcp that speaks JSON-RPC 2.0. Connect Claude Desktop, Cursor, or VS Code via the bridge documented below and your assistant can read your Shopify catalog, pull AEO scores across ChatGPT / Perplexity / Gemini / Claude, run scans, and (Enterprise) apply fixes — directly from a chat window.

Sample prompts once connected

List my OptAEO products with AEO score below 85.
What is the AEO score for Soft Margaux 15?
Which products are missing a GTIN?
Re-scan the Balenciaga NBA Top and tell me what changed.
Apply all available fixes to product X.
Run the OptAEO agent now — apply every safe fix in the queue.

Plan tiers

Business · $599/mo
4 read-only tools
list_products · get_product · get_scores · scan_product
Enterprise · $999/mo
All 6 tools (read + write)
+ fix_product · run_agent

MCP access starts on Business. See tier comparison.

Before you start

  1. An OptAEO Business or Enterprise plan (free trial available). Sign in and check your plan badge in the sidebar.
  2. One of Claude Desktop, Cursor, or VS Code installed on your machine.
  3. Node.js with npx. Already installed if you have macOS Command Line Tools or any standard Node setup. The mcp-remote bridge package will auto-install on first run — no manual step.
Why a bridge?

Claude Desktop and Cursor speak MCP only over stdio — a local process piping JSON-RPC over standard input and output. OptAEO's MCP server is HTTP. The mcp-remote package runs locally as a stdio shim and proxies every call to our HTTP endpoint with your Bearer key attached. VS Code supports stdio too; we use the same bridge for consistency.

Step 1 · Generate your MCP API key

  1. Open OptAEO. Click Settings in the sidebar.
  2. Click the Agent Mode tab in the tab strip.
  3. Find the MCP Access card.
  4. Click Generate Key. The plaintext key shows once in green — copy it immediately. We hash it server-side and never store the plaintext, so you cannot retrieve it later.
  5. The key looks like: optk_mcp_aB3xY... (41 characters total). Paste it somewhere temporary — Notes, a TextEdit window — for the next step.

Key not what you expected? Click Revoke next to the key in Active Connections, then Generate Key again to get a fresh one.

Step 2A · Connect Claude Desktop

  1. Find the config file.
    macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. Open it in any text editor. If it does not exist, create it with an empty JSON object {}.
  3. Add the mcpServers block below. If the file already has other settings, add mcpServers alongside them — do not replace the whole file.
{
  "mcpServers": {
    "optaeo": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://optaeo.ai/api/mcp",
        "--header",
        "Authorization:Bearer PASTE_YOUR_OPTAEO_MCP_KEY_HERE"
      ]
    }
  }
}

Replace PASTE_YOUR_OPTAEO_MCP_KEY_HERE with the key from Step 1. Keep the Bearer prefix and the surrounding quotes intact. Save the file.

  1. Restart Claude Desktop fully. Cmd+Q on macOS — closing the window is not enough. Then relaunch from /Applications. First run installs mcp-remote via npx (~15 seconds, one-time).

Step 2B · Connect Cursor

Cursor's MCP config lives in ~/.cursor/mcp.json (user-level) or your project's .cursor/mcp.json (workspace). The format matches Claude Desktop almost exactly:

{
  "mcpServers": {
    "optaeo": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://optaeo.ai/api/mcp",
        "--header",
        "Authorization:Bearer PASTE_YOUR_OPTAEO_MCP_KEY_HERE"
      ]
    }
  }
}
  1. Replace PASTE_YOUR_OPTAEO_MCP_KEY_HERE with your key.
  2. Save the file.
  3. Cursor → Settings → Features → Model Context Protocol → confirm optaeo is listed and enabled.
  4. Restart Cursor.

Step 2C · Connect VS Code

VS Code's MCP support (via the GitHub Copilot Chat extension) reads .vscode/mcp.json (workspace) or your global User settings. The schema uses servers rather than mcpServers, with an explicit type: "stdio" field:

{
  "servers": {
    "optaeo": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://optaeo.ai/api/mcp",
        "--header",
        "Authorization:Bearer PASTE_YOUR_OPTAEO_MCP_KEY_HERE"
      ]
    }
  }
}
  1. Save as .vscode/mcp.json in your project root.
  2. Replace PASTE_YOUR_OPTAEO_MCP_KEY_HERE with your key.
  3. Open Copilot Chat (Ctrl+Alt+I / Cmd+Ctrl+I). Run /mcp.list — confirm optaeo appears with 6 (Enterprise) or 4 (Business) tools.

Step 3 · Verify the connection

Open a fresh chat in your AI client. Type:

List my OptAEO products with AEO score below 85.

Your assistant will request permission to call list_products with below_score: 85. Approve. You should get back your real OptAEO catalog with scores. If you are on Enterprise, try:

Run the OptAEO agent now.

You will see the run_agent tool fire and return a summary like "Agent run complete. Applied N fix(es) across M product(s)." If your store is already at Green tier, you might see "0 fixes applied" — that is correct. The plumbing is what matters here, not whether anything was eligible to fix.

Troubleshooting

Tools do not show up.Make sure you fully quit the AI client (Cmd+Q on macOS, Alt+F4 on Windows) — closing the window is not enough. Then relaunch.
"Invalid or revoked API key" (HTTP 401).Either the key was typed wrong, or it was revoked in Settings → Active Connections. Generate a fresh key and retry.
"PLAN_REQUIRED" (HTTP 402).Your account is on Free or Pro. MCP access starts on Business — upgrade here.
"Tool 'run_agent' requires the Enterprise plan" (-32001).You are on Business and called a write tool. Read tools work fine on Business; forfix_product and run_agent you need Enterprise.
"MCP rate limit exceeded".60 calls per minute per key. Slow your client down or generate a second key for parallel workflows — both are valid simultaneously.
JSON parse error in your config file.Most common cause: a trailing comma or a missing quote when pasting. Run your config through jq or paste it into jsonlint.com to find the error.
npx errors out on first run.The bridge needs Node.js. On macOS, run xcode-select --install in Terminal to install Command Line Tools (includes node + npm + npx). On Windows, download from nodejs.org.

Security notes

The MCP key in your config file is stored in plaintext on your machine. Anyone with file access to your home directory can read it. If your laptop is yours-only and full-disk-encrypted, this is fine — same threat model as your ~/.ssh/ keys. If shared, revoke the key after each use.

The MCP endpoint is HTTPS, so the key is encrypted in transit. We never log keys server-side; only their SHA-256 hash is stored. The last_used_at timestamp is updated on every call so you can spot a leaked key — if a revoked key shows recent activity, audit the machines that had it.

Keys are scoped to MCP operations only. They cannot read merchant settings, billing, or any data outside the MCP tool surface. They cannot be used for the regular OptAEO REST API.

Frequently asked questions

What is MCP?Model Context Protocol — the open standard AI assistants use to talk to apps. It is to AI clients what HTTP is to browsers.
Which AI clients can I use?Claude Desktop, Cursor and VS Code (with Copilot Chat). Any MCP-compatible client should work.
Can I use this with ChatGPT?Not yet. ChatGPT Custom Connectors (the closest equivalent) use OpenAI's Actions standard, not MCP. We are tracking native MCP support; once it lands, OptAEO will work with no changes.
How do I revoke a key?Settings → Agent Mode → MCP Access → Active Connections → click Revoke on the row. The key is invalidated server-side immediately.
Is there an extra cost?No — included in Business and Enterprise. Rate-limited to 60 calls per minute per key.
What about programmatic access without an AI client?Use curl directly — the endpoint is plain JSON-RPC 2.0. Set Content-Type: application/json and Authorization: Bearer optk_mcp_... headers. POST to the endpoint URL. See the Help page for example calls.
Can I share keys across my team?Possible but not recommended. Generate a separate key per teammate so revocation is granular. Multi-user team management ships post-launch.

Ready to optimise?

One catalog scan. No credit card. AEO score and the issues we'd fix in under 60 seconds.

▷ Get a free scan