martechdevs has been acquired by Growth and Analytics Partners LLC

SEO and website

Ahrefs MCP

Ahrefs publishes an official Ahrefs MCP server at https://api.ahrefs.com/mcp/mcp, on paid plans from Lite up. It covers Site Explorer, Keywords Explorer, Rank Tracker and Brand Radar, and its gsc tool group returns Google Search Console data. Most tools read, and Ahrefs says it can also create, update or delete social posts.

Last updated: 6 November 2026

What does an Ahrefs MCP server do?

The server brings live Ahrefs data into an AI assistant. Ahrefs lists 20 tool groups, from Site Explorer and Keywords Explorer to Rank Tracker, Site Audit, Brand Radar and Web Analytics. You ask in plain language for keyword research, competitor traffic and backlink audits, and the assistant calls the matching tools.

Is there an official Ahrefs MCP server?

Yes. Ahrefs runs the remote server and documents it on its own docs site. Claude's directory lists Ahrefs Pte. Ltd. as the maker and marks it Anthropic verified, and Ahrefs' MCP page links to its Claude connector and its ChatGPT app.

What is the Ahrefs MCP server URL, and how do you sign in?

The URL is https://api.ahrefs.com/mcp/mcp, over Streamable HTTP. With OAuth, you approve a consent screen and Ahrefs creates an API key tagged with the MCP scope. You can also generate an MCP key by hand under Account Settings, API Keys. Enterprise customers can connect with their API keys.

  • Add tools to the URL to load only some groups, such as ?tools=site-explorer-overview,gsc. Without it, all tools are advertised. tools=essentials loads a curated set and can't be combined with other groups.
  • Ahrefs doesn't permit calling this endpoint from custom scripts, bridges or standalone clients. It points that work to its public API.

What can an Ahrefs MCP server read and change?

Most groups read SEO data. The management group covers projects, keyword lists, locations and Brand Radar configuration, and Ahrefs' MCP page says you can create, update or delete social media posts. The search tool flags each operation as read_only or destructive, so check those flags before you allow writes.

What it can read

What it can change

How do you set up an Ahrefs MCP server in Claude, ChatGPT and Cursor?

Ahrefs documents Claude and ChatGPT. Claude has a listed connector, and ChatGPT has a listed app plus a custom route. Ahrefs' FAQ names a Cursor guide, but its MCP docs list none, so Cursor takes the generic route. You need Lite or higher.

Claude

Ahrefs has a listed connector in Claude, which its guide recommends.

  1. In Claude, open Customize, go to Connectors and click +.
  2. Search for Ahrefs, open its card and click Connect.
  3. Choose your Ahrefs workspace and account, then click Allow.
  4. Turn the connector on in a chat, with every tool the query needs enabled.

ChatGPT

Ahrefs links a listed ChatGPT app, and you mention @Ahrefs in a chat. For a custom server, Ahrefs' guide uses Developer mode with OAuth. ChatGPT's current flow is under Plugins.

  1. On ChatGPT web, open Plugins, select the plus button, then Add custom MCP server.
  2. Enter a name and https://api.ahrefs.com/mcp/mcp as the server URL.
  3. Set authentication to OAuth, review the risk warning and select Create as a plugin.
  4. Select your Ahrefs workspace and click Allow.

Cursor

Ahrefs has no Cursor page in its MCP docs, so this is Cursor's generic route in ~/.cursor/mcp.json. The Bearer format comes from Ahrefs' Claude config, and the key comes from Account Settings, API Keys, Generate MCP key.

JSON
{
  "mcpServers": {
    "ahrefs": {
      "url": "https://api.ahrefs.com/mcp/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_MCP_KEY"
      }
    }
  }
}

What can you ask an Ahrefs MCP server?

Good first prompts name a target, a country and a row limit, because most calls spend API units. These examples fit the tool groups Ahrefs lists. The Search Console prompts use the gsc group, where most endpoints are free. The last prompt writes, so it shows each post first.

  • Reads

    From my Ahrefs project, list the pages that lost the most Search Console clicks in the last 28 days against the 28 days before.

  • Reads

    List my top 20 Search Console keywords by clicks for the last 28 days, with CTR and position.

  • Spends credits

    Using this list of 10 sites in my niche, tell me which have grown organic search traffic over the past 6 months, in decreasing order.

  • Spends credits

    Show related keywords for this topic in the US, with volume and difficulty. Stop at 50 rows.

  • Writes

    Show how my social posts performed last month, then create these three posts. Show me each post before you create it.

What are the limits of an Ahrefs MCP server?

Ahrefs sets rows and units by plan. Lite gets 100 rows a request and 200,000 API units a month, Standard 250 and 800,000, and Advanced 500 and 2 million. Keys made through OAuth default to 200,000 units a month, and admins can change that. A request costs at least 50 units.

How much does an Ahrefs MCP server cost?

Ahrefs' MCP page lists Lite, Standard, Advanced and Enterprise, so you need a paid plan. Ahrefs lists Lite at $129 a month, Standard at $249, Advanced at $449, and Enterprise from $1,499, excluding tax. Annual payment saves up to 17%. Ahrefs shows no separate MCP fee.

What are the alternatives to an Ahrefs MCP server?

Semrush MCP is the closest rival, and it only reads. DataForSEO has its own server over its SERP, keyword and backlink APIs. For Search Console numbers without an Ahrefs plan, the Search Console guide covers the other routes, including Google's BigQuery export.

Which skill goes with an Ahrefs MCP server?

Use the free Agent write safety skill before you allow social posts or project changes, because those tools can delete or publish. Use the Marketing context kit to write down your domains, markets and naming rules once, so every prompt starts from the same project and the assistant spends fewer units guessing.

We set up Claude Code and MCP for marketing teams, with access scoped per person and approval before anything changes.

Sources

Want it set up for you? See implementation plans or book a free call.