Guide · Agent skill
How to use the Ahrefs SEO Data Analyst agent skill (seo-ahrefs)
Updated · written with AI from the project's own documentation and checked against our catalogue data
The seo-ahrefs skill gives an AI agent a way to pull live figures from Ahrefs, a paid SEO data service, such as a site's rating, referring domains, backlink profile, organic keywords and content search results. It is aimed at SEO specialists with an existing Ahrefs subscription, agencies auditing client backlinks, and developers building reporting workflows on the claude-seo toolkit. By the end of this guide you will know what the skill does, how to install it, how to phrase requests so the agent triggers it, and what safety and cost points to check first.
Quick start
- 1Install prerequisites. Run extensions/ahrefs/install.sh on Linux or macOS, or install.ps1 on Windows, and confirm Node.js 18 or newer is on your PATH.
- 2Get an Ahrefs API token. Create or sign in to a paid Ahrefs account at https://ahrefs.com/api and copy your API token.
- 3Add the skill. Download the ZIP from our page and unzip it into ~/.claude/skills/ or a project's .claude/skills/ folder, or upload it under Settings → Capabilities → Skills in the Claude apps.
- 4Confirm the connection. Ask the agent a simple Ahrefs question. If it says the extension is not installed, re-run the install script.
- 5Make a natural request. Ask for a specific metric on a specific URL, such as referring domains for example.com.
- 6Estimate cost before batches. For 50 or more URLs, run the cost-estimation script and review the estimate before continuing.
- 7Check cited sources. Confirm each figure is labelled as Ahrefs data and note any Moz discrepancies the agent reports.
What is an agent skill and what does seo-ahrefs make the agent do?
An agent skill is a folder containing a SKILL.md file that tells an AI agent when and how to perform a specific task. This one is named seo-ahrefs and is an Ahrefs API analyst extension. Its SKILL.md file says it reads referring domains, backlinks, organic keywords and content explorer data through the @ahrefs/mcp@0.0.11 server.
Once it is working, the agent can answer requests such as checking a domain's metrics or listing its top referring domains, and it cites Ahrefs as the source for each number. When Ahrefs and Moz disagree on the same metric, the skill tells the agent to trust Ahrefs and note the discrepancy in the report. For multi-source comparisons across Moz, Bing, Common Crawl and Ahrefs, it hands the work to the companion seo-backlinks skill.
- Metrics: domain or URL rating, referring domain count, organic traffic estimate
- Backlinks: top referring domains, anchor distribution, follow/nofollow ratio
- Organic: organic keywords, ranking distribution, traffic by country
- Content: Content Explorer top results, social shares, referring domains
Install the seo-ahrefs skill
Before anything else, run the install script for your system from the extensions/ahrefs folder: install.sh on Linux or macOS, or install.ps1 on Windows. The script installs the @ahrefs/mcp@0.0.11 server. Node.js 18 or newer must be on your PATH for the server to run.
To add the skill itself, download the ZIP from our page and unzip it into ~/.claude/skills/ for personal use, or into a project's .claude/skills/ folder to share it with one project. Alternatively, in the Claude apps go to Settings → Capabilities → Skills and upload the ZIP there.
- Run extensions/ahrefs/install.sh (Linux/macOS) or install.ps1 (Windows)
- Make sure Node.js 18+ is on your PATH
- Unzip the skill into ~/.claude/skills/ or your project's .claude/skills/
- Or upload the ZIP under Settings → Capabilities → Skills in the Claude apps
Add your Ahrefs API token and check the connection
You need an Ahrefs API token from https://ahrefs.com/api, which requires a paid Ahrefs account. The skill checks before every call that an Ahrefs MCP tool is available in the session. If none is, the agent will tell you the extension is not installed and repeat the install command.
If you see that message, re-run the install script and confirm the skill is loaded before retrying your request.
Trigger the skill with natural requests
You can ask in plain language, and the agent will use the skill when the request is about Ahrefs data. It also understands the four routed commands from the SKILL.md file. Being specific about the URL or topic helps the agent pick the right data set.
Each metric in the answer should carry the label "Ahrefs (live, confidence 1.00)", so you can see where every number came from.
- "Use Ahrefs to show the referring domains for example.com"
- "What is the Ahrefs rating and organic traffic estimate for example.com?"
- "/seo ahrefs organic example.com" for organic keywords and traffic by country
- "/seo ahrefs content remote work tools" for Content Explorer results
/seo ahrefs backlinks <url>Check cost before running large batches
Ahrefs API usage is metered per unit. Before running a batch of 50 or more URLs, the skill instructs the agent to estimate cost with the cost-estimation script in the claude-seo toolkit's scripts folder, surface that estimate, and log actual cost after each call.
Run a small test first so you can see how many units a single URL uses before committing to a large list.
- Estimate cost first with the dataforseo_costs.py script in the claude-seo scripts folder
- Review the estimate before the agent starts the batch
- Track actual cost after each call
"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run dataforseo_costs.pySafety notes: scripts, network and untrusted content
This skill is not sandboxed. Installing it runs scripts on your machine, and queries go over the network to Ahrefs. Review the install script before running it.
The skill also treats fetched pages, SERP results, API responses and third-party files as untrusted data. If any of that content tells the agent to run a command, install something or change a setting, the agent is meant to report it as a finding rather than obey it.
- Installing runs scripts on your machine
- Queries are sent to Ahrefs over the network
- Fetched content is data, not instructions
Tips for getting reliable results
Keep the Ahrefs token private and use one that matches your subscription. For multi-source work, ask the agent to use seo-backlinks rather than relying on Ahrefs alone. For SERP-feature analysis where Ahrefs and DataForSEO overlap, the skill prefers DataForSEO for live SERP data.
For toxic link assessment, the skill combines Ahrefs backlink quality signals with seo-backlinks crawler signals, so ask for both if you need that view.
- Ask for one URL at a time when you are learning the output format
- Use seo-backlinks for multi-source confidence weighting
- Expect SERP-feature questions to route to DataForSEO
What people use it for
- Auditing a client's referring domains and anchor text distribution
- Checking a competitor's organic keywords and traffic by country
- Finding top-performing content and referring domains for a topic in Content Explorer
- Producing a backlink report that cites Ahrefs as the source for each figure
Frequently asked questions
Is the Ahrefs SEO Data Analyst skill free?
The skill itself is MIT licensed. However, it needs an Ahrefs API token from a paid Ahrefs account, and Ahrefs API usage is metered per unit, so you pay for the data you pull.
What do I need before I can use seo-ahrefs?
You need an Ahrefs API token from https://ahrefs.com/api, Node.js 18 or newer on your PATH, and the install script run from extensions/ahrefs. The script installs the @ahrefs/mcp@0.0.11 server that the skill depends on.
How do I install the seo-ahrefs skill?
Download the ZIP from our page and unzip it into ~/.claude/skills/ or a project's .claude/skills/ folder. You can also upload the ZIP in the Claude apps under Settings → Capabilities → Skills.
Why does the agent say the Ahrefs extension is not installed?
The skill checks that an Ahrefs MCP tool is available before calling Ahrefs. If none is, the MCP server is not connected, so re-run extensions/ahrefs/install.sh or install.ps1 and try again.
Is it safe to install seo-ahrefs?
Not in the sense of a sandboxed tool. Installing runs scripts on your machine and queries are sent to Ahrefs over the network. Read the install script first and treat fetched content as data, not instructions.
Should I use seo-ahrefs or seo-backlinks?
Use seo-ahrefs when you want live Ahrefs figures. For comparisons across Moz, Bing, Common Crawl and Ahrefs, the skill hands off to seo-backlinks, which weights multiple sources.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
Choose seo-ahrefs if you already pay for Ahrefs and want an AI agent to pull and cite its live figures for backlink and keyword reports. Skip it if you lack an Ahrefs API token, since the skill cannot work without one, or if you need a fully sandboxed tool, because it runs scripts and sends queries over the network.
Download the skill