Skip to main content
Glama

Spider MCP - Web Search Crawler Service

A web search MCP service based on pure crawler technology, built with Node.js.

Features

  • āŒ No Official API Required: Completely based on crawler technology, no dependency on third-party official APIs

  • šŸ” Intelligent Search: Supports Bing web and news search

  • šŸ“° News Search: Built-in news search with time filtering

  • šŸ•·ļø Pure Crawler: No official API dependency, uses Puppeteer for web scraping

  • šŸš€ High Performance: Supports batch web scraping

  • šŸ“Š Health Monitoring: Complete health check and metrics monitoring

  • šŸ“ Structured Logging: Uses Winston for structured logs

  • šŸ”’ Anti-Detection: Supports User-Agent rotation and other anti-bot measures

  • šŸ”— Smart URL Cleaning: Automatically cleans promotional parameters while preserving essential information

Related MCP server: AnyCrawl MCP Server

Tech Stack

  • Node.js (>= 18.0.0)

  • Express.js - Web framework

  • Puppeteer - Browser automation

  • Cheerio - HTML parsing

  • Axios - HTTP client

  • Winston - Logging

  • @modelcontextprotocol/sdk - MCP protocol support

Quick Start

1. Install dependencies

npm install

or use pnpm

pnpm install

2. Download Puppeteer browser

npx puppeteer browsers install chrome

3. Environment configuration

Copy and configure the environment variables file:

cp .env.example .env

Edit the .env file according to your needs.

4. Start the service

Development mode:

npm run dev

Production mode:

npm start

The service will start at http://localhost:3000.

MCP Tools

Unified search tool supporting both web and news search:

  • Web Search: searchType: "web"

  • News Search: searchType: "news" with time filtering

  • Note: searchType is a required parameter and must be explicitly specified

Usage Examples:

# Web search
Use web_search tool to search "Node.js tutorial" with searchType set to web, return 10 results

# News search
Use web_search tool to search "tech news" with searchType set to news, return 5 results from past 24 hours

Other Tools

  • get_webpage_content: Get webpage content and convert to specified format

  • get_webpage_source: Get raw HTML source code of webpage

  • batch_webpage_scrape: Batch scrape multiple webpages

MCP Configuration

Chatbox Configuration

Create mcp-config.json file in Chatbox:

{
  "mcpServers": {
    "spider-mcp": {
      "command": "node",
      "args": ["src/mcp/server.js"],
      "env": {
        "NODE_ENV": "production"
      },
      "description": "Spider MCP - Web search and webpage scraping tools",
      "capabilities": {
        "tools": {}
      }
    }
  }
}

Other MCP Clients

{
  "mcpServers": {
    "spider-mcp": {
      "command": "node",
      "args": ["path/to/spider-mcp/src/mcp/server.js"]
    }
  }
}

Important Notes

  1. Anti-bot Measures: This service uses various techniques to avoid detection, but still needs to comply with robots.txt and terms of use

  2. Rate Limiting: It's recommended to control request frequency reasonably to avoid putting pressure on target websites

  3. Legal Compliance: Please ensure compliance with local laws and website terms of use when using this service

  4. Resource Consumption: Puppeteer will start Chrome browser, please pay attention to memory and CPU usage

  5. URL Cleaning: Automatically cleans promotional parameters but may affect some special link functionality

Development

Project Structure

spider-mcp/
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ index.js          # Main entry file
│   ā”œā”€ā”€ mcp/
│   │   └── server.js     # MCP server
│   ā”œā”€ā”€ routes/           # Route definitions
│   │   ā”œā”€ā”€ search.js     # Search routes
│   │   └── health.js     # Health check routes
│   ā”œā”€ā”€ services/         # Business logic
│   │   └── searchService.js # Search service
│   └── utils/            # Utility functions
│       └── logger.js     # Logging utility
ā”œā”€ā”€ logs/                 # Log files directory
ā”œā”€ā”€ tests/                # Test files
ā”œā”€ā”€ package.json          # Project configuration
ā”œā”€ā”€ .env.example          # Environment variables example
ā”œā”€ā”€ mcp-config.json       # MCP configuration example
└── README.md             # Project documentation

License

MIT License

Contributing

Issues and Pull Requests are welcome!

Available Tools

4 tools
batch_webpage_scrapeC

Batch scrape multiple webpages with concurrent processing support.

Inputs: urls (required), maxConcurrent.

get_webpage_contentC

Fetch webpage content and convert to specified format. Supports Markdown, HTML, and plain text.

Inputs: url (required), format.

get_webpage_sourceB

Fetch the raw HTML source code and page information of a webpage.

Inputs: url (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 4 tools

    Disambiguation4/5

    The tools are mostly distinct with clear purposes: batch scraping, content fetching, source fetching, and web searching. However, get_webpage_content and get_webpage_source could be confused as both fetch webpage data, though their descriptions clarify content vs. source distinctions.

    Naming Consistency5/5

    All tool names follow a consistent snake_case pattern with clear verb_noun structure (e.g., batch_webpage_scrape, get_webpage_content). The naming is uniform and predictable across all four tools.

    Tool Count5/5

    With 4 tools, this server is well-scoped for web-related tasks. Each tool serves a distinct function in scraping, fetching, and searching, making the count appropriate without being too sparse or bloated.

    Completeness4/5

    The toolset covers core web operations: scraping, content retrieval, and searching. A minor gap exists in lacking tools for advanced processing (e.g., parsing or data extraction), but the provided tools support basic to intermediate workflows effectively.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables web searching and content scraping through Google Custom Search API. Provides tools to search the internet, extract webpage content, and automatically scrape search results for comprehensive information gathering.
      3
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables web scraping and crawling capabilities for LLM clients, supporting single-page scraping, multi-page website crawling, and web search with multiple engines (Playwright, Cheerio, Puppeteer) and flexible output formats including markdown, HTML, text, and screenshots.
      7
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables web searching through Google, DuckDuckGo, and Bing using a headless Chrome browser, returning structured results with titles, URLs, and snippets. Also supports fetching and extracting text content from any webpage.
      16
      MIT