OpenClaw
Segui questi passaggi per aggiungere il server MCP di Ahrefs a OpenClaw usando mcporter.
- Installa mcporter
npm install -g mcporter. In alternativa, puoi installarlo dalla Dashboard di Gateway, nella sezione Competenze. - Aggiungi il server MCP di Ahrefs
mcporter config add ahrefs https://api.ahrefs.com/mcp/mcp. - Genera un Token MCP in Ahrefs.
- Apri il Report delle chiavi API nel tuo account Ahrefs: https://app.ahrefs.com/account/api-keys
- Genera una nuova chiave MCP.
- Copia il token.
- Aggiungi il tuo token MCP alla configurazione di mcporter. Esegui:
mcporter config list. Individua il percorso del file JSON di configurazione dimcportere aprilo. Aggiungi il tuo token MCP come Bearer token nell'headerAuthorization:
{
"mcpServers": {
"ahrefs": {
"baseUrl": "https://api.ahrefs.com/mcp/mcp",
"headers": {
"Authorization": "Bearer YOUR_AHREFS_MCP_TOKEN_HERE"
}
}
},
"imports": []
}
- Verifica la connessione. Esempio:
mcporter call ahrefs.keywords-explorer-volume-history country=us keyword=seo. Se la configurazione è corretta, la richiesta dovrebbe restituire dei dati.