We're live in beta. Earn up to 12,000 credits by signing up today. Get started

Ahrefs MCP
for AI agents

FloConnector is a hosted Ahrefs MCP server. Securely connect Claude, ChatGPT and other AI clients to Ahrefs. Ask in plain English; it runs the 46 tools for you, behind one endpoint, with you deciding what it can touch.

Single connection. One Ahrefs organisation per workspace. Connect another in a separate workspace.

Tools

Everything your AI can do in Ahrefs

46 tools your agent gets the moment Ahrefs is connected.

46 tools

  • backlinks_stats_retrieval read

    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 read

    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 read

    Domain rating for site explorer

    Retrieves Ahrefs Domain Rating and Ahrefs Rank for a specified domain or URL on a requested date. Domain Rating measures the strength of a website's backlink profile on a logarithmic scale from 0 to 100.

  • domain_rating_history read

    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 read

    Explore keywords overview

    Retrieves keyword-level overview metrics from Ahrefs' Keywords Explorer for specified keywords or an existing keyword list in a country. Available metrics include search volume, keyword difficulty and traffic potential.

  • explore_keyword_volume_by_country read

    Explore keyword volume by country

    Retrieves monthly search volume data across countries for a specified keyword using Ahrefs' Keywords Explorer. The data can help compare keyword popularity across geographic markets.

  • explore_linked_domains_of_a_site read

    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 read

    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 read

    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 read

    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 read

    Fetch competitors overview

    Retrieves a Rank Tracker competitor overview for a project, including comparative keyword ranking and organic search performance data. Requires a connected Ahrefs account; managed Ahrefs credentials cannot access this action.

  • fetch_rank_tracker_overview read

    Fetch rank tracker overview

    Retrieves an Ahrefs Rank Tracker overview for a project, date and device, with ranking and search-performance metrics. Requires a connected Ahrefs account.

  • fetch_site_explorer_referring_domains read

    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 read

    Fetch total search volume history

    Retrieves historical total search volume for keywords associated with a target domain or URL using Ahrefs Site Explorer. The history can be grouped over time and scoped by country and top organic positions.

  • get_content_helper_topics read

    Get content helper topics

    Retrieve topics covered by top-ranking pages for a keyword. The analysis runs on demand from Ahrefs' collected SERP data and may take several seconds on the first request; repeated keyword and country requests can use cached results. When target_url is provided, Ahrefs fetches that page live.

  • get_domain_rating_free read

    Get domain rating free

    Retrieve the free Ahrefs Domain Rating for a domain or URL. Use of the returned data is subject to the license URL in the response and requires attribution as "Domain Rating by Ahrefs" with a link to https://ahrefs.com/.

  • get_domain_rating_top_domains read

    Get domain rating top domains

    Retrieves domains ordered by Ahrefs Domain Rating. Use this action to inspect a ranked range of top domains. The endpoint can return up to 250,000 rows.

  • get_serp_overview read

    Get serp overview

    Retrieves a SERP overview for one keyword in a specified country, optionally at a historical date. Results can include ranking positions, URLs and associated page metrics.

  • get_site_audit_projects read

    Get site audit projects

    Lists Site Audit projects associated with the authenticated Ahrefs account, with project and crawl status details. Requires a connected Ahrefs account.

  • get_site_explorer_ai_responses_count read

    Get site explorer AI responses count

    Retrieve AI response citation and page counts for a site.

  • get_site_explorer_country_metrics read

    Get site explorer country metrics

    Retrieves country-specific Site Explorer metrics for a target website or URL, including organic traffic and keyword metrics. The validated response contains a country and its metrics.

  • get_site_explorer_crawled_pages read

    Get site explorer crawled pages

    Retrieve crawled pages and crawl metadata for a target URL.

  • get_site_explorer_linked_anchors_external read

    Get site explorer linked anchors external

    Retrieves anchor text data for external links going out from a target website using Ahrefs Site Explorer. Use it to analyze the anchors and external domains linked from the target.

  • get_url_rating_history read

    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 read

    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.

  • list_best_by_external_links read

    List best by external links

    Retrieves pages from a specified website using Ahrefs' Site Explorer best-by-external-links report. The report includes external backlink metrics and can also include page information such as internal link counts.

  • pages_by_traffic_overview read

    Pages by traffic overview

    Retrieves a list of pages from a specified website, ordered by their estimated organic search traffic. This endpoint is part of the Ahrefs Site Explorer tool and provides valuable insights into which pages on a website are performing well in terms of attracting organic search visitors. It's useful for identifying top-performing content, understanding traffic distribution across a site, and prioritizing optimization efforts. The endpoint returns data such as page URLs, estimated traffic, and other relevant metrics. It's important to note that the traffic data is an estimation based on Ahrefs' algorithms and may not exactly match actual analytics data. This tool is particularly useful for SEO professionals, content strategists, and website owners looking to analyze and improve their site's organic search performance.

  • post_domain_rating_free read

    Post Domain Rating Free

    Retrieve Domain Rating scores for up to 1,000 target URLs. Use of the returned data is subject to the license URL in the response and requires attribution as "Domain Rating by Ahrefs" with a link to https://ahrefs.com/.

  • retrieve_anchor_data read

    Retrieve anchor data

    Retrieves anchor text data for a specified website or URL using Ahrefs' Site Explorer tool. This endpoint provides valuable insights into the anchor text distribution of backlinks pointing to the target URL or domain. It helps SEO professionals analyze the quality and diversity of anchor texts, which can influence search engine rankings. Use this endpoint when you need to understand how other websites are linking to a specific page or domain, and to identify potential opportunities for link building or anchor text optimization. The tool does not provide information about the linking pages themselves, focusing solely on the anchor text data.

  • retrieve_best_by_internal_links read

    Retrieve best by internal links

    Retrieves pages ranked by internal links for a specified website using Ahrefs' Site Explorer. The report can include page details such as internal link counts, URL Rating and external link counts.

  • retrieve_crawler_ip_ranges read

    Retrieve crawler ip ranges

    Retrieves the list of IP address ranges used by Ahrefs' web crawler (AhrefsBot). This endpoint provides essential information for website administrators to identify and potentially whitelist Ahrefs' crawler traffic. Use this endpoint when you need to configure your server's firewall rules, analyze server logs, or verify the authenticity of crawler requests claiming to be from Ahrefs. The returned data includes the current set of IP ranges, which may change over time, so it's recommended to check this endpoint periodically for updates. Note that while this information helps in identifying Ahrefs' crawler, it should not be used as the sole method of authentication for the crawler.

  • retrieve_organic_competitors read

    Retrieve organic competitors

    Retrieves organic search competitors for a target domain or URL, with keyword overlap and performance metrics. Results may also include paid-search metrics.

  • retrieve_organic_keywords read

    Retrieve organic keywords

    Retrieves organic keywords data for a specified website using Ahrefs' Site Explorer tool. This endpoint provides valuable insights into a website's SEO performance by returning a list of keywords for which the site ranks in organic search results. It's particularly useful for analyzing a website's organic search visibility, identifying ranking opportunities, and comparing keyword performance against competitors. The data returned includes key metrics such as keyword position, search volume, and estimated traffic, allowing users to make informed decisions about their SEO strategy. Note that the results are based on Ahrefs' database and may not reflect real-time search engine results.

  • retrieve_outlinks_stats read

    Retrieve outlinks stats

    Retrieves outgoing-link statistics for a specified website or URL using Ahrefs Site Explorer. The response schema includes internal and external link counts for crawled pages.

  • retrieve_paid_pages_data read

    Retrieve paid pages data

    Retrieves information about paid pages (PPC advertising) for a specified website using Ahrefs' Site Explorer tool. This endpoint provides valuable insights into a website's paid search strategy, including the keywords they're targeting, ad copies, and potentially performance metrics. It's particularly useful for competitive analysis in digital marketing, allowing users to understand their competitors' paid search efforts. The tool should be used when analyzing a website's PPC strategy or researching potential keywords for paid campaigns. It does not provide information about organic search performance or other SEO metrics.

  • retrieve_public_crawler_ips read

    Retrieve public crawler ips

    Retrieves a list of IP addresses currently used by AhrefsBot, Ahrefs' web crawler. This endpoint provides essential information for webmasters and SEO professionals who want to verify the authenticity of requests coming from Ahrefs or manage their server's access rules. The returned list includes all active IP addresses utilized by AhrefsBot for crawling websites. This tool should be used when you need to confirm if a particular IP belongs to Ahrefs or when updating your website's firewall rules to allow Ahrefs' crawler. It's important to note that this list may change over time, so it's recommended to check it periodically for the most up-to-date information.

  • retrieve_related_terms read

    Retrieve related terms

    Retrieves related keyword ideas for a given keyword or keyword list in a specified country. Related terms may include metrics such as search volume and keyword difficulty.

  • retrieve_site_explorer_keywords_history read

    Retrieve site explorer keywords history

    Retrieves historical keyword performance data for a specified website or domain using Ahrefs' Site Explorer. This endpoint provides insights into how keywords have performed over time, including changes in rankings, search volume, and potential traffic. It's particularly useful for analyzing SEO trends, understanding the impact of optimization efforts, and identifying seasonal patterns in keyword performance. The tool should be used when you need a comprehensive view of a website's keyword history to inform SEO strategies and content planning. It does not provide real-time data and may have limitations on the historical range available.

  • retrieve_site_explorer_metrics read

    Retrieve site explorer metrics

    Retrieves Site Explorer SEO metrics for a target domain or URL on a specified date, including backlink, referring-page and crawled-page counts. The analysis scope can be adjusted for the target.

  • retrieve_site_explorer_metrics_history read

    Retrieve site explorer metrics history

    Retrieves historical Site Explorer traffic metrics for a target website or URL over a specified period, including estimated organic and paid traffic and cost. Results can be grouped by time interval for trend analysis.

  • retrieve_site_explorer_pages_history read

    Retrieve site explorer pages history

    Retrieves historical page counts for a target domain or URL from Ahrefs Site Explorer over a specified period. Use it to analyze page-count trends over time.

  • retrieve_site_explorer_referring_domains_history read

    Retrieve site explorer referring domains history

    Retrieves the historical data of referring domains for a specified website or URL over time. This endpoint is part of Ahrefs' Site Explorer tool and provides valuable insights into the growth or decline of a website's backlink profile. It should be used when analyzing the long-term SEO performance of a website, identifying trends in link building efforts, or comparing the backlink acquisition rates of different domains. The data returned includes the number of referring domains at various points in time, allowing users to track changes and potentially correlate them with specific events or marketing efforts. This endpoint is particularly useful for SEO professionals, digital marketers, and website owners who need to monitor their site's authority growth over time or analyze competitors' link building strategies.

  • retrieve_subscription_limits_and_usage read

    Retrieve subscription limits and usage

    Retrieves an Ahrefs account's subscription limits and remaining API usage allowance. This account-scoped action requires connecting your own Ahrefs account.

  • retrieve_top_pages_from_site_explorer read

    Retrieve top pages from site explorer

    Retrieves data about the top-performing pages of a specified website using Ahrefs' Site Explorer tool. This endpoint provides valuable insights into a site's most successful content based on various SEO metrics. It's particularly useful for content analysis, competitive research, and identifying opportunities for optimization. The data returned includes details such as page URLs, organic traffic estimates, ranking keywords, and other relevant SEO metrics for each top page. Use this endpoint when you need to analyze the best-performing content of a website or compare top pages across different domains. Note that the results are based on Ahrefs' data and estimates, which may not always reflect real-time traffic or exact Google rankings.

  • retrieve_volume_history read

    Retrieve volume history

    Retrieves the historical search volume data for a specified keyword using Ahrefs' Keywords Explorer tool. This endpoint provides valuable insights into how the popularity of a keyword has changed over time, allowing users to analyze trends, seasonality, and long-term shifts in search behavior. The data returned can be crucial for planning SEO strategies, content calendars, and understanding market dynamics. It's particularly useful when you need to assess the historical performance of keywords, identify seasonal patterns, or evaluate the potential of trending topics. The tool does not provide future predictions or real-time data, focusing instead on historical trends based on Ahrefs' comprehensive database of search information.

  • search_suggestions_explorer read

    Search suggestions explorer

    Retrieves search suggestions for keywords or an existing keyword list using Ahrefs Keywords Explorer. Suggestions may include associated metrics such as search volume, keyword difficulty and traffic potential for keyword research.

Questions, answered

How do I connect Ahrefs to Claude?

Create a FloConnector workspace, connect Ahrefs once from the dashboard, then add your FloConnector endpoint to Claude as a custom connector. Claude handles the sign-in prompt; there is no server to host and no code to write. The same endpoint works in ChatGPT.

What can Claude do in Ahrefs?

46 tools, all listed on this page, so you can see exactly what the model is able to call before you connect.

Does the AI see my Ahrefs password or API keys?

No. FloConnector holds the Ahrefs credential, encrypted before it is stored, and calls Ahrefs on the model's behalf. The AI client only ever sees the tools and their results, never the credential behind them.

Does this work with ChatGPT as well as Claude?

Yes. The endpoint is a standard hosted MCP server, so it works in any client that supports MCP connectors, including Claude and ChatGPT.