SEO (cnych)

Marketing and SEO

A free SEO tool MCP (Model Control Protocol) service based on Ahrefs data. Includes features such as backlinks, keyword ideas, and more.

Your AI app calls the SEO (cnych) MCP server, which does the marketing and SEO work and sends the result back to the chat.

About SEO (cnych)

SEO (cnych) is a community MCP server from cnych, filed in our directory under marketing and seo. A free SEO tool MCP (Model Control Protocol) service based on Ahrefs data. Includes features such as backlinks, keyword ideas, and more.

At a glance

Publisher
cnych (community)
Runs
See the README for setup
Written in
Python
License
MIT
GitHub stars
260

How to set up SEO (cnych)

  1. Follow the install steps in the SEO (cnych) README; it is written in Python, so have that toolchain ready.
  2. Check the SEO (cnych) README for keys or settings; the registry lists none that SEO (cnych) requires.
  3. Add SEO (cnych) to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the SEO (cnych) tools to confirm the connection.
  5. Run one read-only task with SEO (cnych) first, and keep your app asking before each tool call until the results look right.

SEO (cnych) compared with similar servers

  • Google Analytics by surendranb has fewer GitHub stars than SEO (cnych) (242 against 260); both are community servers, and both run locally.
  • TypeScript by dataforseo has more GitHub stars than SEO (cnych) (262 against 260); TypeScript is official while SEO (cnych) is a community server, and both run locally.
  • SEO Skills by seranking has fewer GitHub stars than SEO (cnych) (222 against 260); both are community servers, and SEO Skills runs as a remote server and SEO (cnych) runs on your own machine.

Before you connect SEO (cnych)

  • Give SEO (cnych) its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each SEO (cnych) tool call until you trust what it does with them.
  • Treat text that SEO (cnych) fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for SEO (cnych) on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for SEO (cnych)

How marketing and sales teams put SEO (cnych) to work, by company size. Pick the size closest to yours and start SEO (cnych) on one use case.

Small business

  • A small business can ask SEO (cnych) which pages lost rankings this month and get a short fix list instead of a dashboard to interpret.
  • Owners writing their own content can use SEO (cnych) to check keywords and competitors before drafting, so each post targets a search people make.
  • SEO (cnych) runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Content teams can connect SEO (cnych) to plan briefs from live keyword data, then track which published pages moved after a refresh.
  • Growth teams can use SEO (cnych) to compare campaign performance across channels in one question, without exporting three reports.
  • Start SEO (cnych) on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise SEO teams can run SEO (cnych) across many domains and markets to flag technical issues and cannibalized pages before a quarterly review.
  • Brand and AI search teams can use SEO (cnych) to watch how the company shows up in search and AI answers, with findings fed into the content roadmap.
  • SEO (cnych) is a community server, so have security review the code and pin a version before SEO (cnych) touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

SEO (cnych) README

From cnych/seo-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

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.

Parameters:

  • keyword (string): The seed keyword
  • country (string): Country code (default: "us")
  • search_engine (string): Search engine (default: "Google")

Returns:

[
  {
    "keyword": "Example keyword",
    "volume": 1000,
    "difficulty": 45,
    "cpc": 2.5
  }
]
get_traffic(domain_or_url: str, country: str = "None", mode: str = "subdomains")

Get the traffic estimation.

Parameters:

  • domain_or_url (string): The domain or URL to analyze
  • country (string): Country filter (default: "None")
  • mode (string): Analysis mode ("subdomains" or "exact")

Returns:

{
  "traffic_history": [...],
  "traffic": {
    "trafficMonthlyAvg": 50000,
    "costMontlyAvg": 25000
  },
  "top_pages": [...],
  "top_countries": [...],
  "top_keywords": [...]
}
keyword_difficulty(keyword: str, country: str = "us")

Get the keyword difficulty score.

Parameters:

  • keyword (string): The keyword to analyze
  • country (string): Country code (default: "us")

Returns:

{
  "difficulty": 45,
  "serp": [...],
  "related": [...]
}

Development

For development:

git clone https://github.com/cnych/seo-mcp.git
cd seo-mcp
uv sync

How it works

  1. The user sends a request through MCP
  2. The service uses CapSolver to solve the Cloudflare Turnstile CAPTCHA
  3. The service gets the authentication token from Ahrefs
  4. The service retrieves the requested SEO data
  5. The service processes and returns the formatted results

Troubleshooting

  • CapSolver API key error:Check the CAPSOLVER_API_KEY environment variable
  • Rate limiting:Reduce request frequency
  • No results:The domain may not be indexed by Ahrefs
  • Other issues:See GitHub repository

License

MIT License - See LICENSE file

Questions about SEO (cnych)

What is the SEO (cnych) MCP server?

A free SEO tool MCP (Model Control Protocol) service based on Ahrefs data. Includes features such as backlinks, keyword ideas, and more. SEO (cnych) is maintained by cnych on GitHub at cnych/seo-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the SEO (cnych) MCP server?

SEO (cnych) doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (cnych/seo-mcp). Like most servers, SEO (cnych) ends with a command or URL you paste into your AI app's MCP config.

Does SEO (cnych) need an API key?

The registry lists no required keys for SEO (cnych). Check the SEO (cnych) README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is SEO (cnych) an official MCP server?

No. SEO (cnych) is a community server maintained by cnych. Community servers can be excellent; read the code and the open issues before you give SEO (cnych) access to company data.

What license is SEO (cnych) under?

SEO (cnych) is released under the MIT license, according to its GitHub repository. The license covers the code of SEO (cnych); the service it connects to has its own terms.