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 for complete connection instructions. You'll need:
- - An Ahrefs account (Lite plan or higher)
- To connect via the remote MCP server URL: INLINECODE0
After setup, return here for usage guidance.
Core Capabilities
Ahrefs MCP provides access to:
- 1. Site Explorer - Domain metrics, backlinks, organic traffic, referring domains
- Keywords Explorer - Search volume, keyword difficulty, SERP analysis, related keywords
- Rank Tracker - Position tracking, visibility metrics, competitor rankings
- Site Audit - Technical SEO issues, crawl data, site health
- Content Explorer - Top performing content, content gaps
For detailed capability reference, see 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:
CODEBLOCK0
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
- Query Ahrefs for each keyword's metrics (volume, difficulty, CPC)
- Present consolidated analysis
- Help prioritize based on criteria (difficulty vs. volume, intent, etc.)
See references/workflows.md for detailed workflow patterns.
Competitive Analysis
- 1. Identify target domain and competitors
- Compare domain metrics (DR, organic traffic, referring domains)
- Analyze top organic keywords
- Identify content gaps
- Recommend opportunities
Site Audit Review
- 1. Access site audit data for domain
- Identify critical issues by severity
- Prioritize fixes by impact
- Provide technical recommendations
When Ahrefs Connection is Missing
If the MCP connection is not configured:
- 1. Provide setup instructions from references/setup.md
- Share the connection URL: INLINECODE1
- Guide through the authorization process
- 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
Ahrefs MCP
通过模型上下文协议直接访问实时Ahrefs SEO数据,用于分析网站、研究关键词、跟踪排名,并做出数据驱动的SEO决策。
首次设置
如果这是您首次使用Ahrefs MCP,请阅读references/setup.md获取完整的连接说明。您需要:
- - 一个Ahrefs账户(Lite计划或更高版本)
- 通过远程MCP服务器URL连接:https://api.ahrefs.com/mcp/mcp
设置完成后,返回此处获取使用指南。
核心功能
Ahrefs MCP提供以下数据访问:
- 1. 网站分析 - 域名指标、外链、自然流量、引用域名
- 关键词分析 - 搜索量、关键词难度、SERP分析、相关关键词
- 排名跟踪 - 排名追踪、可见度指标、竞争对手排名
- 网站审计 - 技术SEO问题、爬取数据、网站健康度
- 内容分析 - 表现最佳的内容、内容缺口
详细功能参考,请参见references/capabilities.md。
使用流程
1. 理解需求
确定需要哪些SEO数据:
- - 域名/URL分析 → 网站分析
- 关键词数据 → 关键词分析
- 排名追踪 → 排名跟踪
- 技术SEO → 网站审计
- 内容创意 → 内容分析
2. 查询Ahrefs
使用自然语言请求数据。示例:
获取example.com的外链概况
最佳跑鞋的搜索量是多少?
显示以下关键词列表的难度评分:[关键词]
分析example.com的竞争对手域名
从排名跟踪项目我的网站获取当前排名
3. 分析与呈现
- - 以清晰、可操作的形式呈现数据
- 突出关键洞察和机会
- 根据发现结果建议后续步骤
- 在相关时交叉引用多个数据点
常见工作流程
关键词研究 + 交叉引用
- 1. 用户提供关键词列表
- 查询Ahrefs获取每个关键词的指标(搜索量、难度、CPC)
- 呈现综合分析结果
- 根据标准(难度与搜索量对比、搜索意图等)帮助确定优先级
详细工作流程模式请参见references/workflows.md。
竞争分析
- 1. 确定目标域名和竞争对手
- 比较域名指标(域名评级、自然流量、引用域名)
- 分析主要自然关键词
- 识别内容缺口
- 推荐机会
网站审计审查
- 1. 获取域名的网站审计数据
- 按严重程度识别关键问题
- 按影响程度确定修复优先级
- 提供技术建议
当Ahrefs连接缺失时
如果MCP连接未配置:
- 1. 提供references/setup.md中的设置说明
- 分享连接URL:https://api.ahrefs.com/mcp/mcp
- 引导完成授权过程
- 在继续前测试连接
API限制须知
- - 每个计划对每次请求的行数和月度API单位数量有限制
- 在账户设置 → 限制与用量中跟踪使用情况
- 企业用户可购买额外单位
- 设计高效查询以节省单位
最佳实践
- - 具体明确:包含目标域名、日期范围或所需的具体指标
- 批量请求:分析多个关键词/域名时,高效请求数据
- 上下文关联:交叉引用数据点以获得更深入的洞察
- 可操作输出:始终提供建议,而不仅仅是原始数据
- 执行昂贵查询前验证:在运行大数据集请求前确认范围