Docs
搜索文档...⌘K

OpenClaw

按照以下步骤,使用 mcporter 将 Ahrefs MCP 服务器添加到 OpenClaw。

  • 安装 mcporter npm install -g mcporter。 或者,你也可以在 Gateway 的 Dashboard 中的
  • 添加 Ahrefs MCP 服务器 mcporter config add ahrefs https://api.ahrefs.com/mcp/mcp
  • 在 Ahrefs 中生成 MCP 令牌。
  • 将你的 MCP 令牌添加到 mcporter 配置中。 运行:mcporter config list。 找到 mcporter 配置 JSON 文件的路径并打开它。 在 Authorization 请求头中,以 Bearer 令牌的形式添加你的 MCP 令牌:
{
  "mcpServers": {
    "ahrefs": {
      "baseUrl": "https://api.ahrefs.com/mcp/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_AHREFS_MCP_TOKEN_HERE"
      }
    }
  },
  "imports": []
}
  • 测试连接。 示例:mcporter call ahrefs.keywords-explorer-volume-history country=us keyword=seo。 如果设置正确,请求应会返回数据。