OpenClaw
Follow these steps to add the Ahrefs MCP server to OpenClaw using mcporter.
- Install mcporter
npm install -g mcporter. Alternatively, you can install it from the Gateway dashboard under Skills. - Add the Ahrefs MCP server
mcporter config add ahrefs https://api.ahrefs.com/mcp/mcp. - Generate an MCP token in Ahrefs.
- Open the API keys report in your Ahrefs account: https://app.ahrefs.com/account/api-keys
- Generate a new MCP key.
- Copy the token.
- Add your MCP token to the mcporter config. Run:
mcporter config list. Locate the path to themcporterconfig JSON file and open it. Add your MCP token as a Bearer token in theAuthorizationheader:
{
"mcpServers": {
"ahrefs": {
"baseUrl": "https://api.ahrefs.com/mcp/mcp",
"headers": {
"Authorization": "Bearer YOUR_AHREFS_MCP_TOKEN_HERE"
}
}
},
"imports": []
}
- Test the connection. Example:
mcporter call ahrefs.keywords-explorer-volume-history country=us keyword=seo. If the setup is correct, the request should return data.