Which competitor pages are getting search traffic you could realistically compete for?
With Ahrefs connected to Claude or ChatGPT, you can investigate that question using Ahrefs data, then ask follow-up questions about keywords, referring domains and existing pages. The value comes from narrowing the analysis to your market and business—not asking for a long list of high-volume keywords.
Here is how to connect the official hosted MCP server, control the size of your requests, and turn the results into an SEO work plan.
The different ways to connect Ahrefs to Claude and ChatGPT
| Method | Setup | Best fit |
|---|---|---|
| Ahrefs connector for Claude | Select Ahrefs, choose a workspace and authorize | The quickest route for Claude web or desktop |
| Ahrefs remote MCP in ChatGPT | Add the server using a supported custom MCP connection and OAuth | Ahrefs research in ChatGPT |
| Ahrefs public API | A separate programmatic integration | Scripts and reporting systems; the external MCP is not a general-purpose API |
Ahrefs currently offers its hosted MCP on Lite plans and above. Requests consume API units, and row limits depend on your plan. Check Account settings → Limits and usage before a large research task. The Ahrefs MCP overview explains eligibility and unit accounting.
Connect Ahrefs remotely to Claude
- Open Customize → Connectors in Claude and add a connector.
- Search for Ahrefs and click Connect.
- Choose the intended Ahrefs workspace and account.
- Review the consent request and click Allow.
- Enable Ahrefs in the chat’s connector settings before running the first query.
These steps follow Ahrefs’ Claude setup guide. Prefer the OAuth route for a normal account connection; you do not need to copy an MCP key into a chat.
Connect Ahrefs remotely to ChatGPT
The official server URL is:
https://api.ahrefs.com/mcp/mcp
Open ChatGPT’s custom MCP app or plugin creation flow. Ahrefs’ documented route uses Settings → Apps → Advanced settings → Developer mode → Create app; the labels may differ if your account has the newer Plugins interface.
- Name the connection Ahrefs and enter the server URL above.
- Choose OAuth; the Ahrefs guide leaves client ID and client secret blank.
- Create the connection, choose your Ahrefs workspace and authorize access.
- Enable the new connection in your chat and explicitly ask it to use Ahrefs.
Use the Ahrefs ChatGPT setup guide for the provider-specific configuration. Your ChatGPT account and workspace must permit custom MCP connections.
Run a small test before a full competitor analysis
Use Ahrefs MCP to analyze [mydomain.com] in [country]. First confirm the target scope—domain, subdomain or exact URL—and the date or index being queried. Return only five organic keyword rows with keyword, ranking URL, position and available volume/traffic estimates. Identify the fields and any limits in the response.
Inspect the returned URLs. A query against the root domain, a blog subfolder and one article can all produce valid but very different answers. Set the scope before comparing yourself with a competitor.
Also check the country. A keyword with strong demand in the United States may tell you little about a campaign aimed at French buyers.
Keep the tool set and API usage focused
Ahrefs supports tool categories in the connection URL. For example, a client that lets you configure the URL can use:
https://api.ahrefs.com/mcp/mcp?tools=site-explorer-reports,keywords-explorer
This narrows the advertised tool categories. Ahrefs also provides an essentials selection, which is used on its own. See the tool-category reference for the current combinations.
A tool filter is an organizational choice, not a substitute for account permissions. It also does not make an unlimited research prompt cheap. Specify a row limit, ask for a shortlist, and expand only the results that deserve attention.
Before running the full analysis, propose the Ahrefs reports, filters and maximum rows needed. Start with one competitor and 20 candidate pages. Do not fetch every keyword or backlink for every result. Tell me when a request would exceed the available limits.
This avoids spending the allowance on a huge export that the final answer reduces to five recommendations.
Safety and interpretation: Ahrefs estimates are not your analytics
Ahrefs traffic and keyword figures are research inputs. Do not present an estimated competitor traffic number as a measured GA4 session count or a guaranteed amount of traffic your article will gain.
For your own site, compare the proposed opportunities with Search Console and your existing content inventory. A keyword gap can be real, but the right response may be to improve an existing page rather than create another one.
Be equally careful with links. A list of referring domains is not a list of people who agreed to receive outreach. Ask for editorial relevance and the reason a site linked; keep outreach research separate from sending messages.
Fix the common Ahrefs MCP problems
| Problem | What to check |
|---|---|
| Authorization succeeds but reports fail | Check the selected workspace’s plan, API allowance and any per-key limit. |
| The assistant answers from general SEO knowledge | Explicitly request Ahrefs MCP and require the underlying report fields and returned URLs. |
| A needed report is missing | Inspect the advertised tool categories and any URL filter on the connection. |
| The response is truncated | Lower the requested rows, apply filters first and ask whether more pages of results exist. |
| Competitor numbers look inconsistent | Match country, target scope, date/index and metric definition across reports. |
| You want to call the MCP from a script | Use the public API instead; Ahrefs does not permit treating its external MCP endpoint as a standalone programmatic API. |
The best prompts for Ahrefs MCP
Find keyword opportunities without creating duplicate pages
Compare [our domain] with [two competitor domains] in [country]. Find up to 20 relevant non-branded keywords where a competitor ranks and we have weak or no visibility. Show competitor URL, our closest existing URL if available, position and available volume/difficulty estimates. Group by search intent. Recommend update-existing or create-new for each cluster, and explain the choice. Flag cases requiring manual SERP review.
The output should be a set of page decisions. Twenty keyword rows that all answer the same question do not justify twenty articles.
Choose competitor pages worth studying
For [competitor] in [country], identify ten pages with meaningful estimated organic traffic that address [our audience and offer]. Exclude jobs, support and irrelevant markets. Show the top contributing keywords, estimated traffic and referring domains where available. Explain why each page is commercially relevant to us before suggesting a content angle.
Find realistic link prospects
For [competitor article URL], examine up to 30 referring domains. Group them by the reason they link: cited research, resource list, product mention or another identifiable reason. Show the referring page and the evidence for that classification. Exclude clearly irrelevant sites. Suggest what asset we would need to earn a comparable link; do not draft or send outreach yet.
Build a refresh brief for an existing article
Review Ahrefs data for [our article URL] and competing pages for [target query] in [country]. Identify the most relevant competing URLs and keyword differences. Separate data-supported observations from content hypotheses. Draft a refresh brief that preserves our article’s main intent and lists sections to inspect, evidence to add and internal-link candidates.
If the assistant also needs to read competitors’ page content, make that a separate browsing task. Ranking data can identify which pages to examine; it does not, by itself, reveal every argument or example on those pages.
