Skip to main content

A Universal MCP Application: universal_mcp_ahrefs

Project description

Ahrefs Universal MCP Server

This repository contains an implementation of an Ahrefs Universal MCP (Model Context Protocol) server. It provides a standardized interface for interacting with Ahrefs's SEO and backlink analysis tools through a unified API.

The server is built using the Universal MCP framework.

This implementation follows the MCP specification, ensuring compatibility with other MCP-compliant services and tools.

Usage

You can start using Ahrefs directly from agentr.dev. Visit agentr.dev/apps and enable Ahrefs.

If you have not used universal mcp before follow the setup instructions at agentr.dev/quickstart

Available Tools

The full list of available tools is at ./src/universal_mcp_ahrefs/README.md

Local Development

📋 Prerequisites

Ensure you have the following before you begin:

  • Python 3.11+ (recommended)
  • uv (install globally with pip install uv)

🛠️ Setup Instructions

Follow the steps below to set up your development environment:

  1. Sync Project Dependencies

    uv sync
    

    This installs all dependencies from pyproject.toml into a local virtual environment (.venv).

  2. Activate the Virtual Environment

    For Linux/macOS:

    source .venv/bin/activate
    

    For Windows (PowerShell):

    .venv\Scripts\Activate
    
  3. Start the MCP Inspector

    mcp dev src/universal_mcp_ahrefs/mcp.py
    

    This will start the MCP inspector. Make note of the address and port shown in the console output.

  4. Install the Application

    mcp install src/universal_mcp_ahrefs/mcp.py
    

📁 Project Structure

.
├── src/
│   └── universal_mcp_ahrefs/
│       ├── __init__.py       # Package initializer
│       ├── mcp.py            # Server entry point
│       ├── app.py            # Application tools
│       └── README.md         # List of application tools
├── tests/                    # Test suite
├── .env                      # Environment variables for local development
├── pyproject.toml            # Project configuration
└── README.md                 # This file

📄 License

This project is licensed under the MIT License.


Generated with MCP CLI — Happy coding! 🚀

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

universal_mcp_ahrefs-0.1.1.tar.gz (137.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

universal_mcp_ahrefs-0.1.1-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file universal_mcp_ahrefs-0.1.1.tar.gz.

File metadata

File hashes

Hashes for universal_mcp_ahrefs-0.1.1.tar.gz
Algorithm Hash digest
SHA256 42da2486e6527a77f168dbb5cf791db51f5db2c570d36c4546197370a4f2903a
MD5 967a876797f578d2d70741b7b8596a8d
BLAKE2b-256 d6d4701a8d3f49479df4942c9f140a413e0cea7d30336bcb5c28c221f5efc619

See more details on using hashes here.

File details

Details for the file universal_mcp_ahrefs-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for universal_mcp_ahrefs-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2a7f08292986ba07f4d55f65167a496a07b503eb731fa6b47b2ef766f7427ef9
MD5 2100ac8dfad56a84361c53f6f4fd897b
BLAKE2b-256 6550efc579038c4cc29e7666e8142f3635d1c3f9f2376697eeb2c04a9fc9b2b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page