Key Takeaways
Ahrefs API access: Yes, Lite, Standard, Advanced, or Enterprise paid plan.
Ahrefs MCP server: Official, hosted, OAuth or an MCP key sent as a Bearer token.
Ahrefs pricing and limits: MCP use shares the API-unit allowance with API v3 and Ahrefs Connect. Requests that consume API units have a 50-unit minimum; some operations, including Add Projects, are free.
Ahrefs connects with
Claude, Claude Code,
ChatGPT,
n8n.
You want an AI client or script to retrieve
Ahrefs search and SEO data. API v3 and the hosted MCP server start on Lite at €119 per month (US$129 in USD), and most paid requests have a 50-unit minimum.
For full seat pricing, plan limits and team workflows beyond developer endpoints, read our Ahrefs review or compare category peers in SEO Suites tools with an API.
What does the Ahrefs API include?
Ahrefs provides API access on Lite, Standard, Advanced, or Enterprise paid plan using Bearer API key.
| What you need to know | Detail |
|---|---|
| Plan that includes it | Lite, Standard, Advanced, or Enterprise paid plan |
| What it costs | Most paid requests cost at least 50 API units, with cost based on returned rows and requested fields. Monthly API integration units are 200,000 on Lite, 800,000 on Standard, 2,000,000 on Advanced, and 4,000,000 or custom on Enterprise. |
| Sign-in | Bearer API key |
| Rate limits | 60 requests per minute by default; requests may also be throttled with HTTP 429. |
| OpenAPI file | Yes |
| Docs | API documentation |
What you can do with it
- Retrieve Site Explorer backlink, organic, and paid traffic reports
- Research keyword metrics, search volume history, and keyword ideas
- Retrieve Site Audit health scores, issues, and crawled-page content
- Read Brand Radar, social-media, and content-helper data
- Manage Rank Tracker projects and Keywords Explorer lists
Sources:Ahrefs API introductionAhrefs pricingAPI-key management
How does the Ahrefs MCP server work?
Ahrefs supports an official hosted MCP server authenticated with OAuth or an MCP key sent as a Bearer token.
| What you need to know | Detail |
|---|---|
| Who makes it | Official, run by |
| Where it runs | Hosted by the vendor, nothing to install |
| Address or package | https://api.ahrefs.com/mcp/mcp?tools=search-exec |
| Sign-in | OAuth or an MCP key sent as a Bearer token |
| Plan that includes it | Lite, Standard, Advanced, or Enterprise paid plan |
| Usage | MCP use shares the API-unit allowance with API v3 and |
| Works with |
Before you connect it
- OAuth connections show a consent screen and create a dedicated API key with MCP scope in the
Ahrefs account. - MCP keys use Bearer authentication, and workspace admins can set per-key API-unit limits in account settings.
Ahrefs does not support or permit using the external MCP endpoint from custom scripts, bridges, or standalone HTTP or JSON-RPC clients.
See how sibling tools handle programmatic connections in MCP servers for SEO suites tools and step-by-step Ahrefs tutorials.
Sources:Ahrefs MCP introductionAhrefs MCP tool categoriesAhrefs MCP helpAhrefs MCP setup guidesAhrefs MCP Claude Code setupAhrefs MCP ChatGPT Web setupAhrefs MCP n8n setupAhrefs Add Projects API and MCP reference
Which MCP tools does Ahrefs expose?
The
Ahrefs MCP server exposes 3 documented MCP tools for connected AI clients.
| Tool | What it does | Access |
|---|---|---|
search | In the optional search-and-exec mode, find available | Read only |
doc | In the optional search-and-exec mode, return an operation's input and output schemas. | Read only |
exec | In the optional search-and-exec mode, run an | Changes data |
How do you connect Ahrefs to your AI app?
Ahrefs documents direct connection steps for
Claude, Claude Code,
ChatGPT,
n8n.
Claude
- Open Customize, select Connectors, and add
Ahrefs. - Choose Connect, select the
Ahrefs workspace and account, then allow access. - Enable the
Ahrefs connector in the chat settings before querying.
Claude Code
- Run claude mcp add ahrefs 'https://api.ahrefs.com/mcp/mcp?tools=search-exec' -t http in the terminal to expose the search-and-exec tool set.
- Launch
Claude Code and run /mcp. - Authenticate, sign in to
Ahrefs, select the workspace, and allow access.
ChatGPT
- Open Settings, Apps, and Advanced settings, then enable Developer mode.
- Create an app with https://api.ahrefs.com/mcp/mcp?tools=search-exec and OAuth authentication, leaving the OAuth client ID and secret blank, to expose the search-and-exec tool set.
- Trust the app, allow the selected
Ahrefs workspace, and enable the connector in the chat.
n8n
- Add an MCP client node and set HTTP Streamable transport with https://api.ahrefs.com/mcp/mcp?tools=search-exec to expose the search-and-exec tool set.
- Create Bearer Auth credentials, generate an MCP key in
Ahrefs account settings, and paste the key into the credentials. - Save the credentials, refresh tools, and select the required tool.
How did we check Ahrefs API and MCP access?
Ahrefs verification summary: Every fact comes from the vendor's own pricing, documentation and help pages, read on the date shown. Last checked 27 Nov 2026 following how we check figures and our AI agent readiness study.
Sources:Ahrefs API introductionAhrefs pricingAPI-key managementAhrefs MCP introductionAhrefs MCP tool categoriesAhrefs MCP helpAhrefs MCP setup guidesAhrefs MCP Claude Code setupAhrefs MCP ChatGPT Web setupAhrefs MCP n8n setupAhrefs Add Projects API and MCP reference
What are common questions about Ahrefs API and MCP?
Which Ahrefs plan includes API and MCP access?
API v3 and the remote MCP server are available from the Lite plan upward.
Ahrefs lists Lite at €119 per month (US$129 in USD), with Standard, Advanced, and Enterprise offering higher allowances or limits.
How much does an Ahrefs API or MCP request cost?
Most paid requests have a minimum cost of 50 API units. The final cost depends on the fields requested and rows returned, and MCP usage shares the same allowance as API v3 and
Ahrefs Connect.
Can I connect Ahrefs to ChatGPT or n8n?
Yes.
Ahrefs documents remote MCP setup for
ChatGPT Web,
n8n,
Claude, and Claude Code.