Ahrefs logo

Ahrefs MCP Server

OfficialSEO

Ahrefs' MCP server pulls backlinks, keywords, rankings and site-audit data into the AI. It is an official, vendor-maintained server. Works in Claude and Cursor.

Ahrefs

What Ahrefs can do

Ahrefs' MCP server pulls backlinks, keywords, rankings, site-audit data into the AI

Tools Ahrefs exposes

6 tools · from docs

The exact tools this MCP server gives your AI.

backlinksBacklink profile for a domainread
keywords_explorerKeyword metrics and ideasread
site_auditTechnical site auditread
rank_trackerTracked keyword positionsread
domain_ratingDomain Ratingread
organic_keywordsA site's organic keywordsread

Try asking Claude

Example prompts once Ahrefs is connected.

Check a domain's backlinks.
Pull keyword data.
Review a site audit.

Set up Ahrefs

Pick your client. Every snippet is copy-ready.

Claude Desktop → Settings → Developer → Edit Config (claude_desktop_config.json).

Permissions & safety

Read-onlyAuth: API Key

Runs remotely, so requests and returned data pass through ahrefs.com.

This server is read-only, so it cannot change your data.

Troubleshooting

Authentication fails or the connector shows disconnected
Re-run the connect flow. Check your API key is valid and has the right scopes.
401 / 403 errors on a tool call
The account lacks the scope that tool needs. Reconnect and grant the missing permission.
A tool returns nothing for your Ahrefs data
Confirm the account you authorised actually contains that data, and that your plan includes it.

FAQ

Ahrefs runs as a local MCP server. Get its install command from https://ahrefs.com/mcp, add it to your client's MCP config, then restart the client.

More SEO MCP servers

A
Written by Ari · Founder

Running a digital business since 2019 and a local SEO agency, Ari built and shipped GBPAudit.AI as a Claude connector. Every server here is connected and its tools read before it's listed.

Something wrong with this listing? Report it.