Ahrefs MCP server for Claude, ChatGPT, Claude Code and Cursor

Access detailed backlink data, anchor text profiles, and URL ranking information from the Ahrefs link graph.

What you get with Ahrefs and ContextGate

  • Your AI apps can use Ahrefs: Claude, Cursor, ChatGPT and other AI apps reach Ahrefs through the one ContextGate connection you add to them.
  • You choose which tools they can use: Switch off any Ahrefs tool you don't want used. It's hidden from your AI apps and refused if called.
  • Every call is checked and recorded: Your policies check each call (for example, personal data is hidden and secrets are blocked), and Activity keeps a record of it.

ContextGate sees only the tool calls that go through it, not your AI app's built-in tools or your chats.

Free. No card needed.

How to connect Ahrefs

  1. Create your free ContextGate account.
  2. Go to Connections → Add Connection, search for Ahrefs and sign in to Ahrefs.
  3. Add ContextGate to Claude, Cursor or ChatGPT (the Setup page shows you how), then ask it to use Ahrefs.