ahrefs
БесплатноБез исполняемых скриптовНе проверенQuery Ahrefs SEO data via their MCP server — keyword research, site explorer, SERP analysis, competitor research, backlink analysis, and Brand Radar AI…
от joelhooks★ 69 звёзд на GitHubОб этом скилле
Ahrefs SEO Tools
Query Ahrefs via their remote MCP server (Streamable HTTP transport). Joel has a Standard plan ($249/mo).
Connection
Endpoint: https://api.ahrefs.com/mcp/mcp
Auth: Bearer token via agent-secrets lease ahrefs_api_key
Transport: Streamable HTTP (JSON-RPC over POST, NOT SSE)
Config: ~/.pi/agent/mcp.json under ahrefs key
Raw curl pattern (when MCP bridge isn't available)
AHREFS_KEY=$(agent-secrets lease ahrefs_api_key --ttl 4h --json 2>&1 | python3 -c "import sys,json; print(json.load(sys.stdin)['result']['value'])")
curl -s -X POST "https://api.ahrefs.com/mcp/mcp" \
-H "Authorization: Bearer $AHREFS_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"jsonrpc":"2.0","id":1,"method":"tools/call",
"params":{"name":"TOOL_NAME","arguments":{...}}
}'
MCP initialization handshake (required once per session)
{"jsonrpc":"2.0","id":0,"method":"initialize","params":{
"protocolVersion":"2025-03-26",
"capabilities":{},
"clientInfo":{"name":"pi","version":"1.0"}
}}
Critical: Use doc tool first
Before calling any data tool for the first time, call the doc tool to get the real input schema:
{"name":"doc","arguments":{"tool":"keywords-explorer-overview"}}
This returns the full schema with field names, types, filter syntax, and output columns. The tool list schemas are summaries — doc gives the real contract.
API Units
Every call costs API units. The response includes cost info:
{"apiUsageCosts":{"rows":10,"units-cost-row":21,"units-cost-total":210}}
- Monetary values (CPC, traffic_value, etc.) are in USD cents, not dollars. Divide by 100.
difficultycosts 10 extra units per row when selected- Standard plan has monthly unit limits — check with
subscription-info-limits-and-usage
Tool Categories
Keywords Explorer (keyword research)
| Tool | Use for | Key required params |
|---|---|---|
keywords-explorer-overview |
Volume, KD, CPC for specific keywords | select, country, keywords (array) |
keywords-explorer-matching-terms |
Find keyword ideas matching seed terms | select, country, keywords, limit, order_by |
keywords-explorer-related-terms |
"Also rank for" and "also talk about" | select, country, keywords |
keywords-explorer-search-suggestions |
Autocomplete suggestions with metrics | select, country, keywords |
keywords-explorer-volume-history |
Historical volume trends | country, keyword (singular) |
keywords-explorer-volume-by-country |
Volume broken down by country | keyword (singular) |
Common select fields: keyword, volume, difficulty, cpc, traffic_potential, global_volume, parent_topic, intents, clicks, cps, serp_features
Gotcha: keywords-explorer-overview requires keywords as an array BUT returns empty results for broad terms — it only returns data for exact keyword matches in their DB. Use matching-terms or search-suggestions for discovery.
Site Explorer (domain/URL analysis)
| Tool | Use for | Key required params |
|---|---|---|
site-explorer-metrics |
DR, traffic, keywords count | target, date |
site-explorer-organic-keywords |
What keywords a site ranks for | select, target, date, country |
site-explorer-organic-competitors |
Who competes in organic search | select, target, country, date |
site-explorer-top-pages |
Best pages by traffic | select, target, date |
site-explorer-all-backlinks |
Inbound link details | select, target |
site-explorer-referring-domains |
Domains linking to target | select, target |
site-explorer-domain-rating |
DR score | target, date |
site-explorer-domain-rating-history |
DR over time | target, date_from |
site-explorer-backlinks-stats |
Backlink summary stats | target, date |
site-explorer-anchors |
Anchor text analysis | select, target |
site-explorer-broken-backlinks |
Broken inbound links | select, target |
site-explorer-metrics-by-country |
Traffic by country | target, date |
site-explorer-metrics-history |
Historical traffic/keywords | target, date_from |
target = domain (example.com), URL (https://example.com/page), or path (example.com/blog/*)
mode = exact | domain | subdomains | prefix
date = YYYY-MM-DD (use recent date like today)
SERP Analysis
| Tool | Use for | Key required params |
|---|---|---|
serp-overview |
Top results for a keyword | select, country, keyword |
Batch Analysis
| Tool | Use for | Key required params |
|---|---|---|
batch-analysis |
Analyze multiple URLs/domains at once | select, targets (array) |
Rank Tracker (requires project setup in Ahrefs UI)
Tools: `rank-tracke
Установить ahrefs в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл ahrefs?
Query Ahrefs SEO data via their MCP server — keyword research, site explorer, SERP analysis, competitor research, backlink analysis, and Brand Radar AI visibility. Use when researching keywords, analyzing competitors, checking backlinks, auditing sites, or any SEO data task. Triggers on 'keyword research', 'check backlinks', 'competitor analysis', 'ahrefs', 'search volume', 'keyword difficulty', 'domain rating', 'SERP analysis', 'SEO data', 'brand radar', or any request needing search engine optimization data.
Как установить скилл ahrefs?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ahrefs запускает скрипты?
Нет, скилл состоит только из инструкций (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