> For the complete documentation index, see [llms.txt](https://www.marcode.ai/help/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.marcode.ai/help/product-guides/settings-and-account/connecting-ai-assistants.md). Agents can also search and read this documentation through its [MCP server](https://www.marcode.ai/help/~gitbook/mcp).

# Connecting AI Assistants (MCP)

Connect Claude, ChatGPT, Cursor and other tools to your Marcode data with the Model Context Protocol (MCP).

Connect Claude, ChatGPT, Cursor, or any other MCP-compatible tool to your Marcode data so you can ask about affiliates, hijackers, coupons, reports, and tasks (and draft outreach) without leaving the assistant you already use.

Marcode exposes your brand-protection data through the **Model Context Protocol (MCP)**, an open standard that lets AI assistants and developer tools read your data and act on your behalf. You connect to a single endpoint and sign in with your normal Marcode account.

|                    |                                                                     |
| ------------------ | ------------------------------------------------------------------- |
| **MCP endpoint**   | `https://autopilot.marcode.ai/mcp`                                  |
| **Transport**      | Streamable HTTP                                                     |
| **Authentication** | OAuth, sign in with your Marcode account (single sign-on works too) |

{% hint style="info" %}
Connecting uses your own Marcode login, so an assistant only ever sees the brands and data you already have access to. When you approve the connection you can narrow that to the brands you choose. Disconnect at any time from the tool's own settings.
{% endhint %}

## Use this when

* You want to query your reports conversationally ("which affiliates need my attention?") from Claude, ChatGPT, or your IDE.
* You're building an internal agent or workflow on top of your Marcode data.
* You want an assistant to draft tasks, comments, and outreach emails for you to review and send.

## Before you start

* A **Marcode account** with access to at least one brand. The connector inherits exactly your permissions. See [Team & Access](https://www.marcode.ai/help/product-guides/settings-and-account/team-and-access.md).
* The AI tool you're connecting. Some tools require a paid plan to add custom connectors (noted per tool below).
* For developer tools, the tool's CLI or its config file (paths given per tool).

{% hint style="info" %}
By default a connection can only read. To let it make changes, such as creating a task, adding a comment, or drafting an email, tick **Also let it make changes** when you approve the connection. See [Read and write access](#read-and-write-access) below.
{% endhint %}

## Approving the connection

Whichever tool you connect, the last step is the same:

1. **Sign in** on Marcode's sign-in page with your email. If your organisation uses single sign-on, you're sent to your company's sign-in.
2. **Choose the brands it can see.** **All brands you can see in Marcode** includes brands added later. **Only the brands I choose** lets you tick specific brands.
3. **Choose what it can do.** Reading is always included. If the assistant asked to make changes, tick **Also let it make changes** to allow them.
4. Select **Approve**. You go back to your assistant.

Only approve a connection you started yourself. An approval lasts 14 days; after that, your assistant asks you to sign in and approve again.

## AI apps

For Claude and ChatGPT.

{% tabs %}
{% tab title="Claude" %}
Marcode is listed in Claude's connectors directory, so there is no server address to enter.

{% stepper %}
{% step %}

### Find Marcode in the directory

Click **Add to Claude** to open Marcode's directory page.

<a href="https://claude.ai/directory/marcode" class="button primary" data-icon="plug">Add to Claude</a>

Or, in Claude, open **Customize → Connectors**, select **+** next to **Connectors**, and choose Marcode.

On Team or Enterprise, an owner first adds Marcode for the organisation: open **Organization settings → Connectors**, select **Browse connectors**, choose Marcode, and select **Add to your team**. Members then connect it themselves. If you can't add it, select **Request** on Marcode's directory page to ask an owner.
{% endstep %}

{% step %}

### Connect and approve

Select **Connect**. Sign in with your Marcode account and approve the connection (see [Approving the connection](#approving-the-connection)).
{% endstep %}

{% step %}

### Use it in a conversation

In a chat, select **+** (or type `/`), hover over **Connectors**, and turn on Marcode.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
Once you connect Marcode in Claude on the web or Claude Desktop, it is also available in the Claude mobile apps. See [Claude's guide to connectors](https://support.claude.com/en/articles/11176164-use-connectors-to-extend-claude-s-capabilities).
{% endhint %}
{% endtab %}

{% tab title="ChatGPT" %}
{% stepper %}
{% step %}

### Enable developer mode

In ChatGPT, open **Settings → Security and login** and enable **Developer mode**. Your account and workspace policy determine whether this option is available.
{% endstep %}

{% step %}

### Add the MCP server

Open **Plugins** and use the **+** button. Name the connection `Marcode` and add a short description, such as "Marcode brand-protection data and actions".

Under **Connection**, choose the public endpoint option and enter `https://autopilot.marcode.ai/mcp`. Create the connection and review the tools it discovers.
{% endstep %}

{% step %}

### Sign in and approve

Sign in with your Marcode account when prompted and approve the connection (see [Approving the connection](#approving-the-connection)). Start a conversation and add the connection from the tools menu.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
See [OpenAI's MCP connection guide](https://developers.openai.com/plugins/deploy/connect-chatgpt) for the current setup and workspace requirements.
{% endhint %}
{% endtab %}
{% endtabs %}

## Developer tools

For Cursor, VS Code, Claude Code, Windsurf, and other IDEs or CLIs.

{% tabs %}
{% tab title="Cursor" %}
{% stepper %}
{% step %}

### Add the server

Click **Add to Cursor**, or add it manually (see below).

<a href="cursor://anysphere.cursor-deeplink/mcp/install?name=marcode&#x26;config=eyJ1cmwiOiJodHRwczovL2F1dG9waWxvdC5tYXJjb2RlLmFpL21jcCJ9" class="button primary" data-icon="cube">Add to Cursor</a>
{% endstep %}

{% step %}

### Authenticate

Follow Cursor's authentication prompt to sign in with your Marcode account. You can manage the server from **Customize**.
{% endstep %}
{% endstepper %}

<details>

<summary>Manual setup</summary>

Add the server to `~/.cursor/mcp.json` (global) or `.cursor/mcp.json` (this project):

```json
{
  "mcpServers": {
    "marcode": {
      "url": "https://autopilot.marcode.ai/mcp"
    }
  }
}
```

</details>

[Cursor MCP docs](https://cursor.com/docs/mcp)
{% endtab %}

{% tab title="VS Code" %}
{% stepper %}
{% step %}

### Add the server

Open the Command Palette (`Ctrl/Cmd+Shift+P`) and run **MCP: Add Server**. Choose **HTTP**, paste `https://autopilot.marcode.ai/mcp`, and pick a workspace or global install.
{% endstep %}

{% step %}

### Authenticate

VS Code opens your browser to sign in with your Marcode account.
{% endstep %}
{% endstepper %}

<details>

<summary>Manual setup</summary>

Add the server to `.vscode/mcp.json`:

```json
{
  "servers": {
    "marcode": {
      "type": "http",
      "url": "https://autopilot.marcode.ai/mcp"
    }
  }
}
```

</details>

[VS Code MCP docs](https://code.visualstudio.com/docs/agent-customization/mcp-servers)
{% endtab %}

{% tab title="Claude Code" %}
{% stepper %}
{% step %}

### Add the server

Run:

```bash
claude mcp add --transport http marcode https://autopilot.marcode.ai/mcp
```

Add `--scope user` to use it across all your projects, or `--scope project` to share it with your team via a committed `.mcp.json`.
{% endstep %}

{% step %}

### Authenticate

Start Claude Code, run `/mcp`, select **marcode**, and follow the authentication option to sign in in your browser. Confirm with `claude mcp list`; the server should show **Connected**.
{% endstep %}
{% endstepper %}

<details>

<summary>Manual setup</summary>

Add the server to `.mcp.json` in your project root:

```json
{
  "mcpServers": {
    "marcode": {
      "type": "http",
      "url": "https://autopilot.marcode.ai/mcp"
    }
  }
}
```

</details>

[Claude Code MCP docs](https://code.claude.com/docs/en/mcp)
{% endtab %}

{% tab title="Windsurf" %}
{% stepper %}
{% step %}

### Add the server

For the legacy Cascade agent, add the configuration shown below to `~/.codeium/windsurf/mcp_config.json`. Use the **MCPs** icon in Cascade to manage the server.
{% endstep %}

{% step %}

### Authenticate

Windsurf opens your browser to sign in with your Marcode account.
{% endstep %}
{% endstepper %}

<details>

<summary>Manual setup</summary>

Add the server to `~/.codeium/windsurf/mcp_config.json`. Windsurf uses `serverUrl` for remote servers:

```json
{
  "mcpServers": {
    "marcode": {
      "serverUrl": "https://autopilot.marcode.ai/mcp"
    }
  }
}
```

</details>

These settings apply to legacy Cascade. Current vendor documentation uses the Devin Desktop name; the Devin Local agent has a separate configuration. See the [Cascade MCP docs](https://docs.devin.ai/desktop/cascade/mcp) for the setup that matches your agent.
{% endtab %}

{% tab title="Other" %}
Marcode works with any MCP-compatible client. Point it at the Marcode endpoint and sign in when prompted:

* **Server URL:** `https://autopilot.marcode.ai/mcp`
* **Transport:** Streamable HTTP
* **Authentication:** OAuth

Most clients accept a config like this:

```json
{
  "mcpServers": {
    "marcode": {
      "url": "https://autopilot.marcode.ai/mcp"
    }
  }
}
```

{% hint style="info" %}
Field names vary by client. Some use `serverUrl` instead of `url`, and others require `"type": "http"`. Check your client's MCP documentation if the server doesn't appear.
{% endhint %}
{% endtab %}
{% endtabs %}

## Read and write access

The connection grants two levels of access, and your assistant only ever holds what it asked for when you signed in:

* **Read (default).** Every connection can read your data: brands, violation counts, affiliates, advertisers, tasks, the inbox, and monitoring status. Reads never change anything, so most assistants run them without asking you each time. Every connection can also export evidence and reports, but because each export creates a download file, some assistants ask before running one.
* **Write (opt-in).** Tools that change state need **Also let it make changes**, ticked when you approve the connection: create a task, move it, add a comment or tag, draft and edit outreach emails (or discard a draft), mark an inbox thread read, attach a playbook, run a fresh click analysis, or update supported brand settings such as trademark phrases. If a write tool reports that it lacks the scope, disconnect, connect again, and tick **Also let it make changes**.

{% hint style="info" %}
Tasks, the inbox, email drafts, and playbooks need the Automated Enforcement product on the brand. Without it, a connection can still read reports, export evidence, change trademark phrases, and run click analyses.
{% endhint %}

Each person can run 10 fresh click analyses an hour through connected assistants. Reading past analyses isn't limited.

{% hint style="warning" %}
The connection has no direct email-send tool. Review and send its drafts in Marcode. A playbook you explicitly start or approve can still send emails or take supported network actions through its configured steps, so review those steps before starting it.
{% endhint %}

## What you can ask

Once connected, your assistant discovers which brands you can read and works from there. Try prompts like:

* "Which affiliates need my attention on \<brand>?" surfaces the triage queue (no open task, stalled, or awaiting your reply).
* "Summarise the new hijackers we've seen this week."
* "List the advertisers showing up for coupon on \<brand>."
* "Run a click analysis on this ad URL and tell me where it redirects."
* "Create a task for the top brand bidder, then draft an outreach email on it."
* "What's on my task board, and what's awaiting a reply in the inbox?"
* "Export this affiliate's evidence for 1 to 31 August."
* "Queue the warning playbook on this task for review."

The same data and actions are available inside Marcode itself through Autopilot. To use the assistant built into the app instead of an external tool, see [What Is Autopilot?](https://www.marcode.ai/help/product-guides/autopilot-and-recommendations/what-is-autopilot.md), [Using the Chat Rail](https://www.marcode.ai/help/product-guides/autopilot-and-recommendations/chat-rail.md), and [Autopilot Capabilities](https://www.marcode.ai/help/product-guides/autopilot-and-recommendations/capabilities.md).

## Reporting periods and downloads

Ask for the period you need. Supported report reads and exports accept start and end dates; without them, the usual period is the 30 days ending yesterday. Saved reports retain their configured period.

For a workflow calling tools directly, supply both `dateFrom` and `dateTo`, or omit both. Date-only values include the full UTC day. Timestamps must include their time zone.

Evidence-pack and report exports return a download link, including specialised extension and domain-squatting packs. Download the file to keep it, or request a fresh export when a link expires. See [Autopilot Capabilities](https://www.marcode.ai/help/product-guides/autopilot-and-recommendations/capabilities.md).

## Review playbooks before they start

Ask your assistant to **queue a playbook for review** to create a decision in [Approvals](https://www.marcode.ai/help/product-guides/automation-playbooks-and-enforcement/approvals.md). The playbook remains inactive, with no email drafts created, until approved.

The `attach_playbook_to_task` tool requires `requiresApproval`. Use `true` for reviewed proposals and include an `approvalNote` explaining the evidence. `false` starts the playbook and is intended only for an explicit human instruction naming that playbook and task. The assistant is instructed to queue proactive or unattended proposals; it must choose the correct mode.

Write access also supports confirmed changes to trademark and negative phrases used to classify ads. Review the exact phrases before authorising a change. These phrases are separate from the search keywords Marcode monitors.

## Troubleshooting

<details>

<summary>The server doesn't appear after adding it</summary>

Check the field name your client expects. Some use `serverUrl` instead of `url`, and some require `"type": "http"`. The transport is Streamable HTTP.

</details>

<details>

<summary>Sign-in never completes / browser doesn't open</summary>

Make sure pop-ups aren't blocked, then re-trigger authentication from the tool's MCP settings (e.g. `/mcp → marcode → Authenticate` in Claude Code).

</details>

<details>

<summary>A write action fails with a "scope" error</summary>

Your connection is read-only. Re-authorise the connection and approve **write** access when prompted.

</details>

<details>

<summary>The assistant asks you to sign in again</summary>

An approval lasts 14 days. Sign in and approve the connection again.

</details>

<details>

<summary>The assistant can't see a brand you expect</summary>

The connection only sees brands your Marcode account has access to, and only the brands you chose if you picked **Only the brands I choose** when you approved it. Confirm your access in [Team & Access](https://www.marcode.ai/help/product-guides/settings-and-account/team-and-access.md). To change the brands, disconnect and connect again.

</details>

<details>

<summary>Task, inbox, or email tools are missing</summary>

They need the Automated Enforcement product on the brand. Contact support to add it.

</details>

<details>

<summary>You can't add Marcode, or the option is greyed out</summary>

In Claude on Team or Enterprise, an owner has to add Marcode for the organisation first (see the Claude steps above); you can select **Request** on Marcode's directory page to ask. In other tools, some plans need a paid tier to add a custom connector, and managed workspaces may need an admin to enable them first. Check the per-tool notes above.

</details>

## Related

* [What Is Autopilot?](https://www.marcode.ai/help/product-guides/autopilot-and-recommendations/what-is-autopilot.md)
* [Using the Chat Rail](https://www.marcode.ai/help/product-guides/autopilot-and-recommendations/chat-rail.md)
* [Autopilot Capabilities](https://www.marcode.ai/help/product-guides/autopilot-and-recommendations/capabilities.md)
* [Team & Access](https://www.marcode.ai/help/product-guides/settings-and-account/team-and-access.md)
* [Integrations](https://www.marcode.ai/help/product-guides/settings-and-account/integrations.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.marcode.ai/help/product-guides/settings-and-account/connecting-ai-assistants.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
