Connect
Ahrefs to
n8n
- Can it run every morning?
https://mcp.lemonado.io/mcpBuild n8n workflows that use your Ahrefs data to see which pages carry organic traffic on a schedule, and post the result where your team works. Lemonado connects them in about 5 minutes with one Lemonado token.
https://mcp.lemonado.io/mcpWhy connect Ahrefs to n8n?
n8n runs on triggers and schedules, so a question you ask once can become a check that runs every morning. Connected through Lemonado, it reads your Ahrefs backlinks, organic keywords, top pages and domain Rating, so it can see which pages carry organic traffic with today's numbers.
All your Ahrefs data
Backlinks, new and lost, ready to ask about.
Always today's numbers
Organic keywords and positions, synced from Ahrefs automatically, so answers use today's numbers.
Connect all your tools
Questions like "Do estimates match real clicks?" use Ahrefs and Search Console, Semrush at once.
How to connect Ahrefs to n8n
Before you start
- A Ahrefs account you can sign in to
- n8n installed
- A Lemonado account (the free trial works)
- 1
Connect Ahrefs in Lemonado
In Lemonado, open Connectors, find Ahrefs and sign in. Use an Ahrefs account on a paid plan with API access. Free and trial accounts can't share data.
- 2
Turn on external access
In the company's settings, open External tools, turn the connection on, choose which sources it can reach and copy the server URL.
texthttps://mcp.lemonado.io/mcp - 3
Create a token in Lemonado
In External tools, open your connection's guide, choose n8n, pick an expiry and click Generate Token. Copy it.
- 4
Add the MCP Client Tool
In your workflow, add an AI Agent node, then add an MCP Client Tool under its tools. Use node version 1.1 or later; version 1 only speaks SSE.
- 5
Configure it
Set the endpoint to the server URL, the transport to HTTP Streamable (pick it yourself on node version 1.1, which defaults to SSE) and authentication to Bearer Auth. Create a Bearer Auth credential and paste the raw token, without a "Bearer " prefix.
texthttps://mcp.lemonado.io/mcp - 6
Test and save
Test the connection, save the workflow and ask the agent about your data.
- 7
Ask n8n about Ahrefs
Try "Every morning at 8, check yesterday's Ahrefs numbers and post anything unusual to #marketing." Or ask: "Which links did we lose?" or "Is a competitor page taking off?"
Good to know
- If the MCP Client Tool only shows an SSE Endpoint field, it's the version 1 node: replace it with a newer one. Keep the /mcp URL and choose HTTP Streamable.
- Regenerating a token in Lemonado invalidates the old one, so update n8n when you do.
What can n8n do with Ahrefs?
n8n's AI Agent reads your Ahrefs data on a trigger or a schedule, then posts, logs or files the result in the next node.
Every morning at 8, check yesterday's Ahrefs numbers and post anything unusual to #marketing.
Running daily. Today's post flagged one change against the 7-day average, with the number and a link to the source.
Source: Ahrefs
Every Monday, list referring domains with DR over 50 that we lost last week in Ahrefs, with the page they linked to.
2 lost last week: a DR 74 gear magazine and a DR 55 hiking blog, both linking to the tent guide. Sent to #seo.
Source: Ahrefs
Every week, send competitor pages that gained over 1,000 estimated visits in Ahrefs, with their top keywords.
1 this week: Northtrail's new "tent sizes" guide gained 2,400 visits, mostly from "tent size chart". Sent to #seo.
Source: Ahrefs
Which referring domains did we lose in the last 30 days, sorted by Domain Rating, and which pages were they linking to?
We lost 18 referring domains. The strongest is a DR 74 gear magazine that removed its link to our tent buying guide when it updated the article.
Source: Ahrefs
Which of our pages get the most organic traffic, and which of them lost traffic since last quarter?
The top 10 pages bring 58% of organic traffic. The sleeping bag guide lost 34%; it fell from 2 to 7 for its main keyword.
Source: Ahrefs
Compare Ahrefs' estimated traffic for our top 20 pages with Search Console clicks for the same pages last month.
Ahrefs estimates 31,000 visits, Search Console shows 44,500 clicks. The gap is mostly long-tail queries Ahrefs doesn't track.
Source: Ahrefs
Connect Ahrefs to another AI app.
Claude
Connect Ahrefs to Claude
ChatGPT
Connect Ahrefs to ChatGPT
Claude Code
Connect Ahrefs to Claude Code
Cursor
Connect Ahrefs to Cursor
VS Code (GitHub Copilot)
Connect Ahrefs to VS Code (GitHub Copilot)
Codex
Connect Ahrefs to Codex
Perplexity
Connect Ahrefs to Perplexity
Google Antigravity
Connect Ahrefs to Google Antigravity
Windsurf (Devin Desktop)
Connect Ahrefs to Windsurf (Devin Desktop)
Zed
Connect Ahrefs to Zed
Other integrations for n8n
All n8n integrations- Google Search Console in n8nAsk Claude, ChatGPT or Cursor about your search queries, rankings and lost clicks.
- Google Analytics in n8nAsk Claude, ChatGPT or Cursor about GA4 traffic, conversions and funnels, next to your ad spend.
- Google Ads in n8nAsk Claude, ChatGPT or Cursor about your Google Ads campaigns, search terms and spend.
- Instagram organic in n8nAsk Claude or ChatGPT which posts and reels grow your account, and which ones to turn into ads.
- Pinterest Ads in n8nAsk Claude or ChatGPT which pins get saved, clicked and bought.
- Snapchat Ads in n8nAsk Claude or ChatGPT which Snapchat ads get swipes and which ones sell.
Reading this as an AI agent?
Everything an agent needs to set this up, in plain text. Paste this page's link into n8n and ask it to connect you, or copy the block.
# Connect Ahrefs to n8n (Lemonado MCP) - Server URL: https://mcp.lemonado.io/mcp - Transport: Streamable HTTP - Auth: Bearer token the user generates in Lemonado (External tools → n8n) - In Lemonado: connect the Ahrefs account. Use an Ahrefs account on a paid plan with API access. Free and trial accounts can't share data. - In n8n: AI Agent → MCP Client Tool ```text https://mcp.lemonado.io/mcp ``` First question to try: "Every morning at 8, check yesterday's Ahrefs numbers and post anything unusual to #marketing." More: https://lemonado.io/integrations/ahrefs · https://lemonado.io/llms.txt
Frequently Asked Questions
Yes, through Lemonado. Connect your Ahrefs account in Lemonado, add Lemonado as an MCP Client Tool on an n8n AI Agent node, and n8n can see which pages carry organic traffic with your live data.
Yes. Ahrefs' official MCP server is hosted, so n8n can use it too. It covers Ahrefs only. Lemonado covers Ahrefs plus your ad platforms, GA4 and the rest of your stack in one connection, so n8n can answer questions across them.
Use Test step on the MCP Client Tool. A 401 means the token expired or was regenerated, so paste a new one into the Bearer credential. In Lemonado, check that Ahrefs is connected and External tools is on for the company. If Ahrefs returns nothing, check that your plan includes API access and has units left. Each request uses some.
Yes, if both are connected in Lemonado. One connection reaches every source you allow, so you can ask things like "Compare Ahrefs' estimated traffic for our top 20 pages with Search Console clicks for the same pages last month."
MCP is included in Lemonado's paid plans and in the free trial, so you can try it before you pay.
Still have a question?
Shoot us an email at hello@lemonado.io.
Try for freeStop fighting with data. Start feeding your AI.
Connect your data to AI and free your team from reporting and busywork.
Try Lemonado free