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:
https://api.ahrefs.com/mcp/mcp
After setup, return here for usage guidance.
Core Capabilities
Ahrefs MCP provides access to:
- 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:
"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
- 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
- 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
- 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:
- Provide setup instructions from references/setup.md
- Share the connection URL:
https://api.ahrefs.com/mcp/mcp
- 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
1---
2name: ahrefs-mcp
3description: >
4 Access Ahrefs SEO data through Model Context Protocol (MCP) for comprehensive SEO analysis, keyword research, backlink analysis, site audits, and competitive intelligence. Use when users mention: (1) SEO-related queries about websites, domains, or URLs, (2) Keyword research, rankings, or search volume data, (3) Backlink analysis or link profiles, (4) Domain metrics (DR, UR, traffic), (5) Competitor analysis or site comparison, (6) Rank tracking or SERP analysis, (7) Content gap analysis, (8) Site Explorer data requests. When uncertain if a query is SEO-related, ask if Ahrefs should be used.
5metadata:
6 source: https://skillmd.com/skills/modbender/ahrefs-mcp
7---
8
9# Ahrefs MCP
10
11Access real-time Ahrefs SEO data directly through Model Context Protocol to analyze websites, research keywords, track rankings, and make data-driven SEO decisions.
12
13## First-Time Setup
14
15If this is your first time using Ahrefs MCP, read [references/setup.md](references/setup.md) for complete connection instructions. You'll need:
16- An Ahrefs account (Lite plan or higher)
17- To connect via the remote MCP server URL: `https://api.ahrefs.com/mcp/mcp`
18
19After setup, return here for usage guidance.
20
21## Core Capabilities
22
23Ahrefs MCP provides access to:
24
251. **Site Explorer** - Domain metrics, backlinks, organic traffic, referring domains
262. **Keywords Explorer** - Search volume, keyword difficulty, SERP analysis, related keywords
273. **Rank Tracker** - Position tracking, visibility metrics, competitor rankings
284. **Site Audit** - Technical SEO issues, crawl data, site health
295. **Content Explorer** - Top performing content, content gaps
30
31For detailed capability reference, see [references/capabilities.md](references/capabilities.md).
32
33## Usage Workflow
34
35### 1. Understand the Request
36
37Identify what SEO data is needed:
38- **Domain/URL analysis** → Site Explorer
39- **Keyword data** → Keywords Explorer
40- **Position tracking** → Rank Tracker
41- **Technical SEO** → Site Audit
42- **Content ideas** → Content Explorer
43
44### 2. Query Ahrefs
45
46Use natural language to request data. Examples:
47
48```
49"Get backlink profile for example.com"
50"What's the search volume for 'best running shoes'?"
51"Show me keyword difficulty scores for this list: [keywords]"
52"Analyze competitor domains for example.com"
53"Get current rankings from rank tracker project 'My Website'"
54```
55
56### 3. Analyze and Present
57
58- Present data in clear, actionable formats
59- Highlight key insights and opportunities
60- Suggest next steps based on findings
61- Cross-reference multiple data points when relevant
62
63## Common Workflows
64
65### Keyword Research + Cross-Reference
66
671. User provides keyword list
682. Query Ahrefs for each keyword's metrics (volume, difficulty, CPC)
693. Present consolidated analysis
704. Help prioritize based on criteria (difficulty vs. volume, intent, etc.)
71
72See [references/workflows.md](references/workflows.md) for detailed workflow patterns.
73
74### Competitive Analysis
75
761. Identify target domain and competitors
772. Compare domain metrics (DR, organic traffic, referring domains)
783. Analyze top organic keywords
794. Identify content gaps
805. Recommend opportunities
81
82### Site Audit Review
83
841. Access site audit data for domain
852. Identify critical issues by severity
863. Prioritize fixes by impact
874. Provide technical recommendations
88
89## When Ahrefs Connection is Missing
90
91If the MCP connection is not configured:
921. Provide setup instructions from [references/setup.md](references/setup.md)
932. Share the connection URL: `https://api.ahrefs.com/mcp/mcp`
943. Guide through the authorization process
954. Test connection before proceeding
96
97## API Limits Awareness
98
99- Each plan has row limits per request and monthly API unit caps
100- Track usage in Account settings → Limits and usage
101- Enterprise users can purchase additional units
102- Design efficient queries to conserve units
103
104## Best Practices
105
106- **Be specific**: Include target domain, date ranges, or specific metrics needed
107- **Batch requests**: When analyzing multiple keywords/domains, request data efficiently
108- **Context matters**: Cross-reference data points for deeper insights
109- **Actionable output**: Always provide recommendations, not just raw data
110- **Verify before expensive queries**: Confirm the scope before running large dataset requests