Free planRead every connected account, 100 reads a day, free forever.See pricing →

Analytics · MCP server

Ahrefs MCP server

Inspect search and backlinks with a clear allowance.

MegaMCP is a hosted Ahrefs MCP server that lets Claude, ChatGPT and Cursor read domain rating, organic keywords and backlinks. It's read-only: your AI reports and analyzes, and never changes anything in Ahrefs.

LiveConnect it from your dashboard today.

Tools
3 reads (read-only)
Works with
Claude, ChatGPT, Cursor, Claude Code and VS Code
Price
Free to read
Ahrefs3 reads · read-only
MegaMCPApproval gate
  • Claude
  • ChatGPT
  • Cursor

Live demo

Watch it work on Ahrefs

Ask in plain English. Your AI reads Ahrefs with real MegaMCP tools and answers with the numbers. The connection is read-only, so nothing in Ahrefs can change.

Tools in this example

  • ahrefs_domain_ratingReads live data
  • ahrefs_backlinksReads live data
See all 3 Ahrefs tools
Claude · MegaMCP + AhrefsIllustrative demo
  1. You

    What's acme.com's domain rating, and which backlinks are strongest?

  2. Claude
    ahrefs_domain_ratingDoneahrefs_backlinksDonesample of 10

    Domain rating 41. The strongest links come from local news and trade sites:

    Referring domainDRAnchor
    denverpost.com91local plumbing company
    angi.com88Acme Plumbing
    plumbingmag.com62tankless retrofit guide

What your AI can do

Ahrefs MCP tools

Read domain rating, organic keyword positions and backlinks through Ahrefs API v3. This list comes straight from the running product: 3 read tools and 0 write tools.

Reads

Answer straight away. Nothing changes.

3 tools
  • Domain rating
  • Organic keyword positions
  • Backlinks

No changes

Read-only by design.

The Ahrefs connection has no write tools, so your AI can read and report but can't change anything in Ahrefs.

Ahrefs guardrail

API-unit admission is atomic. Actual usage headers settle estimates; unexpected higher usage pauses further calls. Provider billing still governs actual costs.

Plus encrypted credentials, access limited to the accounts you switch on, and the flight recorder on every connection.

All 3 Ahrefs tools3 reads, read-only · straight from the running product
What it doesTool idType
Ahrefs domain ratingahrefs_domain_ratingRead
Ahrefs organic keywordsahrefs_organic_keywordsRead
Ahrefs backlinksahrefs_backlinksRead

Example prompts

Ahrefs MCP prompts

Paste any of these into Claude, ChatGPT or Cursor once Ahrefs is connected.

More Ahrefs prompts
  1. “Inspect this domain rating.”

  2. “List ten organic keyword positions.”

  3. “Show a bounded backlink sample.”

  4. “Compare the domain rating of our site and three competitors.”

  5. “Which of this competitor's keywords drive the most traffic?”

  6. “Show the strongest backlinks pointing to this domain.”

  7. “Find keywords where we rank 11 to 20.”

  8. “List link sources from this competitor's backlinks worth outreach.”

Setup

Ahrefs MCP setup in 3 steps

About two minutes for Claude, ChatGPT or Cursor. Nothing to install.

  1. Connect Ahrefs

    Start a free workspace and open Connections. Save a dedicated Ahrefs API key and approve vendor API-unit use, then enable and assign the account.

  2. Add MegaMCP to your AI app

    Every app uses the same server URL.

    MCP server URL
    https://megamcp.com/api/mcp
  3. Ask in plain English

    Try “Inspect this domain rating.” Reports answer straight away. Anything that changes Ahrefs comes back as a plan for you to approve.

Safety

Look, don't touch.

The Ahrefs connection reads and reports. It can't change a thing.

Read-only by design

The Ahrefs connection has no write tools. Your AI can read and report, and nothing in Ahrefs can change.

Read-only connection0 write tools availableAhrefsApproved

A diff first

Every plan lists each change with its before and after values, so you see exactly what will move before it does.

Plan previewAhrefs1 change
  • Change: ValueBeforeAfter
  • Check passed: Checked again right before it applies

Only what you switch on

Your AI sees only the Ahrefs accounts you enable, and members limited to certain clients only see those clients. Credentials are encrypted at rest.

Credentials encryptedAES-256-GCM, bound to the connectionNever used to train AI modelsApproved

Receipts for everything

Platform checks stop stale edits, and the flight recorder logs every tool call, plan and approval, with who did it and from which AI app.

TimeEvent
09:14ahrefs_domain_rating
09:15Answered in chat
09:16Nothing changed

FAQ

Ahrefs MCP server questions

Is there an official Ahrefs MCP server?

Yes. As of October 2026, Ahrefs runs a remote, read-only MCP server for paid plans that uses API units. MegaMCP connects Ahrefs with your own API key next to Search Console, GA4 and your ad accounts, and checks API-unit allowances before each call.

What is a Ahrefs MCP server?

An MCP (Model Context Protocol) server lets AI assistants such as Claude, ChatGPT and Cursor use Ahrefs through tools. MegaMCP's hosted Ahrefs MCP server gives your assistant 3 read tools for domain rating, organic keywords and backlinks.

Does the Ahrefs MCP server work with ChatGPT?

Yes. MegaMCP is a remote MCP server with OAuth sign-in, so one URL works in ChatGPT (as an app, with developer mode on), Claude (as a custom connector), Cursor, Claude Code and VS Code. Your AI app's own plan decides whether it can add custom MCP servers.

Can it make changes to my Ahrefs account?

No. MegaMCP's Ahrefs connection is read-only: it has no write tools, so your AI can report and analyze but can't change anything in Ahrefs. API-unit admission is atomic. Actual usage headers settle estimates; unexpected higher usage pauses further calls. Provider billing still governs actual costs.

How do I connect Ahrefs to Claude or ChatGPT?

Save a dedicated Ahrefs API key and approve vendor API-unit use, then enable and assign the account.

What does the Ahrefs MCP server cost?

Reading Ahrefs is free on MegaMCP's Free plan (100 reads a day, no card). Paid plans, from $19/month after a 5-day free trial, remove the daily limit, with unlimited runs and no credits. MegaMCP adds no markup: any subscription or API usage with the vendor stays between you and them.

Is my Ahrefs data safe?

Your Ahrefs credentials are encrypted at rest (AES-256-GCM) and bound to their connection, and MegaMCP never trains AI models on your data. Your AI only sees the accounts you switch on, members limited to certain clients only see those clients, and every tool call lands in the flight recorder.

5 days. On the house.

Put Mega to work. Your ad budget stays yours.

No credit card to start. Every workspace comes with a sandbox ad account, so you can watch the whole ask, diff, approve, undo loop before you connect anything real.

Get launch updates

New integrations, platform approvals, the occasional dark joke. One or two emails a month. Unsubscribe anytime.

Want early access? Join the waiting list →