Ahrefs MCP server setup: official server, OAuth, MCP keys and plans

The official hosted Ahrefs MCP server is available on paid plans from Lite, with OAuth consent or manually generated MCP keys, and Enterprise customers may also use API keys. Company SSO is not a documented control of the server itself.

On this page

Does the Ahrefs MCP server meet our sign-in and access requirement?

The official hosted Ahrefs MCP server at ` is available on paid plans starting from Lite, and the Ahrefs docs describe two sign-in paths: OAuth with a consent screen, and a manually generated MCP key created in the account. Enterprise customers may also connect with their API keys. The sources supplied for this page do not document company identity provider SSO (such as SAML or OIDC federation through your own IdP) for the MCP server, so do not assume it. Ask Ahrefs in writing whether employees can be forced through corporate SSO, whether login can be restricted to approved domains, and what happens to access when an employee leaves.

Until Ahrefs confirms otherwise, the controls sit with your team. The OAuth consent screen is granted by the individual who signs in, so the account holder decides which Ahrefs account and which workspace the AI client receives. Confirm which workspace is selected during consent, because the Claude Code guide has the user choose a workspace before clicking Allow. For MCP keys, the key is generated under Account Settings, API Keys and sent as a Bearer authorization header, so the person who generates it effectively holds the access. Decide who may create keys, where they are stored, and how and how often they are rotated or revoked. Ask Ahrefs how key revocation works and whether admins can see or revoke keys issued by other users.

Before approving a rollout, write down three answers: which identity owns each connection, which workspace it reads, and who can issue and revoke keys. If Ahrefs cannot show a central admin view of these connections, plan for a named owner who reviews them on a fixed schedule and removes any connection tied to a departed employee. For Enterprise customers choosing API keys, treat those keys as shared secrets and check how they are scoped before distribution. Tool-level limits and unit allowances are covered in the security section of this page.

Which plan or option supports each connection method

This table compares each way to connect the hosted Ahrefs MCP server with the plan or edition that supports it. Read the status column first: built in means the feature belongs to the Ahrefs server, paid only means it depends on a paid tier or add-on, outside component means the control sits in the AI client or its vendor, and not documented means the Ahrefs sources do not describe it. Confirm every not documented item with Ahrefs before approving a rollout.

OptionWhat the sources sayStatus
Hosted MCP server accessRequires a paid Ahrefs plan starting from Lite. Each plan has its own monthly API unit allowance and row limit per request.Paid only
OAuth with consent screenStaff sign in to Ahrefs, select a workspace and click Allow. Works only in clients that support this sign-in flow.Built in
Manually generated MCP keyCreated under Account Settings, then API Keys, and sent as a Bearer authorization header in the client.Built in
Enterprise API keysEnterprise customers may connect with their API keys. Confirm the key type, scope and owner with Ahrefs before use.Paid only
Additional API unit add-onsEnterprise customers can buy extra API units. MCP calls draw from the same monthly allowance as direct API calls.Paid only
Company SSO for MCP sign-inThe Ahrefs MCP docs do not describe SSO enforcement for this connection. Ask Ahrefs whether workspace SSO applies.Not documented
AI client admin controlsConnector approval, allowlists and sign-in policy are set in the client product, such as Claude or ChatGPT, not in Ahrefs.Outside component

How the hosted server authenticates and spends API units

Every AI client reaches the same Streamable HTTP endpoint, so the authentication method decides whose identity and whose allowance each call uses. The endpoint is With OAuth, the user signs in to Ahrefs, selects a workspace and approves a consent screen, so the connection is tied to that person's login and the workspace they picked. With a manually generated MCP key, the key is created under Account Settings and API Keys and sent as a Bearer authorization header. Enterprise customers may also connect with their API keys. Security reviewers should decide which method each client may use, record who generated each key, and confirm with Ahrefs how keys are revoked when someone leaves or a client is retired.

Every MCP call a third-party app makes on a user's behalf draws from the account's monthly API unit allowance, the same way direct API usage does. This makes unit spend a shared governance question, not only a cost line. A single assistant running many tool calls can exhaust the allowance that other staff and scripts depend on. Before rollout, confirm with Ahrefs the allowance for the plan you hold, whether Enterprise add-on units apply to your contract, and whether the maximum rows per request for your plan is enough for the work you expect. Ask who receives usage reports and what happens when the allowance runs out.

Setup is synced across all devices linked to a personal or company account, so a connection made on one laptop can follow the user to other devices. Treat that as a governance matter. Decide whether connections may be made only under company accounts, whether personal Ahrefs accounts may be used for company data, and how a departing employee's linked devices and connections are removed. Confirm these points with Ahrefs in writing, since the docs describe the sync behavior without listing the admin tools for removing it.

Decisions to make before choosing OAuth or an MCP key

Before any employee connects an AI client to Ahrefs, the team needs to settle how the connection authenticates, whose account it sits under, and which workspace it reaches. Each choice shapes who is accountable for calls, which client is trusted, and how much of the shared monthly allowance is consumed. The cards below set out these decisions in the order a review usually needs them.

Connection method: OAuth or MCP key

OAuth opens an Ahrefs consent screen where the signed-in user approves access, and the client holds the resulting grant. A manually generated MCP key is created under Account Settings, API Keys and sent as a Bearer authorization header, so anyone holding the key can make calls until it is revoked. Decide which method each client may use, and record who is allowed to create keys. Confirm with Ahrefs how each method is revoked and whether a key can be limited further.

Claude Desktop/Web guide

Account owner: personal or company

The Ahrefs docs state that once connected, the setup syncs across all devices linked to your personal or company account. A connection made from a personal login means calls and their unit consumption trace to that individual, and the connection leaves when that person leaves. A company-account connection keeps ownership with the organization but still depends on which person completed sign-in. Decide the owning account before rollout and document it in the access register.

Workspace selected at consent

The Claude Code guide has the user log in to Ahrefs, select a workspace and click Allow. That choice determines which data the AI client can reach, so a consent given for the wrong workspace exposes the wrong projects. Require that each user confirm the workspace name on the consent screen and that the security team know which workspaces are in scope. Ask Ahrefs whether workspace selection can be changed after consent and how to remove a grant.

Key ownership and rotation

An MCP key is a shared secret, and the Ahrefs docs do not describe a company-level key vault or rotation schedule in the material supplied here. Decide who creates keys, where they are stored, and who revokes them when a device is lost or an employee changes role. Ask Ahrefs for the exact steps to generate, rotate and revoke a key, and whether one key can be issued per user rather than shared across a team.

Shared monthly unit budget

The Ahrefs docs say MCP calls made by a third-party app on your behalf consume API units from your monthly allowance, the same way as direct API usage. Every connected client, scheduled agent and user therefore draws from one pool. Each plan has its own monthly allowance and per-request row maximum, so confirm the figures for the plan you buy. Enterprise customers can purchase additional unit add-ons, which is the lever to revisit if usage grows.

Approved client: Claude, ChatGPT or Claude Code

Each supported client has its own connection path. The ChatGPT Web guide describes MCP client access as beta, available in Developer mode for Pro and Plus accounts on the web, with OAuth and blank client ID and secret fields. Claude Desktop, Claude Web and Claude Code use different steps and sign-in flows. Approve clients by name, confirm which plan each client needs, and note that a beta client may change before general availability.

ChatGPT Web guide

How the answer changes by client and plan

Claude Desktop and Claude Web support two routes to the hosted Ahrefs server. The first uses OAuth through an Ahrefs entry in Claude's approved connectors, where the user signs in and approves access on a consent screen. The second uses an MCP key generated under Account Settings, then API Keys, and sent as a Bearer authorization header. The two routes fail differently: OAuth ties access to an individual Ahrefs login, while a key is a standing credential that anyone holding it can use.

  • Connector approval: Confirm which users can add Ahrefs from the approved connectors and whether your Claude plan lets admins restrict connectors for the organization.
  • Key ownership: A manually generated MCP key belongs to the account that created it, so confirm whose account it is and who holds a copy.
  • Header handling: Confirm where the Bearer header is stored on each device and that it is not pasted into shared configuration files.
  • Consent scope: Review what the OAuth consent screen asks for and whether a user can accept it on behalf of a company workspace.
  • Revocation: Confirm how a departing user's connector or key is revoked and tested.

Before approving this route, check which of the two methods staff are permitted to use and document it.

Order of work for approving the connection

This sequence moves from confirming who can hold the Ahrefs account to proving that only approved clients can reach the hosted MCP server. Each step ends with a record that a security or procurement reviewer can check.

  1. Confirm the plan and account owner

    Confirm that the Ahrefs plan in use is paid and at Lite or higher, since the remote MCP server is available from that tier. Name the account owner who will hold the subscription, the billing contact and the people who may sign in with company credentials. Ask the vendor which plan's monthly API unit allowance and row limit apply to your account, and whether Enterprise add-on units are part of your contract. The step is done when the plan name, owner and allowance are written in the approval record.

  2. Choose the connection method per client

    For each AI client on the approved list, pick one supported method: OAuth with a consent screen, or an MCP key generated in account settings. The Ahrefs guides cover Claude Desktop and Web, Claude Code and ChatGPT Web, and each client has its own sign-in path. Record which method each client uses and whether it is OAuth or a Bearer header. Enterprise customers may also use API keys, so confirm with Ahrefs whether that option applies to your contract before recording it. The step is done when the client-to-method table is signed off.

  3. Decide workspace and key ownership

    Decide which workspace the connection will use and who owns each MCP key. A key tied to a named individual leaves a gap when that person changes roles, so ask whether keys can be issued to a team-controlled account and who can revoke them. Confirm that the setup syncs across devices linked to the company account, which means a connection made on one device may reach others. The step is done when each key has a named owner, a revocation contact and a recorded workspace.

  4. Set the unit budget against the allowance

    Remember that MCP calls made by a third-party app on your behalf draw from the same monthly API unit allowance as direct API use, so one busy client can exhaust the budget for others. Compare expected usage by approved client with the plan's allowance and per-request row limit, and agree a monitoring owner who checks consumption. Ask Ahrefs how per-key unit limits can be set, if they can be set at all. The step is done when the budget owner, the allowance figure and the monitoring routine are documented.

  5. Test that only approved clients connect

    Run a test where each approved client connects with its agreed method and shows the expected tools, then attempt a connection from an unapproved client or an unapproved key to confirm it is refused or never issued. Include a check that a revoked key stops working. Record the date, client, method and result for each test. Use an illustrative test plan with a short list of clients rather than assuming the account will block unknown tools on its own. The step is done when every approved client passes and every unapproved attempt fails.

  6. Write the no-custom-client rule into staff policy

    The Ahrefs docs state that using the external MCP endpoint through custom scripts, bridges or standalone HTTP or JSON-RPC clients is unsupported and not permitted, and they point to the public API for programmatic access. Add that rule to the acceptable use or AI tool policy, name the approved clients, and tell staff who approves exceptions. Make sure developers who build scripts know to use the public API route through its own controls. The step is done when the policy text is approved by the policy owner and distributed to the staff who will connect tools.

  7. Record the evidence for review

    Assemble one approval file that holds the plan confirmation, the account owner, the client-to-method table, key owners, the budget and monitoring owner, the test results and the signed policy. Store it where the security reviewer and procurement can retrieve it, and set a review point to recheck the file when plans, clients or staff roles change. Confirm with the vendor what logs are available for connections and consumption before relying on them as evidence. The step is done when the security reviewer has accepted the file.

How the client, Ahrefs login and API units connect

The diagram starts with the AI client, which chooses one of two ways to authenticate. The OAuth path sends the user through an Ahrefs login and a workspace consent step, while the MCP key path sends a key generated under Account Settings as a Bearer authorization header. Both paths reach the same hosted endpoint, and each call that runs through it draws from your plan's monthly API unit allowance. Check which path your company permits, who holds the key, and who monitors unit consumption.

Two sign-in paths meet at the hosted endpoint, and every call draws from the same unit allowance.

What a security reviewer asks to see

This table pairs each question a reviewer raises about the Ahrefs MCP server with the evidence that answers it and where that evidence comes from. Read it before approving a rollout, because several answers depend on the plan, the connection method, or the account that granted consent. Where a row says to confirm, the figure or setting is not fixed by public documentation and should be requested from Ahrefs or checked in the account.

Reviewer questionEvidence to requestWhere it comes from
Which plan includes the server?Current plan record showing Lite or higher, and any Enterprise API unit add-onsAhrefs account billing page and written plan terms from Ahrefs
Which connection method does each client use?Per-client record stating OAuth consent or a manually generated MCP key sent as a Bearer headerClient configuration on each device and the Ahrefs setup guide used for that client
Which account and workspace did consent select?Screenshot or log of the OAuth consent screen, with the account and workspace name recordedAhrefs login and workspace selection during the Claude Code or Claude Desktop flow
Who holds MCP keys and when were they rotated?Inventory of keys with owner, creation date, last rotation and revocation stepsAccount Settings, API Keys in the Ahrefs account, maintained by the account owner
Are Enterprise API keys used, and by whom?Written decision on whether API keys are permitted for MCP access and a list of holdersAhrefs documentation for Enterprise customers and the internal access policy
How many API units can AI calls consume?Monthly allowance for the plan, usage history, and per-key or per-tool limits if offeredAhrefs plan details and account usage reports; confirm any per-key limit with Ahrefs
Does MCP traffic draw from the same allowance as other API use?Usage record showing MCP calls drawn from the monthly API unit allowanceAhrefs documentation stating third-party app calls consume API units like direct API usage
Is any custom or unofficial endpoint use prohibited?Written internal policy that bans custom scripts, bridges and standalone HTTP or JSON-RPC clients against the MCP endpointAhrefs documentation stating that such use is unsupported and not permitted, with programmatic access directed to the public API
Can the same setup sync to other devices?List of devices and accounts linked to the company setup, reviewed against the approved listAhrefs documentation stating that the setup syncs across devices linked to the account

Questions buyers ask before approving the Ahrefs MCP server

Does the Ahrefs MCP server support SSO with our identity provider?

The supplied Ahrefs documentation describes two connection methods: OAuth with a consent screen, and a manually generated MCP key created under Account Settings and API Keys. It does not describe a SAML or OIDC single sign-on integration that your identity provider manages for every user. Ask Ahrefs in writing whether its OAuth sign-in can be tied to your corporate identity provider, whether it can enforce company-only accounts, and how a user's access is removed when they leave. Until that answer is in hand, treat each person's Ahrefs login as a separate account that your joiner and leaver process must cover.

Which Ahrefs plan do we need to connect the MCP server?

The Ahrefs documentation says the hosted MCP server is available on paid plans starting from Lite, so Lite is the lowest plan that includes it. Higher plans carry larger monthly API unit allowances and higher maximum rows per request, and those allowances decide how much your team can run before it is capped. Confirm the current plan names, prices and allowance for each plan directly with Ahrefs, since the supplied material does not list them. Match the plan to the number of users and the expected query volume, not only to the feature list.

Are Enterprise API keys required to use the MCP server?

No. The Ahrefs documentation says you can connect through OAuth or through a manually generated MCP key, and that Enterprise customers may also connect with their API keys. Enterprise API keys are an additional option for Enterprise accounts, not a requirement for every plan. Choose the method your security team can govern best, and confirm with Ahrefs which key type your plan supports before you write it into the rollout standard.

What drives API unit cost, and who pays for add-ons?

Usage is metered in API units from your monthly allowance. The Ahrefs documentation says MCP calls made by a third-party app on your behalf consume units the same way as direct API usage, so every question an assistant answers draws from the same pool as scripts and dashboards. The main cost drivers are the number of users, how often assistants run queries, the size of each request set by the rows limit, and the plan's allowance. The documentation says Enterprise customers can buy additional API unit add-ons. Your company pays Ahrefs for the subscription and any add-ons, and your own AI tool vendor bills separately for its seats. Ask Ahrefs for the unit cost of common calls and whether add-ons recur monthly or are one-time.

Can our team configure the Ahrefs MCP server without outside help?

Probably yes for a single user on a supported client, because the Ahrefs guides for Claude Desktop and Web, Claude Code and ChatGPT Web describe the connection steps directly. The steps are short, but the approval decision is the harder part. Before rollout, your team should decide which clients are allowed, who may create MCP keys, where keys are stored, how keys are rotated, and how workspace access is chosen during OAuth consent. Those choices must be written as a standard and then checked across every device a person links to a company account. Teams without an identity, secrets or endpoint specialist often find this governance work is where outside help is useful.

What would a partner do, and what would it need from us?

DeployOpen is a Chainscore Labs company that tests AI agent setups, including prompt injection, tool and file permissions, data exposure, credential handling, SSO and admin settings, and delivers a findings report with fixes and a retest. For an Ahrefs rollout, that work would cover how the connection is authenticated, which clients are approved, how keys are stored and whether the setup matches your written standard. A partner would need the list of AI clients in scope, your identity and admin policies, the Ahrefs plan and account owner, and the data your team plans to query. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work begins, and a quote follows from that written scope.

How long does an Ahrefs MCP rollout take?

No rollout duration is supplied for this connection, so do not plan around a figure from this page. The time depends on how many clients you approve, whether you need a written key-handling standard, and how many people must be connected and checked. Ask Ahrefs for its own onboarding guidance and any limits on account setup. Then ask your security or partner team to agree a fixed timeline in writing that lists the clients, users and tests in scope.

Official pages to check each claim against

Check every connection step against the Ahrefs documentation before you approve it, because the setup guides differ by client and the vendor can update them. Start with the What is Ahrefs MCP page. Confirm which plans include the hosted server (the docs say paid plans starting from Lite), how the monthly API unit allowance and per-request row limit apply to each plan, and the statement that third-party apps consume units from your allowance. Then confirm the exact endpoint, ` against the docs before you put it in any client configuration.

Next, read the client guide for each tool your staff will use. The Claude Desktop/Web guide covers two methods: OAuth through an Ahrefs entry in Claude's approved connectors, and an MCP key from Account Settings, API Keys, sent as a Bearer header. Confirm which method your admins will allow, and whether the key path is limited to Enterprise customers as the topic facts describe. The Claude Code guide shows the claude mcp add command and the browser-based login with workspace selection. Check that the workspace chosen during sign-in is the one your company expects.

Finally, review the ChatGPT Web guide and the tool categories page together. The ChatGPT guide describes MCP client access as beta, limited to Developer mode on Pro and Plus web accounts, so confirm whether that still matches your ChatGPT plan before you allow it. The tool categories page lists what each group of tools can reach, which is the basis for the scoping decisions covered in the security section. Record the date you reviewed each page, since these guides change.

How DeployOpen reviews an Ahrefs MCP rollout

DeployOpen reviews how an organization connects Ahrefs through its official hosted MCP server, from the plan that carries the connection to the OAuth or MCP key method each team uses. We test the setup in the client's own environment and hand over a documented configuration that security and procurement reviewers can check.

How we scope

  • Written scope lists which Ahrefs plans, workspaces and AI clients are in the rollout.
  • We confirm which connection method applies to each client: OAuth consent or a manually generated MCP key.
  • Scope records who owns API unit allowances and how monthly usage will be checked.
  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we build

  • We set up the official endpoint for each approved client, following the vendor's documented steps.
  • We check that MCP keys are created under the correct account, stored safely and limited to the intended use.
  • We test what a connected client can reach, including the tool groups and row limits in use.
  • We review how Enterprise API key access is handled where the organization chooses to use it.

How we hand over

  • You receive a written configuration record covering plan, connection method, key owners and client settings.
  • Findings from testing come with specific fixes, followed by a retest of the changed settings.
  • Documentation gives approvers the evidence they need to permit or restrict each client.
  • Handover notes list which settings must be confirmed with Ahrefs and which must be rechecked after plan changes.

How we support

  • Ongoing support is available as a retainer for changes to clients, keys and tool access.
  • Retainers can include periodic retesting when new AI clients or Ahrefs tool groups are approved.
  • We help teams review monthly API unit consumption against the allowance for their plan.
  • Support questions about vendor behavior are routed back to the Ahrefs documentation and account owner.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.