← MCP directory
Ahrefs

Ahrefs MCP server

official

Ahrefs runs a hosted MCP server that gives AI assistants access to the Ahrefs API, from keyword data to backlink profiles. It is available on paid plans from Lite upwards, every call draws API units from the account's monthly allowance, and the earlier local server is no longer supported.

What an agent can do

  • → Keyword volume, difficulty and traffic potential
  • → Backlinks and referring domains
  • → Organic keywords and top pages per domain
  • → Rank Tracker, Site Audit and Brand Radar data
  • → Create, update and delete social media posts

Calls consume API units, and Ahrefs only permits connections through MCP clients, not custom scripts or bridges to the endpoint. Some tool groups can write, and the tools parameter in the URL controls which groups are loaded.

About the Ahrefs MCP server

Ahrefs MCP is a hosted server run by Ahrefs itself. It lets an AI assistant fetch data from the Ahrefs API in the middle of a conversation. The server is included on every paid plan from Lite upwards, with no separate fee for the server. The earlier local version is no longer supported, so the remote server at api.ahrefs.com is the only way to connect an assistant to your Ahrefs account.

Marketing teams use it for keyword research, for tracking competitors' organic traffic and top pages, for auditing backlink profiles and for pulling figures from Rank Tracker, Site Audit and Web Analytics without opening the Ahrefs interface. It also reaches Search Console data connected to Ahrefs and Brand Radar, which shows how a brand appears in AI answers. The server includes helper tools that present results as tables and charts.

Every call draws API units from the plan's monthly allowance, which is shared with Ahrefs Connect and direct API use, and each plan caps the number of rows per request. Signing in creates a dedicated key that workspace admins can limit or remove. The server is not fully read-only: the management and social media tool groups can create, change and delete projects, keyword lists and posts. Ahrefs does not permit custom scripts against the endpoint.

Things to ask

  • Which keywords about AI for finance have a difficulty below 20 and at least 200 searches a month in Sweden?
  • Compare organic traffic for example.com and two competitors over the last twelve months and show a chart.
  • Which pages on our domain have lost the most referring domains since the summer?
  • Who ranks in the top ten for the keyword mcp gateway in the US, and what is their Domain Rating?
  • How many API units have we used this month and how many are left?

Tools the server exposes

  • keywords-explorer-overview
  • keywords-explorer-matching-terms
  • keywords-explorer-related-terms
  • serp-overview
  • site-explorer-metrics
  • site-explorer-domain-rating
  • site-explorer-organic-keywords
  • site-explorer-top-pages
  • site-explorer-all-backlinks
  • site-explorer-referring-domains
  • site-explorer-organic-competitors
  • batch-analysis
  • rank-tracker-overview
  • site-audit-issues
  • gsc-keywords
  • web-analytics-stats
  • brand-radar-mentions-overview
  • content-helper-topics
  • management-projects
  • subscription-info-limits-and-usage
GuideHow to set up Ahrefs MCP →

Part of these packages

Ahrefs is part of these Walma packages.

Questions about Ahrefs MCP

Is the Ahrefs MCP server free?+

The server has no additional fee, but it needs a paid plan: Lite, Standard, Advanced or Enterprise. Usage draws API units from the plan's monthly allowance. Ahrefs lists 200,000 units for Lite, 800,000 for Standard and 2 million for Advanced. Enterprise has its own allowance and can buy more units.

What is the Ahrefs MCP server URL?+

https://api.ahrefs.com/mcp/mcp, over streamable HTTP. The local version is no longer supported. The address is meant for MCP clients: Ahrefs writes that custom scripts, bridges and standalone HTTP clients against it are unsupported and not permitted, and points to the public API for programmatic access.

How do I sign in?+

When you add the server in your assistant, a consent screen asks you to approve access with your Ahrefs account. The connection then appears in the account with a dedicated key tagged MCP. You can also create an MCP key by hand and put it in the client's configuration. Regular API keys and MCP keys are not interchangeable.

Is it read-only?+

Mostly, but not entirely. Most tools only fetch report data. Ahrefs also describes that the assistant can create, update and delete social media posts, and the management tool group covers projects, keyword lists and Brand Radar configuration. If you only want reading, you can choose which tool groups load with the tools parameter in the URL.

Which AI assistants does it work with?+

The Ahrefs documentation has guides for Claude on web, desktop and mobile, Claude Code, ChatGPT, Copilot Studio, Lovable, n8n, Manus, Mistral's Le Chat and OpenClaw, and the product page also names Cursor. Ahrefs writes that most popular AI tools can connect to the remote server directly. Each AI platform may have its own plan requirements.

How many API units does a request use?+

One call costs at least 50 units, and the exact cost depends on how complex the request is. The plan also sets how many rows a call may return: 100 on Lite, 250 on Standard and 500 on Advanced. Keys created at sign-in have a default cap of 200,000 units per month, which workspace admins can change.

Can I limit which tools the assistant gets?+

Yes. Add the tools parameter to the URL with one or more tool groups separated by commas, for example ?tools=site-explorer-overview,keywords-explorer. The value essentials gives a curated starter set and cannot be combined with other groups. Without the parameter every tool is advertised, which some clients cannot handle because they limit the number of tools per server.

Missing a connection?

We build and review MCP servers for teams that need them, and run them behind the same policy and log as the rest of the gateway.