MS

mrgoonie/seo-insights-mcp-server

开发工具

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

28 stars 9 forks 质量 68 趋势 11MIT

TypeScript模型上下文协议(MCP)服务器,用于SEO洞察。提供用于反向链接、关键词研究和流量分析的SEO工具。

概览

该项目提供了一个模型上下文协议(MCP)服务器,将AI助手与SEOAPI连接起来,用于反向链接分析、关键词研究和流量分析。 本项目与本项目中使用的任何API无任何关联。解析Ahrefs验证码需要CAPSOLVER的API密钥。 - [x] 获取任意域名的反向链接列表 - [x] 为任意种子关键词生成关键词创意 - [x] 检查关键词难度和搜索结果分析 - [x] 分析网站流量和表现最佳内容 - [x] “stdio” 传输 - CLI 默认传输 - [x] “可流式 HTTP” 传输 - 面向基于网页的客户端 - [ ] 实现认证(“带有承载的”授权“头部)- [x] ~~”sse“ 传输~~ - [ ] 写测试 您可以使用以下环境变量配置 HTTP 服务器: - MCP_HTTP_HOST:绑定主机(默认:127.0.0。

概述(AI 翻译)

该项目提供了一个模型上下文协议(MCP)服务器,将AI助手与SEOAPI连接起来,用于反向链接分析、关键词研究和流量分析。

  • GitHub
  • NPM

免责声明

本项目与本项目中使用的任何API无任何关联。 你需要一个 CAPSOLVER API 密钥来解析 Ahrefs 验证码。

可用功能

SEO工具

  • [x] 获取任意域名的反向链接列表
  • [x] 为任意种子关键词生成关键词创意
  • [x] 检查关键词难度和搜索结果分析
  • [x] 分析网站流量和表现最佳内容

支援的运输舰

  • [x] “stdio” 传输 - CLI 默认传输
  • [x] “可流式HTTP”传输 - 面向基于网页的客户端
  • [ ] 实现认证(“带有Bearer 的授权”头)
  • [x] “sse” 运输 (已废弃)
  • [ ] 写测试

如何使用

CLI

MCP设置

本地配置时带stdio传输:

用于远程HTTP配置:

HTTP 传输环境变量:

您可以使用以下环境变量配置 HTTP 服务器:

  • MCP_HTTP_HOST:要绑定的宿主(默认:127.0.0.1)

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

README

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

SEO Insights MCP Server

This project provides a Model Context Protocol (MCP) server that connects AI assistants to SEO APIs for backlinks analysis, keyword research, and traffic analysis.

Disclaimer

This project is not affiliated with any of the APIs used in this project. You will need a CAPSOLVER API key to resolve Ahrefs captchas.

Available Features

SEO Tools

  • [x] Get backlinks list for any domain
  • [x] Generate keyword ideas for any seed keyword
  • [x] Check keyword difficulty and SERP analysis
  • [x] Analyze website traffic and top performing content

Supported Transports

  • [x] “stdio” transport - Default transport for CLI usage
  • [x] “Streamable HTTP” transport - For web-based clients
    • [ ] Implement auth (“Authorization” headers with Bearer )
  • [x] “sse” transport (Deprecated)
  • [ ] Write tests

How to use

CLI

# Analyze website traffic
npm run dev:cli -- get-traffic --domain "example.com"
# Equivalent to
npm run dev:cli -- get-traffic --domain "example.com" --mode "subdomains"

# Analyze website traffic for a specific country
npm run dev:cli -- get-traffic --domain "example.com" --mode "exact" --country "uk"

# Get backlinks for a domain
npm run dev:cli -- get-backlinks --domain "example.com"

# Generate keyword ideas
npm run dev:cli -- keyword-generator --keyword "seo tools" --country "us"

# Generate keyword ideas with specific search engine
npm run dev:cli -- keyword-generator --keyword "seo tools" --country "us" --search-engine "Google"

# Check keyword difficulty
npm run dev:cli -- keyword-difficulty --keyword "seo analytics" --country "us"

MCP Setup

For local configuration with stdio transport:

{
  "mcpServers": {
    "seo-insights": {
      "command": "node",
      "args": ["/path/to/seo-insights-mcp-server/dist/index.js"],
      "transportType": "stdio"
    }
  }
}

For remote HTTP configuration:

{
  "mcpServers": {
    "seo-insights": {
      "type": "http",
      "url": "http://localhost:8080/mcp"
    }
  }
}

Environment Variables for HTTP Transport:

You can configure the HTTP server using these environment variables:

  • MCP_HTTP_HOST: The host to bind to (default: 127.0.0.1)
  • MCP_HTTP_PORT: The port to listen on (default: 8080)
  • MCP_HTTP_PATH: The endpoint path (default: /mcp)

Source Code Overview

What is MCP?

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "seo-insights": { "command": "node", "args": ["/path/to/seo-insights-mcp-server/dist/index.js"], "transportType": "stdio" } } }