Why connect Ahrefs to Cursor?
Cursor's agent sees the page you're editing but not its backlinks or rankings. Add Lemonado and it reads that page's Ahrefs data, so it knows which keywords to keep in the title, which anchor texts point at it and which changes put links at risk.
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 Cursor
Before you start
- A Ahrefs account you can sign in to
- Cursor 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
Open your MCP config
Open ~/.cursor/mcp.json for every project, or .cursor/mcp.json for this project only. Create the file if it doesn't exist.
- 4
Add Lemonado
Merge this into the file and save.
json{ "mcpServers": { "lemonado": { "url": "https://mcp.lemonado.io/mcp" } } } - 5
Sign in
Cursor asks you to sign in to Lemonado. Approve access, then ask the agent about your data.
- 6
Ask Cursor about Ahrefs
Try "Before I rewrite the page I have open, show its Ahrefs backlinks, the anchors they use and the keywords it ranks top 10 for." Or ask: "Which anchors point here?" or "Did the migration lose links?"
Good to know
- Editing the file directly avoids relying on menu labels that change between Cursor versions.
What can Cursor do with Ahrefs?
Cursor's agent reads your Ahrefs data while it edits: it fills components with real data, checks tracking code and writes the analysis next to your code.
Before I rewrite the page I have open, show its Ahrefs backlinks, the anchors they use and the keywords it ranks top 10 for.
It has 46 referring domains, mostly with the anchor "tent footprint guide", and ranks top 10 for 18 keywords. Keep the URL and that phrase in the H1.
Source: Ahrefs + your code
Which anchor texts do other sites use to link to our pages, and do our titles match them?
For 6 pages the most common anchor isn't in the title. The stove guide is linked as "backpacking stove" but titled "Cooking outdoors".
Source: Ahrefs + your code
We moved the blog to /guides on Sept 20. Check Ahrefs for links to old /blog URLs and whether our redirects cover them.
38 old URLs still get links. 35 redirect correctly; 3 return 404 because the slugs changed. Added redirects for those 3.
Source: Ahrefs + your code
Which of our images or charts get linked to directly in Ahrefs, and are they on pages with proper alt text in the code?
Four charts earn links. Two have no alt text in components/Chart.tsx, so added alt text from their titles.
Source: Ahrefs + your code
Find sites that link to two or more of our competitors' guides but not to ours.
41 sites. 9 are gear roundups updated in the last six months, the most likely to add a new brand.
Source: Ahrefs
Our top Ahrefs pages by organic traffic next to GA4 conversions from organic search on the same pages.
The tent buying guide is 4th for traffic but 1st for conversions. Two top-traffic blog posts convert almost nobody.
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
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
n8n
Connect Ahrefs to n8n
Other integrations for Cursor
All Cursor integrations- Google Search Console in CursorAsk Claude, ChatGPT or Cursor about your search queries, rankings and lost clicks.
- Semrush in CursorAsk Claude, ChatGPT or Cursor about rankings and keyword gaps, with Search Console and Google Ads in the same answer.
- Google Analytics in CursorAsk Claude, ChatGPT or Cursor about GA4 traffic, conversions and funnels, next to your ad spend.
- Google Ads in CursorAsk Claude, ChatGPT or Cursor about your Google Ads campaigns, search terms and spend.
- Mixpanel in CursorAsk Claude, ChatGPT or Cursor which campaigns bring users who stick, with Mixpanel next to your ad spend.
- PostHog in CursorPut PostHog product data next to your ad spend in Claude, ChatGPT or Cursor.
Reading this as an AI agent?
Everything an agent needs to set this up, in plain text. Paste this page's link into Cursor and ask it to connect you, or copy the block.
# Connect Ahrefs to Cursor (Lemonado MCP)
- Server URL: https://mcp.lemonado.io/mcp
- Transport: Streamable HTTP
- Auth: OAuth; the user signs in to Lemonado in the browser. No API keys.
- 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 Cursor: ~/.cursor/mcp.json
```json
{
"mcpServers": {
"lemonado": {
"url": "https://mcp.lemonado.io/mcp"
}
}
}
```
First question to try: "Before I rewrite the page I have open, show its Ahrefs backlinks, the anchors they use and the keywords it ranks top 10 for."
More: https://lemonado.io/integrations/ahrefs · https://lemonado.io/llms.txtFrequently Asked Questions
Yes. Ahrefs covers any domain, so the agent can pull a competitor's top pages or backlinks while you work on yours, for example to see which sections their best guides have that yours don't.
Yes. Ahrefs' official MCP server is hosted, so Cursor 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 Cursor can answer questions across them.
Open Cursor's settings and find lemonado in the MCP list. A red dot or a sign-in prompt means the login expired. Restart Cursor after editing mcp.json. 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 "Our top Ahrefs pages by organic traffic next to GA4 conversions from organic search on the same pages."
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