CS

cnych/seo-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

259 stars 43 forks 质量 68 趋势 0MIT

cnych/seo-mcp 是从 https://github.com/cnych/seo-mcp. 导入的 MCP 服务器候选

概览

cnych/seo-mcp 是从 https://github.com/cnych/seo-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

基于Ahrefs数据的MCP(模型控制协议)SEO工具服务。包含反向链接分析、关键词研究、流量估算等功能。

中文

概述

该服务提供从 Ahrefs 获取 SEO 数据的 API。它负责整个流程,包括破解验证码、认证和数据检索。结果会被缓存以提升性能并降低 API 成本。

本MCP服务仅供教育用途。请勿滥用。本项目灵感来源于@哥飞社群。

特色

  • 🔍 反向链接分析

  • 获取任何域名的详细反向链接数据

  • 查看域名评级、锚文本和链接属性

  • 过滤教育和政府领域

  • 🎯 关键词研究

  • 从种子关键词生成关键词创意

  • 获取关键词难度分数

  • 查看搜索量和趋势

  • 📊 交通分析

  • 估算网站流量

  • 查看交通历史和趋势

  • 分析热门页面及国家分布

  • 曲目关键词排名

  • 🚀 性能优化

  • 使用CapSolver自动求解CAPTCHA

  • 响应缓存

安装

先决条件

  • Python 3.10 或更高版本

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

SEO MCP

A MCP (Model Control Protocol) SEO tool service based on Ahrefs data. Includes features such as backlink analysis, keyword research, traffic estimation, and more.

中文

Overview

This service provides an API to retrieve SEO data from Ahrefs. It handles the entire process, including solving the CAPTCHA, authentication, and data retrieval. The results are cached to improve performance and reduce API costs.

This MCP service is for educational purposes only. Please do not misuse it. This project is inspired by @哥飞社群.

Features

  • 🔍 Backlink Analysis

    • Get detailed backlink data for any domain
    • View domain rating, anchor text, and link attributes
    • Filter educational and government domains
  • 🎯 Keyword Research

    • Generate keyword ideas from a seed keyword
    • Get keyword difficulty score
    • View search volume and trends
  • 📊 Traffic Analysis

    • Estimate website traffic
    • View traffic history and trends
    • Analyze popular pages and country distribution
    • Track keyword rankings
  • 🚀 Performance Optimization

    • Use CapSolver to automatically solve CAPTCHA
    • Response caching

Installation

Prerequisites

  • Python 3.10 or higher
  • CapSolver account and API key (register here)

Install from PyPI

pip install seo-mcp

Or use uv:

uv pip install seo-mcp

Manual Installation

  1. Clone the repository:

    git clone https://github.com/cnych/seo-mcp.git
    cd seo-mcp
    
  2. Install dependencies:

    pip install -e .
    # Or
    uv pip install -e .
    
  3. Set the CapSolver API key:

    export CAPSOLVER_API_KEY="your-capsolver-api-key"
    

Usage

Run the service

You can run the service in the following ways:

Use in Cursor IDE

In the Cursor settings, switch to the MCP tab, click the +Add new global MCP server button, and then input:

{
  "mcpServers": {
    "SEO MCP": {
      "command": "uvx",
      "args": ["--python", "3.10", "seo-mcp"],
      "env": {
        "CAPSOLVER_API_KEY": "CAP-xxxxxx"
      }
    }
  }
}

You can also create a .cursor/mcp.json file in the project root directory, with the same content.

API Reference

The service provides the following MCP tools:

get_backlinks_list(domain: str)

Get the backlinks of a domain.

Parameters:

  • domain (string): The domain to analyze (e.g. “example.com”)

Returns:

{
  "overview": {
    "domainRating": 76,
    "backlinks": 1500,
    "refDomains": 300
  },
  "backlinks": [
    {
      "anchor": "Example link",
      "domainRating": 76,
      "title": "Page title",
      "urlFrom": "https://referringsite.com/page",
      "urlTo": "https://example.com/page",
      "edu": false,
      "gov": false
    }
  ]
}

keyword_generator(keyword: str, country: str = "us", search_engine: str = "Google")

Generate keyword ideas.

在 GitHub 查看完整 README

安装

uvx --python 3.10 seo-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "SEO MCP": { "command": "uvx", "args": ["--python", "3.10", "seo-mcp"], "env": { "CAPSOLVER_API_KEY": "CAP-xxxxxx" } } } }