Ahrefs MCP server
Analyze domain authority, backlinks, traffic, and keyword rankings for SEO intelligence
31 stars
Reviews
Write oneNobody has reviewed Ahrefs yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Ahrefs tools (100, 9 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
add_competitorsAdd competitors to a Rank Tracker project for monitoring and comparison. This operation is free and does not consume API units.
add_keywordsAdd keywords to a project and assign them to specific locations for tracking. This operation allows you to expand your keyword monitoring across different geographic regions.
add_keywords_to_listAdd one or more keywords to an existing keyword list. The keywords will be appended to the list's current contents.
analyze_targets_batchPerform batch SEO analysis on multiple targets to retrieve comprehensive metrics including backlinks, keywords, traffic, and ranking data. Customize which metrics to return and how results are ordered.
create_brand_radar_promptwrite actionCreate custom prompts for Brand Radar reports to customize monitoring and analysis. This operation is free and does not consume API units.
create_brand_radar_reportwrite actionCreate a brand radar report that monitors brand mentions across AI-powered data sources. This operation is free and does not consume API units.
create_projectwrite actionCreate a new project by specifying a target URL, protocol, and matching scope. The project will be assigned to the specified owner or the workspace owner by default.
delete_brand_radar_promptswrite actionRemove custom prompts from a Brand Radar report. This operation is free and does not consume API units.
delete_competitorswrite actionRemove competitors from a Rank Tracker project. This operation is free and does not consume any API units.
delete_keyword_list_keywordswrite actionRemove one or more keywords from an existing keyword list. Specify the keyword list by its ID and provide the keywords to be deleted.
delete_keywordswrite actionRemove one or more keywords from a Rank Tracker project. This operation is free and does not consume API units.
get_backlinks_statsRetrieve backlink statistics for a target domain or URL on a specific date. Returns metrics about incoming links based on your specified scope and protocol.
get_browser_chartRetrieve browser usage chart data for a project, showing visitor distribution across different browsers over a specified time period with configurable granularity.
get_browser_versions_chartRetrieve a chart of browser version performance metrics including visitor counts and session statistics over a specified time period.
get_continents_chartRetrieve web analytics chart data aggregated by continent. This endpoint is free to use and does not consume API units.
get_countries_chartRetrieve web analytics chart data aggregated by country with configurable time granularity and filtering. This endpoint is free and does not consume API units.
get_domain_metricsRetrieve comprehensive SEO metrics for a domain or URL, including keyword rankings, traffic estimates, and search volume data for a specified date.
get_domain_metrics_historyRetrieve historical performance metrics for a domain or URL over a specified date range, with options to customize time intervals, volume calculations, and protocol scope.
get_domain_ratingRetrieve the domain rating for a target domain or URL on a specific date. Domain rating is a metric that indicates the authority and trustworthiness of a domain.
get_domain_rating_historyRetrieve historical Domain Rating data for a domain or URL over a specified time period, grouped by your chosen time interval.
get_entry_pages_chartRetrieve entry pages chart data for a project, showing visitor traffic patterns across specified time periods. This endpoint is free and does not consume API units.
get_exit_pages_chartRetrieve exit pages chart data for a project, showing which pages visitors exit from. Supports filtering, time-based aggregation, and customizable metrics selection.
get_keyword_metricsget_keyword_volume_by_countryRetrieve search volume metrics for a keyword broken down by country. Use this to understand geographic demand patterns and identify high-opportunity markets for your target keyword.
get_keyword_volume_historyRetrieve historical search volume data for a keyword across a specified date range in a given country. Use this to analyze keyword popularity trends over time.
get_language_analytics_chartRetrieve browser language distribution data for web analytics with support for time-series charting across different granularities. This endpoint is free to use and does not consume API units.
get_page_contentRetrieve page content and metadata from a Site Audit project for a specific URL. This operation consumes 50 API units per request.
get_rank_tracker_overviewRetrieve overview metrics for all tracked keywords in a Rank Tracker project on a specific date, with support for filtering, sorting, and device-specific rankings.
get_refdomains_historyRetrieve historical data on referring domains for a target domain or URL over a specified time period, with flexible grouping and protocol filtering options.
get_referrers_chartRetrieve referrers chart data for web analytics, showing traffic sources over a specified time period with configurable granularity and filtering options.
get_search_volume_historyRetrieve historical search volume data for a domain or URL over a specified time period. Use this to analyze organic search trends and traffic patterns.
get_serp_overviewRetrieve the current SERP overview for a tracked keyword, including top organic positions and ranking data. This endpoint is free and does not consume API units.
get_serp_overview_keywordRetrieve SERP (Search Engine Results Page) overview data for a keyword in a specified country, including top organic positions and customizable metrics.
get_share_of_voice_overviewRetrieve Share of Voice data for brands across specified data sources. API unit consumption depends on prompt type: custom prompts only are free, while Ahrefs prompts follow standard pricing.
get_source_channels_chartRetrieve source channels chart data with visitor analytics and session metrics, aggregated at the specified time granularity.
get_subscription_limits_and_usageRetrieve current workspace and API key limits and usage information. This request is free and does not consume any API units.
get_top_pages_chartRetrieve a chart of your top-performing pages with visitor metrics and engagement statistics, aggregated at your specified time granularity.
get_traffic_sources_chartRetrieve traffic sources chart data with visitor metrics aggregated by your specified time granularity (hourly, daily, weekly, or monthly). This endpoint is free to use and does not consume API units.
get_url_rating_historyRetrieve the historical URL Rating progression for a target domain or URL over a specified date range, with flexible time-based grouping options.
get_utm_params_chartRetrieve UTM parameters chart data for web analytics, visualizing traffic patterns across a specified UTM dimension over time. Use this to analyze campaign performance, traffic sources, or other UTM-tracked metrics.
get_web_analytics_chartRetrieve time-series chart data for web analytics metrics with configurable time granularity. Use this to visualize analytics trends across different time periods.
get_web_analytics_cities_chartRetrieve cities chart data for web analytics showing visitor distribution across geographic locations. This endpoint is free to use and does not consume API units.
list_ai_responsesRetrieve AI-generated responses from multiple chatbot models for brand-related queries. API unit consumption depends on prompt type: custom prompts are free, while Ahrefs prompts follow standard pricing.
list_anchor_textRetrieve anchor text (clickable words in hyperlinks) that point to a target domain or URL. Use this to analyze inbound link text and understand how external sites reference your target.
list_audit_issuesRetrieve site audit issues for a specific project. This operation costs 50 API units per request and returns issues from either a specified crawl date or the most recent available crawl.
list_audit_pagesRetrieve page-level metrics and SEO data from a Site Audit crawl. This endpoint costs 50 API units per request and supports filtering, sorting, and comparison against previous crawls.
list_audit_projectsRetrieve health scores and performance metrics for Site Audit projects. Returns data from the most recent crawl by default, or from a specified crawl date if provided.
list_backlinksRetrieve all backlinks pointing to a target domain or URL, including detailed backlink profile metrics and historical data. Results can be aggregated, filtered, and sorted to analyze link quality and sources.
list_brand_mention_historyRetrieve historical mention data for a brand across specified AI chatbot models and date range. API consumption varies based on prompt type: custom prompts are free, while Ahrefs prompts follow standard pricing.
list_brand_mention_impressions_historyRetrieve historical impression data for brand mentions across AI chatbot platforms. API consumption varies based on prompt type: custom prompts are free, while Ahrefs prompts follow standard pricing.
list_brand_mentions_overviewRetrieve an overview of brand mentions data across specified data sources. API unit consumption depends on prompt type: custom prompts only are free, while Ahrefs prompts follow standard pricing.
list_brand_radar_impression_overviewsRetrieve impressions overview data for Brand Radar across specified chatbot models and data sources. API unit consumption depends on prompt type: custom prompts are free, while Ahrefs prompts follow standard pricing.
list_brand_radar_promptsRetrieve the Brand Radar prompts associated with a specific report. This operation is free and does not consume any API units.
list_brand_radar_reportsRetrieve brand radar reports to monitor brand performance and competitive insights. This endpoint is free to use and does not consume any API units.
list_brand_sov_historyRetrieve historical Share of Voice data for brands across specified chatbot models and date ranges. API unit consumption depends on prompt type: custom prompts only are free, while Ahrefs prompts follow standard pricing.
list_broken_backlinksRetrieve broken backlinks pointing to a target domain or URL. Returns backlinks that result in HTTP errors, with options to filter, sort, and aggregate results by domain or similarity.
list_browser_analyticsRetrieve browser analytics data for a project, including visitor counts, bounce rates, and session duration metrics. This endpoint is free and does not consume API units.
list_browser_versionsRetrieve browser version statistics and metrics for web analytics. This endpoint is free to use and does not consume API units.
list_cited_domainsRetrieve domains cited in AI visibility data from chatbot models and search engines. API unit consumption depends on the prompts parameter: requests using only custom prompts are free, while requests including Ahrefs prompts follow standard pricing.
list_cited_pagesRetrieve pages that cite your brand across specified chatbot models and AI overviews. API unit consumption depends on the prompts parameter: custom prompt data requests are free, while requests including Ahrefs prompt data incur standard API unit charges.
list_competitor_pagesRetrieve competitor pages data for a Rank Tracker project on a specific date, filtered by device type and customizable metrics.
list_competitor_rankingsRetrieve an overview of competitor rankings for your tracked keywords on a specific date. This endpoint is free and does not consume API units.
list_competitor_statsRetrieve competitor performance metrics for tracked keywords on a specified date and device type. Use this to analyze how competitors rank for your target keywords and monitor their search visibility.
list_continent_analyticsRetrieve web analytics metrics aggregated by continent for a specified project and time period. This endpoint is free to use and does not consume API units.
list_country_metricsRetrieve performance metrics broken down by country for a target domain or URL on a specific date. Useful for analyzing geographic traffic distribution and keyword performance across regions.
list_entry_pagesRetrieve entry pages analytics data for a project, showing which pages users first land on. Supports filtering by date range and result limits.
list_exit_pagesRetrieve exit pages analytics data for a project, showing which pages users exit from most frequently. Supports filtering, sorting, and date range specification.
list_external_anchorsRetrieve outgoing external anchor links from a target domain or URL. Results can be filtered by search scope, protocol, and custom expressions, with configurable sorting and pagination.
list_internal_anchorsRetrieve outgoing internal anchor links from a target domain or URL. Results can be filtered, ordered, and scoped by search mode and protocol.
list_keyword_historyRetrieve the historical ranking data for keywords associated with a target domain or URL across a specified date range, with options to group results by time interval and filter by protocol.
list_keyword_list_keywordsRetrieve all keywords from a specified keyword list. This operation is free and does not consume any API units.
list_language_analyticsRetrieve browser language statistics for a project, showing how visitors are distributed across different language preferences. This endpoint is free to use and does not consume API units.
list_linked_domainsRetrieve domains that link to your target domain or URL, with customizable filtering, sorting, and column selection for link analysis.
list_locationsRetrieve available locations and supported languages for a specified country. This is a free operation that does not consume API units.
list_organic_competitorslist_organic_keywordsRetrieve organic keywords that drive traffic to a target domain or URL, with metrics for a specified date. Results can be filtered, sorted, and customized to show specific data columns.
list_outlinks_statsRetrieve outlink statistics for a target domain or URL. This beta endpoint provides insights into outbound links, though data may not perfectly match the Ahrefs UI and accuracy improvements are ongoing.
list_page_historyRetrieve historical ranking data for pages from a target domain or URL over a specified time period. Results can be grouped by daily, weekly, or monthly intervals and filtered by search scope and ranking position.
list_pages_by_backlinksRetrieve the best performing pages for a target domain or URL ranked by backlink count. Use this to identify which pages attract the most external links and understand your site's link profile.
list_pages_by_internal_linksRetrieve the best-performing pages for a target domain or URL ranked by the number of internal links pointing to them. Use this to identify which pages are most linked internally and understand your site's link structure.
list_pages_by_trafficRetrieve pages grouped by traffic volume ranges for a domain or URL. Useful for identifying high-traffic pages and traffic distribution patterns across your site.
list_paid_pagesRetrieve paid search pages for a target domain or URL, showing which pages are generating paid search traffic on a specified date.
list_project_competitorsRetrieve the list of competitors tracked for a specific project. This operation is free and does not consume any API units.
list_project_keywordsRetrieve all keywords tracked for a specific project in Rank Tracker. This operation is free and does not consume any API units.
list_projectsRetrieve your projects with optional filtering by owner, access type, and keyword tracking status. This operation is free and does not consume any API units.
list_refdomainsRetrieve referring domains data for a target domain or URL, with filtering and sorting capabilities to analyze backlink sources.
list_referrersRetrieve referrer traffic sources and their associated metrics for a project, with optional filtering, sorting, and date range selection.
list_related_keywordsDiscover related keywords that top-ranking pages rank for or mention, including keywords they also target and topics they discuss. Use this to identify keyword opportunities and content gaps around your target search terms.
list_source_channelsRetrieve web analytics data grouped by source channels, including visitor counts, bounce rates, and session duration metrics. This endpoint is free and does not consume API units.
list_top_pagesRetrieve the top-performing pages for a domain or URL, including organic search metrics such as traffic and rankings for a specified date.
list_top_pages_by_pageviewsRetrieve the top-performing pages for a project ranked by pageviews and other engagement metrics. Use filtering and date range parameters to analyze specific traffic patterns and time periods.
list_traffic_sourcesRetrieve traffic sources data for a project, showing where visitors are coming from. Results can be filtered by date range and custom criteria, with optional sorting and pagination.
list_utm_parametersRetrieve UTM parameter data for web analytics, grouped by a specified UTM dimension (source, medium, campaign, term, or content) with optional filtering and time range selection.
list_web_analytics_by_cityRetrieve web analytics metrics aggregated by city for a specified project. This endpoint is free to use and does not consume API units.
list_web_analytics_by_countryRetrieve web analytics metrics aggregated by country for a specified project and time period. Results can be filtered, sorted, and paginated to analyze geographic performance data.
list_web_analytics_statsRetrieve aggregated web analytics statistics for a project, with optional filtering, sorting, and date range constraints.
search_keyword_suggestionsRetrieve keyword search suggestions for a specified country. Returns relevant keyword variations and related search terms to help identify search opportunities in your target market.
search_matching_keywordsupdate_brand_radar_reportwrite actionUpdate the configuration of a Brand Radar report, including its monitoring frequency. This operation is free and does not consume API units.
update_project_accesswrite actionUpdate the access setting for a project to control whether it is private or shared. This operation is free and does not consume any API units.
Public scan report
scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it
- Code scan5 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 138 days ago8/15
- Maintainer identityregistry namespace matches repository owner7/10
How Ahrefs compares
Against every graded SEO MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 80/100
- higher than 60% of 769 SEO servers
- Tools
- 100
- the typical SEO server has 6
- Tools that change things
- 9%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 31
- more than 95% of 405 SEO servers
What its tools let an agent do: 88 read · 6 create · 2 change · 4 delete
Install Ahrefs in Claude Code, Cursor or VS Code
claude mcp add ahrefs -- uvx mcparmory-ahrefs
What the publisher says
From the Ahrefs repository's README, as published. We do not edit it. Read it on GitHub
MCP Armory Registry
Production-ready MCP servers for popular APIs, generated by MCP Blacksmith.
Servers · Install & Usage · Features · How it works · License
MCP servers that connect AI agents to real-world APIs. Each server is a standalone Python package — generated from the upstream OpenAPI spec using MCP Blacksmith and tested against the live API before release. Hosted on MCP Armory or run independently.
<!-- SERVERS:BEGIN -->
Servers
🧠 AI & Machine Learning   ElevenLabs · Linkup · Parallel · Perplexity AI · Ragie · Replicate
📊 Analytics   Ahrefs · Datadog · Google Analytics · Google Search Console · Linkly · Mixpanel · PostHog
⛓️ Blockchain & Crypto   Alchemy NFT
💼 CRM & Sales   Apollo
💬 Communication   Atlassian Confluence · Google Gmail · MailerSend · Mailtrap · Postmark · Resend · Slack
🗄️ Data & Databases   Enigma · Pinecone
🛠️ Developer Tools   AgentQL · Apify · Bitbucket · Bright Data · Browserbase · BuiltWith · Canvas · CircleCI · Codacy · Contentful Management · ConvertAPI · E2B · Firecrawl · GitHub · GitLab · LaunchDarkly · Postman · Scrapingant · Semrush AppCenter · Sentry
📄 Documents & Printing   PDF.co
🛒 E-commerce   Shopify Admin
💰 Finance   Alpha Vantage · Polygon · Ramp
👥 HR & Recruiting   BambooHR
☁️ Infrastructure   Globalping · Grafana · PagerDuty · Rootly · Runpod
⚖️ Legal & Compliance   NetLicensing
🗺️ Maps & Location   Google Maps Platform · IP2Location.io IP Geolocation · OpenCage Geocoding
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Ahrefs: common questions
- Is Ahrefs MCP server safe?
- Mostly: it is graded B (80/100). Read the Ahrefs safety report
- How do I install Ahrefs?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Ahrefs need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Ahrefs maintained?
- The last commit was 176 days ago (2026-05-12). The latest release is v1.0.3.
- What can I use instead of Ahrefs?
- Servers from other publishers that do the same job: bisibility MCP server, Outrank MCP server and SEO Data MCP server.
- How does Ahrefs compare with other SEO MCP servers?
- safety score 80/100 (higher than 60% of 769 SEO servers); tools 100 (the typical SEO server has 6); tools that change things 9% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to Ahrefs
Same job from other publishers: the closest match first, then the best rated.
- bisibilityTrack keyword rankings, research SEO opportunities, and manage bisibility projects with AI agents.not reviewedGrowingA
OutrankPlan SEO keywords, write and publish articles to your site, read Search Console and backlink datanot reviewedGrowingA
SEO Datasuperagnt: marketing plugin for Claude and ChatGPT. Rank in search: Google rankings and keywords.not reviewedGrowingA- GoAnyAPI MCPGoAnyAPI SEO MCP: traffic, DR, backlinks, keywords, Google/Bing SERP/autocomplete, Ads Transparency.not reviewedGrowingA
Visibly AI — SEO MCP ServerRemote SEO/GEO MCP: Search Console, keyword research, backlinks, competitor & on-page audits.not reviewedGrowingA