# Ahrefs

> MCP tool documentation for migration planner skill

## Available Commands

- `site-explorer-metrics` - Get current organic metrics (traffic, keywords) for a domain
- `site-explorer-metrics-history` - Get historical organic metrics for pre/post comparison
- `site-explorer-top-pages` - Get top performing pages by traffic for baseline
- `site-explorer-pages-by-traffic` - Get pages ranked by organic traffic for risk scoring
- `site-explorer-organic-keywords` - Get keyword rankings per page
- `site-explorer-referring-domains` - Get referring domain list for risk scoring
- `site-explorer-backlinks-stats` - Get backlink overview for migration impact assessment

## Configuration

- Requires Ahrefs MCP server configured in Claude Desktop
- API access via `mcp__ahrefs__*` tool prefix

## Examples

```
# Get site baseline metrics
mcp__ahrefs__site-explorer-metrics(target="example.com")

# Get top pages for risk scoring
mcp__ahrefs__site-explorer-top-pages(target="example.com", limit=500)

# Get traffic history for pre/post comparison
mcp__ahrefs__site-explorer-metrics-history(target="example.com", date_from="2025-01-01")

# Get backlink stats for a specific page
mcp__ahrefs__site-explorer-backlinks-stats(target="https://example.com/important-page")

# Get keyword rankings
mcp__ahrefs__site-explorer-organic-keywords(target="example.com", limit=200)
```
