Connect Ahrefs to your AI chat agent
Backlinks, referring domains, organic keywords, competitor overlap and keyword research, for any domain you can name. You don't have to own it or verify it first.
SourcetoMCP connects Ahrefs straight to Claude, ChatGPT, or any MCP-compatible agent, and tells you exactly how many Ahrefs API units each answer cost. It runs on the same connection as your Search Console, Analytics and ad accounts, so one question can cover what a competitor ranks for, what you actually get impressions on, and what those visitors then do.
Agent asks
Which domains link to our top competitor but not to us?
Agent asks
Find keyword ideas around 'marketing attribution' we could realistically rank for.
Why Ahrefs data matters for your agent
Search Console and Bing Webmaster Tools only report on properties you have verified. Ahrefs indexes the whole web, so your agent can run the same analysis on a competitor, an acquisition target, or a link prospect you have never touched.
- Backlinks at real depth. Who links to any page, the anchor text they used, whether the link is followed, and how strong the linking site is. Nothing else in SourcetoMCP reports on links to a site you don't own.
- Difficulty alongside volume. Google search volume paired with Ahrefs' own 0 to 100 difficulty score, so your agent can sort ideas by what is actually winnable rather than what looks big.
- See who you are up against. A live SERP for any keyword, with the backlink profile of every page on it. A top ten full of pages with three referring domains each is a different opportunity to one full of major publishers.
- Read-only, by design. All 17 operations only read. Your agent cannot create, edit or delete anything in your Ahrefs account.
How it works
Connect Ahrefs. Create an API key under Account settings, API keys in Ahrefs, then paste it in. One key covers your whole workspace, so there are no properties to pick.
Your agent asks in plain language. It picks the right Ahrefs report behind the scenes and gets real index data back.
Every answer shows its work and its price. Rows come back keyed by the operation's own fields, with the number of Ahrefs API units that query spent attached to the result.
Keyword ideas
search volume and difficulty per keyword
| keyword | volume | difficulty |
|---|---|---|
| marketing attribution tools | 2,400 | 34 |
| attribution software for agencies | 880 | 18 |
| how to track marketing attribution | 610 | 11 |
Ask about any domain. Get real Ahrefs data back.
‖ manual mode on
Everything Ahrefs knows about a domain, for any domain you name
Backlinks for any domain you choose
Every inbound link Ahrefs has indexed, with the linking page's title and snippet, anchor text, followed/canonical/UGC/sponsored status, HTTP code, and the Domain Rating of the site it came from. No ownership or verification needed.
Referring domains and anchor text
The domain-level view, one row per linking site, with its own organic traffic and dofollow referring-domain count alongside the anchor phrases people actually use. Ten links from ten sites beat a thousand from one, and this shows you which you have.
Broken backlinks you can fix today
Links pointing at pages on your site that no longer resolve, with the status code each one returns. Every row is a redirect away from working again.
Keyword research with difficulty attached
Ideas containing your seed term, plus related ideas that do not contain it at all, both with Google search volume and Ahrefs' own 0 to 100 difficulty score.
Live search results for any keyword
Who ranks in the top ten right now, with each page's backlinks, referring domains and estimated traffic. A difficulty score becomes a real judgement once you can see the pages behind it.
Competitor keyword overlap
Which domains chase the same keywords as you, how many they share, and what each one ranks for. Ahrefs finds the competitor set from its index instead of asking you to name it.
A hundred domains in one call
Batch analysis returns Domain Rating, backlinks, referring domains and organic traffic for up to 100 targets at once, at a fraction of the cost of checking them one at a time.
Every answer reports what it cost
Ahrefs bills API units from your own monthly allowance. Each query comes back with the exact number it spent, and checking your remaining balance is free.
Real prompts teams run against Ahrefs
Every SourcetoMCP account gets these in the Prompt Library, ready to run against your own connected Ahrefs workspace. Each one checks your remaining API units first and reports what it spent.
Keyword research
- Ahrefs Winnable Keyword Research
- Ahrefs Competitor Keyword Gap
Backlinks & competitors
- Ahrefs Broken Backlink Recovery
- Ahrefs Backlink Profile Audit
- Ahrefs Bulk Domain Comparison
- Ahrefs Link Prospect Authority Check
- Ahrefs Backlink Freshness Check
- Ahrefs Sponsored and UGC Disclosure Audit
- Ahrefs Editorial Link Context Review
Ask anything else
Your agent can call these operations directly too. The library is a starting point.
Ahrefs MCP FAQ
Common questions from teams connecting Ahrefs to an agent.
Backlinks, referring domains, anchor text, broken backlinks, organic keywords, top pages, competitor overlap, keyword research, live SERPs, and headline metrics for up to 100 domains in a single call. 17 registered operations in total.
Claude, ChatGPT, Cursor, or any MCP-compatible client. Connect once from your dashboard's "Connect an agent" page and every tool you've paired can use it.
Yes. This connector uses an API key from your own Ahrefs workspace, so you need an Ahrefs plan that includes API access. SourcetoMCP doesn't resell Ahrefs data, and there's no pooled account behind this.
Ahrefs charges API units, taken from the monthly allowance already included in your plan. Most requests cost a minimum of 50 units and more for larger result sets. Every query through SourcetoMCP reports exactly what it spent, and one free operation shows your remaining balance any time you ask.
No. You paste an API key you create yourself under Account settings, API keys in Ahrefs. Delete it there to revoke access. Ahrefs keys expire a year after you create them.
No. All 17 operations are read-only. Nothing your agent does through this connector creates, edits or deletes anything in Ahrefs.
Search Console reports real measured clicks and impressions, but only for properties you've verified. Ahrefs estimates that same picture for any domain on the web, and adds keyword difficulty and competitor analysis, which Search Console has no equivalent for. It also indexes backlinks far more deeply than Search Console's own Links report, which only covers sites you've verified. Most teams connect both and use each for what it's actually good at.
Ahrefs is available on paid SourcetoMCP plans. One Ahrefs API key counts as a single connection, however many domains you go on to analyse with it. See Pricing for how many connections each plan includes.
