Claude Code
Add the hosted server with the Site Explorer reports group. In Claude Code, open /mcp, sign in to Ahrefs, choose your workspace and click Allow. This group exposes the Backlinks report and keeps account management tools out of this connection.
claude mcp add ahrefs "https://api.ahrefs.com/mcp/mcp?tools=site-explorer-reports" -t http