ahrefs-mcp

TotalClaw 作者 totalclaw

通过模型上下文协议 (MCP) 访问 Ahrefs SEO 数据,以进行全面的 SEO 分析、关键词研究、反向链接分析、网站审核和竞争情报。当用户提及以下内容时使用:(1) 有关网站、域或 URL 的 SEO 相关查询,(2) 关键字研究、排名或搜索量数据,(3) 反向链接分析或链接配置文件,(4) 域指标(DR、UR、流量),(5) 竞争对手分析或网站比较,(6) 排名跟踪或 SERP 分析,(7) 内容差距分析,(8) 网站浏览器数据请求。当不确定查询是否与 SEO 相关时,询问是否应该使用 Ahrefs。

安装 / 下载方式

TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~jonathan-sokol-ahrefs-mcp
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~jonathan-sokol-ahrefs-mcp/file -o jonathan-sokol-ahrefs-mcp.md
## 概述(中文)

通过模型上下文协议 (MCP) 访问 Ahrefs SEO 数据,以进行全面的 SEO 分析、关键词研究、反向链接分析、网站审核和竞争情报。当用户提及以下内容时使用:(1) 有关网站、域或 URL 的 SEO 相关查询,(2) 关键字研究、排名或搜索量数据,(3) 反向链接分析或链接配置文件,(4) 域指标(DR、UR、流量),(5) 竞争对手分析或网站比较,(6) 排名跟踪或 SERP 分析,(7) 内容差距分析,(8) 网站浏览器数据请求。当不确定查询是否与 SEO 相关时,询问是否应该使用 Ahrefs。

## 原文

# Ahrefs MCP

Access real-time Ahrefs SEO data directly through Model Context Protocol to analyze websites, research keywords, track rankings, and make data-driven SEO decisions.

## First-Time Setup

If this is your first time using Ahrefs MCP, read [references/setup.md](references/setup.md) for complete connection instructions. You'll need:
- An Ahrefs account (Lite plan or higher)
- To connect via the remote MCP server URL: `https://api.ahrefs.com/mcp/mcp`

After setup, return here for usage guidance.

## Core Capabilities

Ahrefs MCP provides access to:

1. **Site Explorer** - Domain metrics, backlinks, organic traffic, referring domains
2. **Keywords Explorer** - Search volume, keyword difficulty, SERP analysis, related keywords
3. **Rank Tracker** - Position tracking, visibility metrics, competitor rankings
4. **Site Audit** - Technical SEO issues, crawl data, site health
5. **Content Explorer** - Top performing content, content gaps

For detailed capability reference, see [references/capabilities.md](references/capabilities.md).

## Usage Workflow

### 1. Understand the Request

Identify what SEO data is needed:
- **Domain/URL analysis** → Site Explorer
- **Keyword data** → Keywords Explorer
- **Position tracking** → Rank Tracker
- **Technical SEO** → Site Audit
- **Content ideas** → Content Explorer

### 2. Query Ahrefs

Use natural language to request data. Examples:

```
"Get backlink profile for example.com"
"What's the search volume for 'best running shoes'?"
"Show me keyword difficulty scores for this list: [keywords]"
"Analyze competitor domains for example.com"
"Get current rankings from rank tracker project 'My Website'"
```

### 3. Analyze and Present

- Present data in clear, actionable formats
- Highlight key insights and opportunities
- Suggest next steps based on findings
- Cross-reference multiple data points when relevant

## Common Workflows

### Keyword Research + Cross-Reference

1. User provides keyword list
2. Query Ahrefs for each keyword's metrics (volume, difficulty, CPC)
3. Present consolidated analysis
4. Help prioritize based on criteria (difficulty vs. volume, intent, etc.)

See [references/workflows.md](references/workflows.md) for detailed workflow patterns.

### Competitive Analysis

1. Identify target domain and competitors
2. Compare domain metrics (DR, organic traffic, referring domains)
3. Analyze top organic keywords
4. Identify content gaps
5. Recommend opportunities

### Site Audit Review

1. Access site audit data for domain
2. Identify critical issues by severity
3. Prioritize fixes by impact
4. Provide technical recommendations

## When Ahrefs Connection is Missing

If the MCP connection is not configured:
1. Provide setup instructions from [references/setup.md](references/setup.md)
2. Share the connection URL: `https://api.ahrefs.com/mcp/mcp`
3. Guide through the authorization process
4. Test connection before proceeding

## API Limits Awareness

- Each plan has row limits per request and monthly API unit caps
- Track usage in Account settings → Limits and usage
- Enterprise users can purchase additional units
- Design efficient queries to conserve units

## Best Practices

- **Be specific**: Include target domain, date ranges, or specific metrics needed
- **Batch requests**: When analyzing multiple keywords/domains, request data efficiently
- **Context matters**: Cross-reference data points for deeper insights
- **Actionable output**: Always provide recommendations, not just raw data
- **Verify before expensive queries**: Confirm the scope before running large dataset requests