> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.pandectes.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to connect another AI assistant to Pandectes

### Overview

The Pandectes AI assistants connector works with any assistant or developer tool that supports MCP (Model Context Protocol), such as Cursor, VS Code or Windsurf. This guide shows the two ways to connect one: through the **Connect to Pandectes** sign-in page, or with your key in the tool's configuration.

The assistant can only read: it can't change settings or see customer data. For what the connector does and how to cut access, see [AI assistants connector: ask Claude or ChatGPT about your privacy setup](/en/article/ai-assistants-connector-1kyulsk/).

Using Claude or ChatGPT? Follow [How to connect Claude to Pandectes](/en/article/how-to-connect-claude-to-pandectes-mly8hj/) or [How to connect ChatGPT and Codex to Pandectes](/en/article/how-to-connect-chatgpt-and-codex-to-pandectes-h5xk1r/) instead.

### Before you start

* Your Pandectes plan is **Plus** or higher.
* Your tool supports remote MCP servers over HTTP (often called **Streamable HTTP**). Tools that only run local MCP servers can't connect.

### Step 1: Generate your store key

1. In Shopify Admin, go to **Apps > Pandectes GDPR Compliance > Integrations**.
2. Open the **AI assistants** tab and click **Set up** on the **Other AI assistants** card.
3. Under **Store key**, click **Generate key**.
4. Click the eye icon (**Show key**) to see the key, then click **Copy**.

You can show the key for 10 minutes only. After that the page shows just its last four characters, and you need to generate a new one if you lost it.

Keep this page open: you also need the **Connector URL** and the **Configuration** snippet.

### Step 2: Add Pandectes to your tool

#### Option A: Sign in with the Connector URL

If your tool can add a remote MCP server by URL and supports sign-in (OAuth):

1. Add a new MCP server in your tool and paste the **Connector URL**.
2. If a **Connect to Pandectes** page opens, paste your key in **Pandectes key** and click **Approve**.

The tool then appears under **Connected assistants** on the Pandectes page, and Pandectes emails your store's address about the new connection.

If no Connect to Pandectes page opens, use Option B.

#### Option B: Add the configuration with your key

Most tools read MCP servers from a JSON file. Copy the snippet under **Configuration (replace YOUR_STORE_KEY with your key)** on the Pandectes page. It already contains your connector URL and looks like this:

```json
{
  "mcpServers": {
    "pandectes": {
      "url": "CONNECTOR_URL",
      "headers": {
        "Authorization": "Bearer YOUR_STORE_KEY"
      }
    }
  }
}
```

1. Replace `YOUR_STORE_KEY` with your key. Keep the word `Bearer` and the space before the key. Pandectes never fills the key in for you.
2. Add the `pandectes` entry to your tool's MCP configuration. If the file already has an `mcpServers` section, add only the `pandectes` entry inside it. In Cursor, for example, this is the `mcp.json` file you open from Cursor's MCP settings.
3. Save the file and restart the tool or reload its MCP servers.

VS Code uses a slightly different format in its `mcp.json` file: the section is called `servers` instead of `mcpServers`, and each server needs `"type": "http"`:

```json
{
  "servers": {
    "pandectes": {
      "type": "http",
      "url": "CONNECTOR_URL",
      "headers": {
        "Authorization": "Bearer YOUR_STORE_KEY"
      }
    }
  }
}
```

A tool connected this way sends the key with every request, so it doesn't appear under **Connected assistants**. Under **Store key** you see **Also used directly, without the sign-in page** and when the key was last used.

||| Your key is saved in plain text in the configuration file. Don't commit that file to a shared code repository or share it with anyone. Anyone who has the key can read your Pandectes settings and statistics until you revoke it.

### Step 3: Ask your questions

Open your tool's AI chat and ask, for example:

* "Is my cookie banner showing?"
* "How many cookies are uncategorized in my latest scan?"
* "What were my consent rates in the last 30 days?"

Your tool may ask for permission the first time it uses a Pandectes tool.

### Disconnect the tool

On the Other AI assistants page in Pandectes:

* For a tool that signed in through the Connect to Pandectes page, click **Disconnect** next to it under **Connected assistants** and confirm. Your key keeps working.
* For a tool that uses the key in its configuration, click **Revoke key** and confirm. This stops every connection made with the key.

Removing the `pandectes` entry from your tool's configuration doesn't revoke the key in Pandectes.

### Troubleshooting

* **The tool shows an authorization error.** Check that the header reads `Bearer ` followed by the whole key, starting with `pdx_mcp_`. If you generated a new key or revoked it, the old one no longer works.
* **"This key is not valid or was revoked."** (on the Connect to Pandectes page) Copy the whole key again, or generate a new key and connect again.
* **"Connecting AI assistants needs a paid Pandectes plan (Plus or higher)."** Upgrade your Pandectes plan, then connect again.
* **"This key can't be shown any more."** The 10 minutes to show the key have passed. Click **Generate new key** and copy the new one. This disconnects anything that used the old key.

### Related articles

* [AI assistants connector: ask Claude or ChatGPT about your privacy setup](/en/article/ai-assistants-connector-1kyulsk/)
* [How to connect Claude to Pandectes](/en/article/how-to-connect-claude-to-pandectes-mly8hj/)
* [How to connect ChatGPT and Codex to Pandectes](/en/article/how-to-connect-chatgpt-and-codex-to-pandectes-h5xk1r/)