> ## Documentation Index
> Fetch the complete documentation index at: https://apixo.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 在 Codex、Claude Code 和 Cursor 中连接 APIXO 远程 MCP

> 在 Codex、Claude Code、Cursor 等客户端中，通过 Streamable HTTP 和浏览器 OAuth 连接 APIXO 的远程 MCP。无需运行本地服务器或提供 API 密钥。

在 AI 客户端中选择 **远程 Streamable HTTP**，连接 **`https://mcp.apixo.ai/mcp`**，然后通过 **apixo.ai 的浏览器 OAuth** 登录。无需在本机安装 MCP 软件包或 Node.js，也无需向 AI 客户端提供 API 密钥。

> [card] [为您的客户端复制设置说明](https://apixo.ai/mcp)
>
> 在 APIXO 选择您的 AI 客户端，以一键复制连接说明。

## 开始之前

* 一个 APIXO 帐户和一个可登录的浏览器。
* 一个支持远程 MCP 通过流式传输 HTTP 和浏览器 OAuth 的客户端。

## 步骤1：添加远程连接

使用连接名称 **`apixo-mcp`**。

> [tab] Codex
>
> 跑步：
>
> ```bash theme={null}
> codex mcp add apixo-mcp --url https://mcp.apixo.ai/mcp
> ```
>
> 如果您的版本提供登录命令，请运行它来启动浏览器OAuth：
>
> ```bash theme={null}
> codex mcp login apixo-mcp
> ```
>
> 否则，通过客户端完成登录 MCP 连接控制。如果 `codex` 无法识别，请参阅 [CLI 未找到于 PATH](https://apixo.ai/docs/zh/integrations/mcp/troubleshooting.md#cli-not-found-on-path)。

> [tab] Claude Code
>
> 跑步：
>
> ```bash theme={null}
> claude mcp add --transport http apixo-mcp https://mcp.apixo.ai/mcp
> ```
>
> 打开`/mcp`菜单，选择`apixo-mcp`，然后在浏览器中完成OAuth。

> [tab] Cursor
>
> 在 `mcpServers` 下添加此条目，在 `~/.cursor/mcp.json` 或你的项目的 `.cursor/mcp.json` 中。保留任何现有连接。
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "apixo-mcp": {
>       "url": "https://mcp.apixo.ai/mcp"
>     }
>   }
> }
> ```
>
> 打开**Cursor设置→MCP**，启用`apixo-mcp`，然后登录。

> [tab] 其他客户端
>
> 在客户端的远程 MCP 或连接器设置中，添加：
>
> | 设置 | 值 |
> | - | - |
> | 姓名 | `apixo-mcp` |
> | URL | `https://mcp.apixo.ai/mcp` |
> | 运输 | Streamable HTTP |
>
> 启用连接并遵循客户端浏览器 OAuth 流程。检查远程 MCP 和 OAuth 支持的客户端文档。

## 步骤 2：完成浏览器登录

在 **apixo.ai** 登录 APIXO 账号并授权连接。返回 AI 客户端，确认 `apixo-mcp` 已连接。如果状态尚未更新，可重新加载客户端的 MCP 连接列表。

## 步骤 3：使用免费工具验证

询问您的代理人：

```text theme={null}
Use the apixo-mcp connection. Call list_models to list image models,
then call get_model_schema for one model returned by that list.
Call get_profile to confirm which APIXO account is connected.
Use only these three free, read-only tools. Do not create a generation.
```

这三个工具均可免费使用，只读取数据。生成工具（`generate_image`、`generate_video`、`generate_music`、`generate_speech`、`clone_voice`、`design_voice` 和 `generate_task`）按使用量计费。使用 `get_generation` 可查询任务状态和结果。

对于大语言模型（LLM），调用 `list_models` 时指定 `integration_type: llm_gateway`，然后请求 `get_integration_guide` 并提供具体的模型 ID。使用返回的 SDK 配置从项目服务器调用网关。[Chat API](https://apixo.ai/docs/zh/llm) · [官方SDK](https://apixo.ai/docs/zh/llm/official-sdks.md)

## CI 和无浏览器环境

MCP 连接需要通过浏览器登录。在 CI 等无法使用浏览器的环境中，请从密钥管理工具读取 [API 密钥](https://apixo.ai/dashboard/api-keys)，直接调用[生成 API](https://apixo.ai/docs/zh/api-reference/generate-task.md)。如需一次提交多个任务，请使用[批量 API](https://apixo.ai/docs/zh/api-reference/batch-generate.md)。

## 后续步骤

> [card] [APIXO MCP 能做什么](https://apixo.ai/docs/zh/integrations/mcp)
>
> 浏览工具概述和 MCP 功能。

> [card] [故障排除](https://apixo.ai/docs/zh/integrations/mcp/troubleshooting.md)
>
> 修复 OAuth 和客户端连接问题。

> [card] [API 参考文档](https://apixo.ai/docs/zh/api-reference/generate-task.md)
>
> 了解您应用程序的 REST 任务流程。

> [card] [浏览模型。](https://apixo.ai/docs/zh/models.md)
>
> 探索模型的功能和输入。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.