Docs
搜索文档...⌘K

什么是 Ahrefs MCP?

Ahrefs MCP 可让 AI 代理安全访问 Ahrefs API,并用来自 Ahrefs 的真实数据丰富其回答。 MCP(Model Context Protocol)是一种标准,可让 AI 工具以安全、一致的方式连接到第三方 API。 在我们的场景中,它将 AI 工具与 Ahrefs 连接起来,从而实现如下功能:

连接至 Ahrefs MCP

Ahrefs 提供托管式 MCP 服务器,允许购买精简版或更高套餐的用户将其 Ahrefs 账号连接到受支持的 AI 工具。 连接完成后,你的设置会同步,并可在与你的个人或公司账号关联的所有设备上使用。

info

查看我们的 Ahrefs MCP 使用场景与提示词灵感,获取真实示例和提示技巧,帮助你充分发挥 MCP 连接的价值。

连接 URL

  • 可流式 HTTP(推荐):https://api.ahrefs.com/mcp/mcp
  • 旧版 SSE(已在许多工具中弃用):https://api.ahrefs.com/mcp/mcpSse

大多数主流 AI 工具都支持直接连接远程 MCP。 如果你遇到问题,请查看我们的分步设置指南:

API 限制与使用情况

远程 MCP 服务器适用于精简版起的付费套餐

  • 每个套餐都设有 AI 代理可访问的 每次请求的最大行数
  • 每个方案还包含**数量有限的每月 API 单位。**方案等级越高,包含的单位越多。 如有需要,企业版客户可额外购买单位加购包。
  • 当第三方应用代表你发起 API 调用时,会从你的每月额度中消耗 API 单位——其方式与直接使用 API相同。

你可以在**账户设置 → 限额与用量**中查看当前用量。

有关各方案限额的详细信息,请参阅 Ahrefs 定价页面

密钥与授权

当你将 Ahrefs MCP 连接到 AI 代理时:

  • 你将看到一个授权同意界面。
  • 批准后,该连接将显示在你的账户中,并附带一个专用的 API 密钥(标记为 MCP 范围)。
  • 工作区管理员可在 API 密钥报告 中为每个密钥设置每月 API 单位上限,以防止过度使用。

你还可以:

  • 在你的账户中手动生成 MCP 密钥,并在你的 AI 代理配置中使用它。
  • 企业版客户也可以使用其 API 密钥进行连接。

有关每次调用如何计算 API 单位的详细信息,请参阅 API 定价与单位消耗指南

使用条款

Ahrefs MCP is supported by Third Party Services (as defined in our Terms of Service) such as Claude and Microsoft Copilot. The customer agrees that the customer’s use of Third Party Services is governed solely by the terms and conditions, usage guidelines and/or other policies or agreements of Third Party Services, and the customer agrees to use Third Party Services in compliance with said terms and conditions. Ahrefs does not endorse, is not liable for, and makes no representations or warranties in relation to any and all aspects of Third Party Services.

For the full terms of use, please refer to our Terms of Service.

通过自定义脚本、桥接程序或独立的 HTTP/JSON-RPC 客户端使用外部 MCP 端点不受支持且不被允许。 外部 MCP 服务器并非通用的可编程 API。

如需以受支持的方式通过编程访问 Ahrefs 数据,请使用 Ahrefs 公共 API