ahrefs-mcp
БесплатноБез исполняемых скриптовНе проверенAccess Ahrefs SEO data via the Ahrefs API for comprehensive SEO analysis, keyword research, backlink analysis, site audits, and competitive intelligence. Use…
от modbender★ 21 звезда на GitHubОб этом скилле
Ahrefs API
Access real-time Ahrefs SEO data directly through the Ahrefs API to analyze websites, research keywords, track rankings, and make data-driven SEO decisions.
First-Time Setup
If this is your first time using the Ahrefs API, read references/setup.md for complete setup instructions. You'll need:
- An Ahrefs account (Enterprise plan for full API access, or Lite+ for limited free test queries)
- An API key from your Ahrefs workspace
After setup, return here for usage guidance.
Core Capabilities
Ahrefs API 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 (requires pre-configured projects)
- Site Audit - Technical SEO issues, crawl data, site health (requires pre-configured projects)
- SERP Overview - Top 100 SERP results for any keyword
- Batch Analysis - Process up to 100 targets per request
- Brand Radar - Brand performance stats
For detailed capability reference, see references/capabilities.md.
Authentication
All API requests require an API key passed via the Authorization header:
Authorization: Bearer YOUR_API_KEY
Store your API key securely. Consider using environment variables:
export AHREFS_API_KEY="your-api-key-here"
Usage Workflow
1. Understand the Request
Identify what SEO data is needed:
- Domain/URL analysis → Site Explorer endpoints
- Keyword data → Keywords Explorer endpoints
- Position tracking → Rank Tracker endpoints (requires project)
- Technical SEO → Site Audit endpoints (requires project)
- SERP data → SERP Overview endpoints
2. Make API Requests
Use curl or similar tools to call the Ahrefs API. Base URL: https://api.ahrefs.com/v3
Example - Get domain overview:
curl -X GET "https://api.ahrefs.com/v3/site-explorer/domain-overview?target=example.com" \
-H "Authorization: Bearer $AHREFS_API_KEY"
Example - Keyword metrics:
curl -X GET "https://api.ahrefs.com/v3/keywords-explorer/overview?keyword=seo+tools&country=us" \
-H "Authorization: Bearer $AHREFS_API_KEY"
3. Process and Present Results
- Parse JSON responses
- Extract relevant metrics
- Present data in clear, actionable formats
- Highlight key insights and opportunities
- Suggest next steps based on findings
Common Workflows
Keyword Research + Cross-Reference
- User provides keyword list
- Make batch API calls to Keywords Explorer
- Parse and consolidate metrics (volume, difficulty, CPC)
- Present analysis with prioritization recommendations
See references/workflows.md for detailed workflow patterns with example API calls.
Competitive Analysis
- Identify target domain and competitors
- Call Site Explorer for each domain
- Compare metrics (DR, organic traffic, referring domains)
- Analyze top organic keywords
- Identify content gaps
- Provide actionable recommendations
Site Audit Review
Note: Requires pre-configured Site Audit project in Ahrefs web interface.
- Call Site Audit API for project data
- Identify critical issues by severity
- Prioritize fixes by impact
- Provide technical recommendations
API Limits & Best Practices
Rate Limiting
- 60 requests per minute by default
- API returns HTTP 429 if limit exceeded
- Implement exponential backoff for retries
API Unit Consumption
- Each request consumes API units from your monthly allowance
- Cost depends on the number of rows returned (minimum 50 units per request)
- Track usage in Account settings → Limits and usage
- Enterprise plans include units; additional units can be purchased
Optimization Tips
- Batch requests when possible (up to 100 targets)
- Limit result rows using
limitparameter - Select specific columns with
selectparameter to reduce costs - Cache results when appropriate
- Use date ranges to limit historical data
Plan-Specific Access
- Enterprise: Full API access
- Lite/Standard/Advanced: Limited free test queries (check your plan for specifics)
Error Handling
Common HTTP status codes:
200 OK- Success400 Bad Request- Invalid parameters401 Unauthorized- Invalid or missing API key403 Forbidden- Insufficient permissions or plan limits429 Too Many Requests- Rate limit exceeded500 Internal Server Error- Ahrefs server issue
Always check response status and handle errors gracefully.
When API Key is Missing
If the API key is not configured:
- Provide setup instructions from references/setup.md
- Guide th
Установить ahrefs-mcp в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ahrefs-mcp?
Access Ahrefs SEO data via the Ahrefs API 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.
Как установить скилл ahrefs-mcp?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ahrefs-mcp запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic