> For the complete documentation index, see [llms.txt](https://docs.exoclick.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.exoclick.com/mcp/zh/exoclick-mcp-connecting-ai-client.md).

# 连接 AI 客户端

## 前提条件 <a href="#prerequisites" id="prerequisites"></a>

在连接之前，请确保你拥有一个有效的 [**ExoClick 广告主账户**](/advertisers/zh/advertisers-introduction.md)。如果你还没有账户，可以免费注册 [**这里。**](https://www.exoclick.com/signup/)

## 说明 <a href="#instructions" id="instructions"></a>

ExoClick MCP 服务器 URL 为：

```
https://mcp.exoclick.com/mcp
```

以下是最常用 AI 客户端的设置说明。

### Claude（Claude.ai 和 Claude Desktop） <a href="#claude-claudeai-and-claude-desktop" id="claude-claudeai-and-claude-desktop"></a>

Claude 原生支持 MCP 连接器。连接方法：

1. 打开 Claude，前往 **自定义** 部分，然后点击 **连接器**.
2. 点击 **+** 图标以添加连接器，然后选择 **添加自定义连接器**.
3. 输入名称和 URL： <https://mcp.exoclick.com/mcp>。ExoClick 将被添加到连接器列表中。
4. 点击 **连接**。您将被重定向到 ExoClick 管理面板以授权访问。
5. 授权后，您将返回 Claude，连接将生效。

### ChatGPT <a href="#chatgpt" id="chatgpt"></a>

ChatGPT 通过其插件支持 MCP 连接器。连接方法：

1. 打开 ChatGPT，前往 **设置**，然后 **插件**，然后 **MCP。**
2. 点击 **+添加服务器**，然后输入名称。 &#x20;
3. 选择 **可流式 HTTP** 并添加 URL： <https://mcp.exoclick.com/mcp>
4. 点击 **保存，** 返回插件菜单，然后点击 **验证**。您将被重定向到 ExoClick 管理面板以授权访问。
5. 授权后，您将返回 ChatGPT，连接将生效。

{% hint style="info" %}
**注意：** 如果您使用的是浏览器应用，有几点不同：

1. 您需要启用 **开发者模式** 才能添加自定义 MCP。您可以通过 **安全与登录** 设置启用此选项。
2. MCP 可通过插件菜单直接添加，按下 **+** 图标即可。
   {% endhint %}

### Cursor <a href="#cursor" id="cursor"></a>

Cursor 通过其自定义菜单支持 MCP 连接器。连接方法：

1. 打开 Cursor，前往 **自定义**，点击 **MCP** 然后选择 **新建 MCP 服务器**.
2. 请将以下对象添加到 **mcp.json** 文件中的 MCP 列表：&#x20;

```
"exoclick": {
      "url": "https://mcp.exoclick.com/mcp"
    }
```

3. 保存文件。MCP 列表中将显示新添加的 ExoClick 连接器。点击 **授权** 按钮，您将被重定向到 ExoClick 管理面板以授权访问。
4. 授权后，您将返回 Cursor，连接将生效。

### Claude Code <a href="#claude-code" id="claude-code"></a>

如果您从命令行使用 Claude Code，可以用一条命令添加 ExoClick MCP 服务器：

```
claude mcp add exoclick https://mcp.exoclick.com/mcp --transport http
```

在会话中首次使用 ExoClick 服务器时，Claude 会自动提示您通过 ExoClick 管理面板进行授权。您也可以在首次使用前手动授权：

1. 运行 claude 开始一个交互式会话。
2. 运行 `/mcp` 命令。
3. 选择 ExoClick 服务器。
4. 点击 Authorize。

### 其他 AI 客户端 <a href="#other-ai-clients" id="other-ai-clients"></a>

| **字段**  | **值**                          |
| ------- | ------------------------------ |
| 服务器 URL | <https://mcp.exoclick.com/mcp> |
| 传输方式    | 可流式 HTTP                       |
| 授权      | OAuth（重定向到 ExoClick 管理面板）      |

ExoClick 的 MCP 使用 [动态客户端注册](https://datatracker.ietf.org/doc/html/rfc7591) 来颁发 **客户端 ID**。要获取客户端 ID，您需要调用 <https://mcp.exoclick.com/register> 并使用以下请求体：&#x20;

```
{
    "redirect_uris": ["https://client.example.org/callback"],
    // 请将上面的内容替换为您的 AI 客户端的回调 URI
    "token_endpoint_auth_method": "none"
}
```

获取客户端 ID 后，请更新您用于管理 MCP 连接的 .json 文件，将此 ID 包含进去。有关添加自定义 MCP 连接器的说明，请参阅您的 AI 客户端文档。


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.exoclick.com/mcp/zh/exoclick-mcp-connecting-ai-client.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
