Ahrefs Automation
Automates SEO research with Ahrefs. Analyzes links, keywords, and metrics to improve your website.
What it does
This tool automates SEO research using Ahrefs. It can analyze backlinks, research keywords, track domain metric history, audit search rankings, and analyze multiple URLs at once.
When to use it
- ✓To understand who links to a website.
- ✓To find new keywords for your content.
- ✓To compare the SEO performance of multiple websites.
Example of what to ask your AI
“Show me the dofollow backlinks for example.com with anchor text and referring domain DR.”
Want more? Open the sections below.
How to use
The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.
Skill link
Ready-to-paste message
How it works
You connect your Ahrefs account. Then, you ask the tool to analyze a site, research keywords, or check metrics, providing the desired domain and country.
Installation
Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.
In the terminal (Claude Code, Codex, Cursor), in your project folder:
npx skills add ComposioHQ/awesome-claude-skills --skill Ahrefs AutomationOr download just the file:
curl -L https://raw.githubusercontent.com/ComposioHQ/awesome-claude-skills/master/composio-skills/ahrefs-automation/SKILL.md -o SKILL.mdTechnical content (original SKILL.md)
Original text by the author, straight from GitHub.
Ahrefs Automation
Run Ahrefs SEO analytics directly from Claude Code. Analyze backlink profiles, research keywords, track domain authority over time, audit organic keyword rankings, and batch-analyze multiple URLs without leaving your terminal.
Toolkit docs: composio.dev/toolkits/ahrefs
Setup
- Add the Composio MCP server to your configuration:
https://rube.app/mcp - Connect your Ahrefs account when prompted. The agent will provide an authentication link.
- Most tools require a
target(domain or URL) and acountrycode (ISO 3166-1 alpha-2). Some also require adateinYYYY-MM-DDformat.
Core Workflows
1. Site Explorer Metrics
Retrieve comprehensive SEO metrics for a domain including backlink counts, referring domains, organic keyword rankings, and traffic estimates.
Tool: AHREFS_RETRIEVE_SITE_EXPLORER_METRICS
Key parameters:
target(required) -- domain or URL to analyzedate(required) -- metrics date inYYYY-MM-DDformatcountry-- ISO country code (e.g.,us,gb,de)mode-- scope:exact,prefix,domain, orsubdomains(default)protocol--both,http, orhttpsvolume_mode--monthlyoraverage
Example prompt: "Get Ahrefs site metrics for example.com as of today in the US"
2. Historical Metrics Tracking
Track how a domain's SEO metrics have changed over time for trend analysis and competitive benchmarking.
Tools: AHREFS_RETRIEVE_SITE_EXPLORER_METRICS_HISTORY, AHREFS_DOMAIN_RATING_HISTORY
For full metrics history:
target(required) -- domain to trackdate_from(required) -- start date inYYYY-MM-DDdate_to-- end datehistory_grouping--daily,weekly, ormonthly(default)select-- columns likedate,org_cost,org_traffic,paid_cost,paid_traffic
For Domain Rating (DR) history:
target(required),date_from(required),date_to,history_grouping
Example prompt: "Show me the monthly Domain Rating history for example.com over the last year"
3. Backlink Analysis
Retrieve a comprehensive list of backlinks including source URLs, anchor text, link attributes, and referring domain metrics.
Tool: AHREFS_FETCH_ALL_BACKLINKS
Key parameters:
target(required) -- domain or URLselect(required) -- comma-separated columns (e.g.,url_from,url_to,anchor,domain_rating_source,first_seen_link)limit(default 1000) -- number of resultsaggregation--similar_links(default),1_per_domain, orallmode--exact,prefix,domain, orsubdomainshistory--live,since:YYYY-MM-DD, orall_timewhere-- rich filter expressions on columns likeis_dofollow,domain_rating_source,anchor
Example prompt: "Get the top 100 dofollow backlinks to example.com with anchor text and referring DR"
4. Keyword Research
Get keyword overview metrics and discover matching keyword variations for content strategy.
Tools: AHREFS_EXPLORE_KEYWORDS_OVERVIEW, AHREFS_EXPLORE_MATCHING_TERMS_FOR_KEYWORDS
For keyword overview:
select(required) -- columns to return (volume, difficulty, CPC, etc.)country(required) -- ISO country codekeywords-- comma-separated keyword listwhere-- filter by volume, difficulty, intent, etc.
For matching terms:
select(required) andcountry(required)keywords-- comma-separated seed keywordsmatch_mode--terms(any order) orphrase(exact order)terms--allorquestions(question-format keywords only)
Example prompt: "Find keyword variations for 'project management' in the US with volume and difficulty"
5. Organic Keywords Audit
See which keywords a domain ranks for in organic search, with position tracking and historical comparison.
Tool: AHREFS_RETRIEVE_ORGANIC_KEYWORDS
Key parameters:
target(required) -- domain or URLcountry(required) -- ISO country codedate(required) -- date inYYYY-MM-DDselect-- columns to return (keyword, position, volume, traffic, URL, etc.)date_compared-- compare against a previous datewhere-- rich filter expressions onkeyword,volume,best_position, intent flags, etc.limit(default 1000),order_by
Example prompt: "Show all organic keywords where example.com ranks in the top 10 in the US"
6. Batch URL Analysis
…
FAQ
Do I need an Ahrefs account?
Yes, you need an Ahrefs account and must connect it to use this tool.
What are 'SEO metrics'?
These are indicators that measure a website's performance in search engines, such as backlink count, estimated traffic, and domain authority.
How many sites can I analyze at once?
You can analyze up to 100 URLs or domains at once in the batch analysis feature.
Details
Original description by the author
Automate SEO research with Ahrefs -- analyze backlink profiles, research keywords, track domain metrics history, audit organic rankings, and perform batch URL analysis through the Composio Ahrefs integration.
Popularity
- GitHub stars
- 77k
- Ranking position
- #879
- License
- —
- Updated
- 9/18/2026
Comments
- …
More skills from this repository
artifacts-builder
Helps your agent build complex user interfaces. It uses modern technologies to create rich, interactive web pages.
ComposioHQ/awesome-claude-skills
brand-guidelines
Helps your agent apply official brand colors and fonts to materials. It's useful for maintaining visual identity in any piece that needs to look like the company's.
ComposioHQ/awesome-claude-skills
canvas-design
Lets your agent create original visual art in .png and .pdf. Use it when the user asks to create a poster, art, or other static design.
ComposioHQ/awesome-claude-skills
changelog-generator
Helps your agent create user-facing release notes from code commits. It transforms technical information into easy-to-understand text.
ComposioHQ/awesome-claude-skills
Similar skills
competitive-platform-analysis
Helps understand your competitors. It identifies, categorizes, and filters competing companies before any deeper analysis.
affaan-m/ECC
competitive-report-structure
Creates comprehensive competitor reports. It combines information to show the overall landscape, recommendations, and helps align the team.
affaan-m/ECC
lead-intelligence
Helps your agent find and contact important people. It analyzes leads, suggests approaches, and manages outreach via email and social media.
affaan-m/ECC