Ahrefs

Ahrefs

Ahrefs is an SEO and marketing platform offering site audits, keyword research, content analysis, and competitive insights to improve search rankings and drive organic traffic

1080VIEWS
86USERS

Install MCP Server

Paste and run this command in your terminal to set up Cursor with MCP

npx @composio/cli add cursor --app ahrefsnpx @composio/cli add cursor --app ahrefsnpx @composio/cli add cursor --app ahrefsnpx @composio/cli add cursor --app ahrefs

After running the command, restart Cursor to start using the MCP Server.

Available Tools

Backlinks Stats Retrieval

Retrieves comprehensive backlink statistics for a specified website or url using ahrefs' site explorer tool. this endpoint provides crucial data for seo analysis, including the total number of backlinks, referring domains, and potentially the domain rating (dr). it's essential for understanding a site's link profile, assessing its seo performance, and conducting competitive analysis. the tool is particularly useful when users need detailed insights into a website's backlink structure or when comparing the backlink profiles of multiple domains. note that the data returned is based on ahrefs' extensive web crawl and may not include very recent backlinks.

Batch Url Analysis

Performs a batch analysis on multiple urls or domains using ahrefs' powerful seo metrics. this endpoint allows users to retrieve key seo data for up to 100 targets simultaneously, streamlining the process of analyzing multiple websites or pages. it's particularly useful for comparing competitors, analyzing site sections, or processing large sets of urls efficiently. the endpoint offers customization options for selecting specific metrics, filtering by country, and choosing the calculation mode for volume-based metrics. while it provides comprehensive data, users should be aware of the 100-target limit per request and ensure they have sufficient api quota for large-scale analyses.

Domain Rating For Site Explorer

Retrieves the domain rating (dr) for a specified domain. domain rating is an ahrefs metric that measures the strength and authority of a website's backlink profile on a logarithmic scale from 0 to 100. this endpoint should be used when you need to quickly assess the overall seo strength of a domain based on its backlink profile. it's particularly useful for competitive analysis, link building research, and evaluating potential partnership opportunities. the tool provides a single, easy-to-understand metric but does not offer detailed information about the backlinks themselves or other seo factors. for more comprehensive backlink analysis, consider using other ahrefs endpoints that provide more detailed backlink data.

Domain Rating History

Retrieves the historical domain rating (dr) data for a specified domain over time. this endpoint is part of ahrefs' site explorer tool and provides insights into how a domain's authority has changed. it's useful for tracking the impact of seo efforts, analyzing competitors, or understanding long-term trends in domain strength. the tool returns a time series of domain rating values, allowing users to visualize changes in a domain's perceived authority according to ahrefs' metrics. it should be used when analyzing the historical performance of a domain in terms of its overall seo strength and backlink profile quality. note that this endpoint focuses solely on domain rating and does not provide other metrics like backlink counts or organic traffic data.

Explore Keywords Overview

Retrieves a comprehensive overview of keyword data from ahrefs' keywords explorer tool. this endpoint provides essential insights for seo professionals and content strategists, offering a summary of key metrics such as search volume, keyword difficulty, and potential traffic. it's ideal for users looking to get a quick snapshot of keyword performance and opportunities without diving into specific keyword details. the overview likely includes aggregate data and trends, helping users to make informed decisions about their keyword strategy. while it offers a broad perspective, it may not provide in-depth analysis of individual keywords. use this endpoint when you need a high-level view of your keyword landscape or to identify general trends in your niche.

Explore Keyword Volume By Country

Retrieves the search volume data for specified keywords across different countries using ahrefs' keywords explorer tool. this endpoint allows users to obtain accurate search volume information, helping in keyword research and content strategy planning for specific geographic regions. it's particularly useful for seo professionals and content marketers looking to optimize their targeting for different markets. the endpoint provides monthly search volume data, which can be used to gauge the popularity and potential traffic of keywords in various countries. note that the data is based on ahrefs' extensive database and may not always exactly match real-time google search volumes.

Explore Linked Domains Of A Site

Retrieves a list of external domains that the specified target website or url links to, using ahrefs' site explorer functionality. this endpoint is crucial for analyzing a website's external linking structure, which can provide insights into its content strategy, partnerships, and overall seo approach. it's particularly useful for competitive analysis, link building strategies, and identifying potential opportunities or risks in a website's outbound link profile. the endpoint returns detailed information about each linked domain, including the number of links pointing to it from the target site.

Explore Matching Terms For Keywords

The keywords explorer matching terms endpoint retrieves a list of keyword phrases that match or contain the specified keyword from ahrefs' vast database. this tool is part of ahrefs' keyword explorer functionality and is designed to assist in comprehensive keyword research for seo purposes. it returns matching terms along with their relevant metrics such as search volume, keyword difficulty, and potential traffic. this endpoint is particularly useful when expanding a seed keyword list, finding long-tail variations, or discovering closely related search terms. the tool takes into account the specified country for localized results, allowing for targeted keyword strategies in different markets. it's important to note that while this tool provides valuable keyword suggestions, it should be used in conjunction with other ahrefs features for a complete seo strategy.

Fetch All Backlinks

Retrieves a comprehensive list of backlinks for a specified website or url using ahrefs' site explorer tool. this endpoint provides detailed information about the backlink profile of the target, including the source urls, link attributes, and potentially other seo metrics like domain rating (dr) or url rating (ur) of the linking pages. it's particularly useful for analyzing a website's link-building efforts, identifying potential link-building opportunities, and assessing the overall health of a site's backlink profile. the endpoint can handle large-scale backlink data, making it suitable for in-depth seo analysis and competitive research. however, users should be aware that for websites with a substantial number of backlinks, multiple api calls or pagination may be necessary to retrieve the complete dataset.

Fetch Broken Backlinks Data

Retrieves a list of broken backlinks for a specified website using ahrefs' site explorer tool. this endpoint helps identify and analyze backlinks that are no longer functional, potentially affecting the website's seo performance. it should be used when conducting a backlink audit, cleaning up a website's link profile, or identifying opportunities for link reclamation. the tool provides detailed information about each broken backlink, including the referring page, anchor text, and the specific broken url. it's important to note that this endpoint may have limitations on the number of results returned and may require additional api calls for pagination if there are many broken backlinks.

Fetch Competitors Overview

Retrieves a comprehensive overview of competitor data in relation to keyword rankings and organic search performance. this endpoint is part of ahrefs' rank tracker feature and provides a comparative analysis of your website against multiple competitors. it offers insights into keyword positions, traffic share, and serp features across all tracked keywords. use this endpoint when you need a high-level view of your seo performance relative to your competitors. the data returned helps identify ranking opportunities, track your market share in organic search, and understand how you stack up against your competition in terms of visibility and traffic. note that this endpoint may have limitations on the number of competitors it compares against and the historical data range available.

Fetch Rank Tracker Overview

The getranktrackeroverview endpoint retrieves a comprehensive summary of keyword rankings and seo performance data from ahrefs' rank tracker tool. it provides a high-level overview of a website's ranking positions, serp features, and performance against competitors across multiple search engines and countries. this endpoint is ideal for quickly assessing the overall seo health and progress of a website without delving into specific keyword details. it should be used when you need a snapshot of your seo performance or to track changes in your overall ranking landscape over time. note that while this overview gives a broad picture, it may not include in-depth data for individual keywords or specific serp features.

Fetch Site Explorer Referring Domains

Retrieves a list of domains that have backlinks pointing to a specified target website. this endpoint is essential for conducting comprehensive backlink analysis, allowing users to identify and evaluate the sources of incoming links to their website. it provides valuable data for assessing the strength and quality of a site's backlink profile, which is crucial for seo strategies and competitor analysis. the endpoint returns detailed information about each referring domain, likely including metrics such as domain rating (dr), number of backlinks, and first seen date. it should be used when analyzing a website's backlink structure, identifying potential link-building opportunities, or auditing the quality of incoming links. note that while this endpoint provides aggregate data about referring domains, it does not offer specifics about individual backlinks or anchor texts.

Fetch Total Search Volume History

Retrieves the historical total search volume data for specified keywords using ahrefs' site explorer tool. this endpoint allows users to track and analyze the search popularity trends of specific terms over time, which is crucial for seo strategy and content planning. it provides aggregated search volume data, helping users understand seasonal trends, overall interest changes, and compare different keywords' performance. the tool is particularly useful for identifying trending topics, planning content calendars, and making data-driven decisions in digital marketing campaigns. however, it's important to note that the data represents past trends and should be used in conjunction with other metrics for comprehensive seo analysis.

Get Serp Overview

Retrieves a comprehensive overview of search engine results pages (serp) data for specified keywords or queries. this endpoint provides valuable insights into search performance, including historical data, search intent analysis, and detailed metrics for each keyword. it's particularly useful for seo professionals and digital marketers looking to optimize their content strategy and improve their website's search engine visibility. the serp overview can help identify trends, analyze competition, and inform content creation efforts based on real search data. note that while this endpoint offers a wealth of information, it may not provide real-time data and should be used for strategic planning rather than immediate tactical decisions.

Get Site Audit Projects

Retrieves a list of site audit projects associated with the authenticated ahrefs account. this endpoint allows users to access and manage their site audit projects, which are essential for identifying technical and on-page seo issues across websites. it should be used when you need an overview of all site audit projects or want to check the status of ongoing audits. the endpoint likely returns project details such as project names, urls being audited, last audit dates, and overall health scores. keep in mind that while this endpoint provides a list of projects, it does not include the detailed audit results for each project; separate api calls would be needed to fetch specific project data.

Get Site Explorer Country Metrics

Retrieves country-specific site explorer metrics for a given website from ahrefs. this endpoint provides valuable insights into a website's performance across different countries, including data on organic traffic, keyword rankings, and backlink profiles. it's particularly useful for analyzing international seo performance, identifying strong markets, and uncovering opportunities for global expansion. the tool returns a list of countries with their respective seo metrics, helping users understand how their website performs in various geographical regions. note that the specific metrics returned may vary based on the ahrefs plan and data availability for the target website.

Get Site Explorer Linked Anchors External

The site-explorer-linked-anchors-external endpoint retrieves data about external anchor texts linking to a specified target website. this tool is essential for analyzing the backlink profile of a domain, understanding the context in which other sites are linking to it, and identifying potential seo opportunities or issues. it provides insights into the most common anchor texts used in external links, which can help in assessing the website's perceived topical relevance and authority. use this endpoint when you need to analyze the external link profile of a website, conduct competitor research, or identify potential link-building opportunities. note that this tool focuses solely on external links and does not provide information about internal linking structures or other on-page seo factors.

Get Url Rating History

Retrieves the historical url rating data for a specified url over time. this endpoint provides insights into how a url's seo strength has changed, allowing users to track the impact of their seo efforts or analyze competitors' url performance. the url rating is a key ahrefs metric that reflects the strength of a url based on its backlink profile and other seo factors. use this endpoint to visualize url rating trends, identify significant changes in a url's seo performance, and correlate these changes with specific events or strategies. the data returned is particularly useful for long-term seo analysis and competitive research.

Linked Anchors Explorer

Retrieves information about internal linked anchors for a specified website using the ahrefs api. this endpoint provides data on anchor text used in internal links and the number of outgoing links associated with each anchor. it's particularly useful for analyzing a website's internal linking structure, identifying commonly used anchor texts, and optimizing internal link distribution. the endpoint is part of ahrefs' site explorer tool and helps in understanding the website's hierarchy and content relationships. each request and result incurs a cost of 1 row, which should be considered when making multiple or large-scale queries.

20 actions available