OpenClaw
mcporter を使って OpenClaw に Ahrefs MCP サーバーを追加するには、次の手順に従ってください。
- mcporter をインストール
npm install -g mcporter。 または、Gateway のダッシュボードの[スキル]からインストールすることもできます。 - Ahrefs MCP サーバーを追加
mcporter config add ahrefs https://api.ahrefs.com/mcp/mcp。 - Ahrefs で MCP トークンを生成します。
- Ahrefs アカウントで API キーのレポートを開きます: https://app.ahrefs.com/account/api-keys
- 新しい MCP キーを生成します。
- トークンをコピーします。
- MCP トークンを mcporter の設定に追加します。 次を実行します:
mcporter config list。mcporterの設定 JSON ファイルへのパスを見つけて開きます。 MCP トークンをAuthorizationヘッダーに Bearer トークンとして追加します:
{
"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。 設定が正しければ、リクエストはデータを返します。