Token导航 LogoToken导航

MCP Server · 浏览器工具

Competitor Hunter

一个基于AI的自动化竞争对手分析工具,通过网页抓取和结构化数据提取帮助用户分析产品定价、功能和SWOT分析。

stdio官方级别未说明来源级核验工具 0
结构化数据PythonClaude浏览器自动化Claude DesktopCursor

快速开始

作者 / 组织
Duang777
提供方
Duang777
运行时
Python

工具数量

0

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

3

仓库热度

收录来源

1 个

MCP World

选型结论

Competitor Hunter 属于浏览器工具类 MCP Server,公开资料标注 0 个工具,通过stdio 本地进程接入,适配 Claude Desktop、Claude、Cursor,有可以直接复制的安装命令;接入前先确认权限范围。

分类

浏览器工具

传输方式

stdio

认证方式

无需认证

部署方式

公开资料未说明

安装与配置

安装命令

python -m venv venv

公开命令不是通用的启动方式,拼不出可靠配置示例;请在客户端 MCP 配置里按官方文档填写 command 和 args。

上手步骤

  1. 1

    准备运行环境

    stdio 服务在本地起进程,需要先装好 Python,再按安装命令拉取依赖。

  2. 2

    安装服务

    复制下面的安装命令执行;命令里带占位符的位置换成自己的密钥或路径。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 0 个工具,随便调一个只读工具确认能返回结果。

接入前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

详细介绍

🎯 竞争对手猎人

AI驱动的竞争对手分析代理 |使用MCP、LangGraph和Playwright进行自动网页抓取和结构化数据提取

Language | 语言: 英语 | 中文

______________________________________________________________________

📖 引言

竞争对手猎人 是一个生产就绪的人工智能代理,通过抓取产品页面和使用大型语言模型提取结构化信息来自动化竞争对手分析。建立在 模型上下文协议(MCP),它与Claude Desktop和其他MCP兼容客户端无缝集成。

关键能力

  • 🔍 智能网页抓取:具有反检测功能的基于浏览器的自动内容提取
  • 🤖 LLM动力提取:使用OpenAI兼容API进行结构化数据提取
  • 📊 结构化输出:Pydantic验证的产品信息(定价、功能、SWOT分析)
  • 🔄 LangGraph工作流:强大的状态管理和错误处理
  • 🔌 MCP集成:对Claude Desktop和MCP客户端的原生支持

______________________________________________________________________

🏗️ 建筑

系统如下 六边形架构 关注点明确分离。工作流:用户请求→ MCP服务器→ LangGraph工作流→ 浏览器抓取→ LLM提取→ 结构化数据响应。

______________________________________________________________________

✨ 核心功能

  • 🤖 AI驱动:使用LLM进行智能提取,并自动进行SWOT分析
  • 📊 结构化输出:Pydantic验证的数据模型(定价、功能、摘要)
  • 🛡️ 反检测:随机用户代理、智能滚动、自动截图
  • 🔌 MCP本地:与Claude Desktop和Cursor IDE无缝集成
  • 📦 CLI工具:通过专业命令行界面 competitor-hunter 命令
  • 异步/等待:完全异步编程,实现最佳性能

______________________________________________________________________

🚀 快速开始

先决条件

  • Python 3.10+ (推荐3.11或3.12)
  • 紫外线 或 诗歌 (依赖关系管理器)
  • 剧作家 浏览器(自动安装)

安装

  1. 克隆仓库:
   git clone https://github.com/your-username/competitor-hunter.git
   cd competitor-hunter
  1. 安装依赖项 (使用紫外线):
   uv sync

或者使用诗歌:

   poetry install

或者使用pip:

   python -m venv venv
   source venv/bin/activate  # On Windows: venv\Scripts\activate
   pip install -e ".[dev]"
  1. 安装Playwright浏览器:
   playwright install chromium

配置

创建一个 .env 项目根目录中的文件:

# OpenAI API Configuration
OPENAI_API_KEY=your_openai_api_key_here
OPENAI_BASE_URL=https://api.openai.com/v1  # Optional: for custom endpoints
OPENAI_MODEL_NAME=gpt-4o                    # Optional: default is gpt-4o

# Browser Configuration
HEADLESS_MODE=true                          # Set to false for debugging

# Database Configuration
DB_PATH=data/competitors.db                 # SQLite database path

💡 小贴士:复制 .env.example 到 .env 并填写您的值:

cp .env.example .env

______________________________________________________________________

📸 屏幕截图和示例

分析结果

*Notion定价页面分析截图*

CLI输出示例

$ competitor-hunter https://www.notion.so/pricing
🔍 正在分析: https://www.notion.so/pricing

✅ 分析完成!

======================================================================
📦 产品名称: Notion
🔗 URL: https://www.notion.so/pricing
🕒 更新时间: 2024-06-13 00:00:00+00:00
======================================================================

💰 定价方案 (4 个):
   • Free: 0 USD / monthly
   • Plus: 10 USD / monthly
   • Business: 20 USD / monthly
   • Enterprise: Custom USD / custom

✨ 核心功能 (13 个):
   1. AI automation
   2. Enterprise search
   3. Meeting notes
   ...

💾 结果已保存到: reports/product_Notion.json

JSON输出结构

分析结果保存为结构化JSON文件:

{
  "product_name": "Notion",
  "url": "https://www.notion.so/pricing",
  "pricing_tiers": [
    {
      "name": "Free",
      "price": "0",
      "currency": "USD",
      "billing_cycle": "monthly"
    },
    {
      "name": "Plus",
      "price": "10",
      "currency": "USD",
      "billing_cycle": "monthly"
    }
  ],
  "core_features": [
    "AI automation",
    "Docs",
    "Knowledge Base"
  ],
  "summary": "## 产品概述\nNotion 是一款集文档编辑...",
  "last_updated": "2024-06-13T00:00:00Z"
}

______________________________________________________________________

📚 用法

方法1:CLI命令(最简单)

安装后,使用 competitor-hunter 命令:

# Analyze a single website
competitor-hunter https://www.notion.so/pricing

# Specify output file
competitor-hunter https://example.com output.json

# Batch analysis
competitor-hunter https://site1.com https://site2.com https://site3.com

结果会自动保存到 reports/ 使用正确的UTF-8编码的目录。

方法2:MCP服务器模式(推荐给AI助手)

运行MCP服务器以启用与Claude Desktop或Cursor的集成:

python -m src.competitor_hunter.interface.mcp_server.server
Claude桌面集成

将以下配置添加到您的Claude桌面 claude_desktop_config.json:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json\ 视窗: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "competitor-hunter": {
      "command": "python",
      "args": [
        "-m",
        "src.competitor_hunter.interface.mcp_server.server"
      ],
      "cwd": "/path/to/competitor-hunter"
    }
  }
}
游标IDE集成

创建 .cursor/mcp.json 在项目根目录中:

{
  "mcpServers": {
    "competitor-hunter": {
      "command": "python",
      "args": [
        "-m",
        "src.competitor_hunter.interface.mcp_server.server"
      ],
      "cwd": "${workspaceFolder}"
    }
  }
}

重启后,您可以直接在聊天中使用该工具:

Analyze this competitor: https://www.notion.so/pricing

方法3:Python库

直接在Python代码中使用LangGraph工作流:

import asyncio
from competitor_hunter.core import graph, AgentState, cleanup_resources

async def analyze(url: str):
    # Initialize state
    initial_state: AgentState = {
        "url": url,
        "scraped_content": None,
        "product": None,
        "error": None,
    }
    
    # Run workflow
    result = await graph.ainvoke(initial_state)
    
    # Check results
    if result.get("error"):
        print(f"Error: {result['error']}")
        return None
    
    product = result["product"]
    print(f"Product: {product.product_name}")
    print(f"Pricing Tiers: {len(product.pricing_tiers)}")
    print(f"Features: {product.core_features}")
    
    return product

# Use
product = await analyze("https://www.notion.so/pricing")
await cleanup_resources()

输出结构

所有分析结果都保存到 reports/ 目录:

reports/
├── product_Notion.json
├── product_Example_Domain.json
└── ...

每个JSON文件包含:

  • 产品名称和URL
  • 定价层次(名称、价格、货币、计费周期)
  • 核心功能列表
  • 带SWOT分析的Markdown格式摘要
  • 上次更新时间戳

______________________________________________________________________

🧪 发展

运行测试

# Run all tests
pytest tests/ -v

# Run specific test file
pytest tests/test_crawler.py -v

# Run with coverage
pytest tests/ --cov=src/competitor_hunter --cov-report=html

代码质量

# Format code
black src/ tests/

# Lint code
ruff check src/ tests/

# Type checking (if using mypy)
mypy src/

项目结构

competitor-hunter/
├── src/
│   └── competitor_hunter/
│       ├── cli.py             # CLI command-line interface
│       ├── main.py            # Application entry point
│       ├── config.py          # Configuration management
│       ├── core/               # Domain models & LangGraph workflow
│       │   ├── models.py       # Pydantic models (CompetitorProduct, etc.)
│       │   └── graph.py        # LangGraph workflow definition
│       ├── infrastructure/     # External services
│       │   ├── browser/        # Playwright browser service
│       │   └── llm/            # LLM extractor service
│       └── interface/          # Entry points
│           └── mcp_server/     # MCP server implementation
├── config/                     # Configuration files
│   └── app.yaml.example        # Configuration template
├── docker/                     # Docker configuration
│   ├── Dockerfile              # Docker image definition
│   └── docker-compose.yml     # Docker Compose configuration
├── examples/                   # Example scripts
├── tests/                      # Test suite
├── reports/                    # Analysis results (gitignored)
├── data/                       # SQLite database (gitignored)
├── logs/                       # Screenshots & logs (gitignored)
├── pyproject.toml              # Project dependencies & CLI entry points
└── README.md                   # This file

______________________________________________________________________

📦 依赖项

核心依赖关系

  • 主控程序:模型上下文协议服务器实现
  • 兰格拉夫:工作流编排
  • 语言链:LLM集成框架
  • 剧作家:浏览器自动化
  • 皮丹提克:数据验证和序列化
  • html2text:HTML到Markdown的转换
  • 日志库:结构化日志记录

发展依赖性

  • pytest:测试框架
  • pytest异步:异步测试支持
  • 颈毛:快速Python linter
  • 黑色:代码格式化程序

______________________________________________________________________

🤝 贡献

欢迎投稿!请随时提交拉取请求。

  1. 克隆该仓库
  2. 创建功能分支(git checkout -b feature/amazing-feature)
  3. 提交您的更改(git commit -m 'Add some amazing feature')
  4. 推到分支(git push origin feature/amazing-feature)
  5. 打开拉取请求

______________________________________________________________________

📄 许可证

该项目根据 MIT许可证 -看看 许可证 文件以获取详细信息。

______________________________________________________________________

🙏 致谢

______________________________________________________________________

📞 支持

对于问题、疑问或贡献,请在 .

______________________________________________________________________

由...制作❤️ 竞争情报

工具与能力

工具数量

0

资源数量

0

提示词数量

0

能力标签

竞争对手分析Python本地部署网页抓取结构化数据AI分析自动化工具

支持客户端

Claude DesktopClaudeCursor

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

自动操作网页

打开页面、点击、填表,把浏览器动作交给模型执行。

抓结构化数据

把页面内容整理成表格或 JSON,省掉手工复制粘贴。

走一遍关键流程

按步骤检查页面是否正常,回归时少漏环节。

选择建议

值得选的地方

  • 只提供 0 个工具,职责集中,接入后不容易误操作。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 已经适配 Claude Desktop、Claude、Cursor,换客户端不用重新研究配置。

先想清楚的地方

  • stdio 方式要求本地装好 Python,换机器要重新装一遍。
  • 公开摘要偏短,具体能力和限制要回到仓库确认。
  • 第三方目录整理,版本更新和行为细节以官方仓库为准。

更适合

  • 需要在浏览器工具场景里让模型直接调用外部能力的人。
  • 已经在用 Claude Desktop 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
Competitor Hunter

MCP World · 本页

0stdio有1 个2026-05-17
Fetch 9a2682de

MCP.so

1SSE有3 个2026-05-17
Browser 738d52bc

MCP World

0stdio有1 个2026-05-17
Playwright MCP Server

MCP.so

21stdio有4 个2026-05-17
Skyvern MCP

MCP World

0stdio有2 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

Competitor Hunter 怎么安装?

公开资料给出的安装命令是 python -m venv venv,运行环境为 Python。装完后按客户端要求写进 MCP 配置,重启客户端生效。

Competitor Hunter 怎么在 Claude Desktop、Cursor 里配置?

它是stdio 本地进程,客户端配置里要写启动命令和参数,运行环境是 Python;保存后完全退出客户端再打开,配置才会生效。

Competitor Hunter 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Competitor Hunter 需要 API Key 吗?

公开资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

Competitor Hunter 支持哪些客户端?

公开资料标注支持 Claude Desktop、Claude、Cursor;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

来源信息

继续浏览同类 MCP