Ahrefs Logo

Ahrefs

Official 1-Click Ready Remote Remote

Integrates with Ahrefs' SEO and marketing APIs to provide rank tracking, keyword research, batch ana...

112 views
6 installs
Updated Oct 6, 2025
Not audited
Integrates with Ahrefs' SEO and marketing APIs to provide rank tracking, keyword research, batch analysis, search volume data, and competitor insights for search marketing intelligence workflows.

To obtain your Ahrefs API key and configure the Ahrefs MCP server, follow these steps:

  1. Log in to Your Ahrefs Account

  2. Access Account Settings

    • After logging in, click on your profile icon located in the top-right corner.
    • From the dropdown menu, select "Account Settings."
  3. Navigate to the API Section

    • In the Account Settings menu, find and click on the "API" tab or section.
  4. Generate a New API Key

    • If you don't have an existing API key, click on the "Generate API Key" button.
    • A new API key will be created and displayed.
  5. Copy Your API Key

    • Carefully copy the generated API key. Ensure you store it securely, as it will be used to authenticate your requests.
  6. Configure the Ahrefs MCP Server

    • Open your AI assistant application's configuration file.

    • Locate the section for MCP servers and add the following configuration, replacing "YOUR_API_KEY_HERE" with the API key you obtained:

      {
          "mcpServers": {
              "ahrefs": {
                  "command": "npx",
                  "args": [
                      "--prefix=~/.global-node-modules",
                      "@ahrefs/mcp"
                  ],
                  "env": {
                      "API_KEY": "YOUR_API_KEY_HERE"
                  }
              }
          }
      }
      
    • For Windows users, ensure the --prefix path is correctly set to your user directory, and use double backslashes (\\) in the path.

  7. Save and Restart Your Application

    • Save the configuration file.
    • Restart your AI assistant application to apply the new settings.

By completing these steps, your Ahrefs MCP server should be configured and ready for use.

Quick Start

View on GitHub

More for Analytics and Data

View All →

Similar MCP Servers

B

Backlinks (Ahrefs)

Retrieves detailed backlink data from Ahrefs including anchor text, domain rating, and URL information for SEO analysis and link building strategies.

API Development Analytics and Data
48
0
G

Google Search Console

Analyze SEO metrics and search performance data.

Analytics and Data
103
1

Report Issue

Thank you! Your issue report has been submitted successfully.