MCPSearch

MCPSearch

AI-powered multi-source research and crawling platform with MCP integration, enabling web search, crawling, social source aggregation, and structured research workflows.

Category
访问服务器

README

MCPSearch

AI-powered multi-source research and crawling platform with MCP integration

License: MIT Python 3.11+ MCP Compatible

Overview

MCPSearch is a self-hosted research stack for agents and developers. It combines:

  • parallel web search across multiple engines
  • HTTP + browser + stealth crawling
  • social and developer-source collection
  • structured content extraction
  • MCP-native tool exposure
  • higher-level research workflows via investigate, compare, and trending

The project has grown beyond a simple crawler. The current shape is:

Current Capabilities

  • Web search: DuckDuckGo, Google, and Bing aggregation
  • Crawling modes: fast via HTTP only, hybrid via HTTP + Playwright, stealth via anti-bot fallback
  • Extraction: markdown/text extraction, tables, code blocks, images, metadata, JSON-LD/OpenGraph/Microdata via extruct
  • Fast parsing: selectolax on hot search parsing paths with BeautifulSoup fallback
  • Social sources: Reddit, Twitter/X, YouTube, GitHub
  • HTTP caching: shared async client factory with optional Hishel-backed caching on request-heavy paths
  • Research workflows: research_agent, investigate, compare, trending
  • Tool discovery: list_tools, describe_tools, get_crawl_stats

Install

Basic install

git clone https://github.com/JonusNattapong/MCPSearch.git
cd MCPSearch
pip install -e .
playwright install chromium

Development install

make dev

or:

pip install -e ".[dev]"
playwright install chromium

Optional stealth dependency

crawler/stealth.py can use Camoufox when it is installed. If Camoufox is not available, MCPSearch falls back to Playwright-based stealth behavior.

Environment variables

  • OPENAI_API_KEY Optional. Used by summarization flows when AI summaries are enabled.

Quick Start

CLI

# Search
mcpsearch search -q "AI agents"

# Crawl a page
mcpsearch crawl -u "https://example.com"

# Read a page in terminal-friendly format
mcpsearch read -u "https://example.com"

# Research workflow
mcpsearch research --query "browser fingerprinting" --depth deep --summarize

# Compare topics
mcpsearch compare --compare "React" "Vue" "Svelte" --depth medium

# Trending view
mcpsearch trending --max-results 10

# Run MCP server
mcpsearch server

Python / MCP-facing examples

# Unified tool
mcpsearch(action="search", query="LLM agents", limit=5)
mcpsearch(action="crawl", url="https://example.com", mode="hybrid")
mcpsearch(action="reddit", query="python", subreddit="learnpython")
mcpsearch(action="github", query="browser automation", sort="stars")

# Multi-action orchestration
mcpsearch_multi(actions='[
  {"action":"search","query":"agent memory patterns"},
  {"action":"reddit","query":"LocalLLaMA"},
  {"action":"github","query":"llm agents","sort":"stars"}
]')

# Flagship research tools
investigate(topic="Python async scraping", depth="deep", include_social=True)
compare(topics="React,Vue,Svelte", depth="medium", max_sources=3)
trending(platforms="reddit,github", limit=10)

MCP Integration

Claude Desktop

{
  "mcpServers": {
    "mcpsearch": {
      "command": "python",
      "args": ["-m", "mcp_server"],
      "cwd": "/path/to/MCPSearch",
      "env": {
        "OPENAI_API_KEY": ""
      }
    }
  }
}

Cursor

{
  "mcpServers": {
    "mcpsearch": {
      "command": "python",
      "args": ["-m", "mcp_server"],
      "cwd": "/path/to/MCPSearch"
    }
  }
}

Custom MCP client

{
  "command": "python",
  "args": ["-m", "mcp_server"],
  "transport": "stdio"
}

Tool Map

Unified tools

  • mcpsearch
  • mcpsearch_multi

Search and crawl tools

  • web_search
  • search_and_summarize
  • smart_search
  • deep_search
  • crawl_url
  • hybrid_crawl
  • crawl_recursive
  • extract_content
  • get_crawl_stats

Social tools

  • search_reddit
  • get_subreddit
  • get_reddit_post
  • search_twitter
  • get_user_tweets
  • search_youtube
  • get_youtube_channel
  • get_youtube_content
  • search_github
  • get_github_user
  • get_github_repo
  • get_github_readme

Research tools

  • research_agent
  • investigate
  • compare
  • trending

Discovery tools

  • list_tools
  • describe_tools

Recommended Entry Points

If you are integrating MCPSearch into an agent:

  • start with list_tools and describe_tools
  • prefer mcpsearch for simple routing
  • use mcpsearch_multi when you want parallel source gathering
  • use investigate for richer topic-oriented research
  • use compare when the output should be side-by-side
  • use trending for source discovery and early signal collection

Research Workflows

investigate

Best when you want one topic explored across search, crawl, and social sources.

investigate(
    topic="anti-bot browser strategies",
    depth="deep",
    include_social=True,
    include_summary=True,
    max_sources=5,
)

compare

Best when you want repeated shallow or medium investigations and a compact comparison result.

compare(
    topics="Playwright,Selenium,Camoufox",
    depth="medium",
    max_sources=3,
)

trending

Best when you want new leads before deeper crawling.

trending(
    platforms="reddit,github",
    limit=10,
)

Architecture

Request flow

Query / URL / Topic
        |
        v
  mcpsearch / direct tool
        |
        v
 mcp_server/handlers.py
        |
        +--> search/aggregator.py
        +--> crawler/engine.py
        +--> crawler/hybrid.py
        +--> crawler/stealth.py
        +--> social/*.py
        +--> agents/research_agent.py

Crawl strategy

fast    -> HTTP only
hybrid  -> HTTP first, then browser rendering when needed
stealth -> multi-browser / anti-bot fallback path

Current project structure

MCPSearch/
├── agents/                 # Higher-level research orchestration
├── crawler/                # HTTP, hybrid, stealth, extraction logic
├── mcp_server/             # MCP server, unified tools, shared handlers
├── search/                 # Search aggregation
├── social/                 # Reddit, Twitter/X, YouTube, GitHub scrapers
├── summarizer/             # AI summarization helpers
├── tests/                  # Workflow and unit tests
├── utils/                  # Cache, dedup, rate limiting
├── cli.py                  # CLI entry point
├── Makefile                # Dev/test/release commands
└── pyproject.toml          # Package metadata and dependencies

Development

Useful commands

make install
make dev
make test
make test-cov
make lint
make lint-fix
make format
make server
python3 scripts/benchmark_search_and_crawl.py

Focused test commands

make test-hybrid
make test-rate-limiter
pytest tests/test_extractor.py -v
pytest tests/test_search_parsers.py -v
pytest tests/test_mcp_integration.py -v
pytest tests/test_mcp_tools.py -v

Release

make patch
make minor
make major

Version is sourced from mcpspider/version.py.

Project Status Notes

  • The README now reflects mcpsearch / mcpsearch_multi, not the older scout naming.
  • Playwright is part of declared dependencies.
  • Camoufox support exists in code, but is optional at install time.
  • The main research direction is now orchestration, attribution, and multi-source analysis, not just single-page crawling.

Practical Next Improvements

See docs/USEFUL_LIBS.md for a curated list of libraries and implementation tricks that fit the current architecture.

Legal and Ethical Usage

Use MCPSearch responsibly.

  • Respect target site policies and applicable law.
  • Use rate limiting and caching to reduce load.
  • Review platform terms before large-scale scraping.
  • Avoid collecting or redistributing restricted personal data.

Contributing

Contribution guidance lives in CONTRIBUTING.md.

License

MIT. See LICENSE.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选