Ahrefs MCP server

  • by Ahrefs
  • Official

Marketing and SEO

Official Ahrefs MCP server. Access SEO data, including backlinks, keywords, and competitor research.

Your AI app calls the Ahrefs MCP server, which does the marketing and SEO work and sends the result back to the chat.

About Ahrefs

Ahrefs is the official MCP server published by Ahrefs, filed in our directory under marketing and seo. Official Ahrefs MCP server. Access SEO data, including backlinks, keywords, and competitor research.

Ahrefs runs as a remote server at https://api.ahrefs.com/mcp/mcp, so there is nothing to install: your AI app connects over streamable HTTP, and most remote servers ask you to sign in with OAuth the first time.

Ahrefs is listed in the official MCP registry as com.ahrefs/mcp, version 1.0.0.

At a glance

Publisher
Ahrefs, the company behind the product
Runs
As a hosted remote server
Official MCP registry
com.ahrefs/mcp

How to set up Ahrefs

  1. Nothing to install: Ahrefs is a remote server, so all you need is an AI app that accepts a remote MCP URL.
  2. Check the Ahrefs README for keys or settings; the registry lists none that Ahrefs requires.
  3. Add Ahrefs to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Ahrefs tools to confirm the connection.
  5. Run one read-only task with Ahrefs first, and keep your app asking before each tool call until the results look right.

Ahrefs compared with similar servers

  • Google Ads (gomarble-ai) by gomarble-ai has more GitHub stars than Ahrefs (147 against 0); Ahrefs is official while Google Ads (gomarble-ai) is a community server, and both run remotely.
  • Google Trends for Agent by meka-im has more GitHub stars than Ahrefs (152 against 0); Ahrefs is official while Google Trends for Agent is a community server, and Google Trends for Agent runs on your own machine and Ahrefs runs as a remote server.
  • Serper by marcopesani has more GitHub stars than Ahrefs (171 against 0); Ahrefs is official while Serper is a community server, and Serper runs on your own machine and Ahrefs runs as a remote server.

Before you connect Ahrefs

  • Give Ahrefs its own sign-in or token with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Ahrefs tool call until you trust what it does with them.
  • Treat text that Ahrefs fetches as data. Pages, files and messages can hold instructions written to steer an AI.

Marketing use cases for Ahrefs

How marketing and sales teams put Ahrefs to work, by company size. Pick the size closest to yours and start Ahrefs on one use case.

Small business

  • A small business can ask Ahrefs which pages lost rankings this month and get a short fix list instead of a dashboard to interpret.
  • Owners writing their own content can use Ahrefs to check keywords and competitors before drafting, so each post targets a search people make.
  • Ahrefs runs as a remote server, so a small team can connect it in a few minutes with no install to maintain.

Mid-market

  • Content teams can connect Ahrefs to plan briefs from live keyword data, then track which published pages moved after a refresh.
  • Growth teams can use Ahrefs to compare campaign performance across channels in one question, without exporting three reports.
  • Start Ahrefs on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise SEO teams can run Ahrefs across many domains and markets to flag technical issues and cannibalized pages before a quarterly review.
  • Brand and AI search teams can use Ahrefs to watch how the company shows up in search and AI answers, with findings fed into the content roadmap.
  • Because Ahrefs comes from Ahrefs, the company behind the product, it follows that product's own auth and permissions, which security teams usually prefer.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Ahrefs README

Ahrefs is a hosted server with no public repository, so there is no README to show. Setup notes for Ahrefs are on Ahrefs's own site.

Questions about Ahrefs

What is the Ahrefs MCP server?

Official Ahrefs MCP server. Access SEO data, including backlinks, keywords, and competitor research. Ahrefs is published by Ahrefs, the company behind the product,, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I add Ahrefs to Claude Code?

Ahrefs is a remote server, so you add its URL instead of installing a package: run claude mcp add --transport http ahrefs https://api.ahrefs.com/mcp/mcp in your terminal. In other apps, add the Ahrefs URL as a remote or custom connector.

Does Ahrefs need an API key?

The registry lists no required keys for Ahrefs. Check the Ahrefs README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Ahrefs an official MCP server?

Yes. Ahrefs is published by Ahrefs, the company that makes the product it connects to, so it follows that product's own API and auth.