Price Per TokenPrice Per Token
WebSearch

WebSearch

by mnhlt

GitHub 28 10 uses
0

About

WebSearch is a self-hosted MCP server that enables AI assistants to perform real-time web searches and retrieve current information from the internet. It connects AI models to a companion Crawler API service that handles the actual search queries. Key capabilities of WebSearch: - Real-time web search integration for AI assistants via MCP protocol - Self-hosted architecture — run the crawler API on local machines or VPS for full control and privacy - Configurable search parameters including maximum result limits - Results include titles, URLs, and content snippets from web pages - Compatible with Claude Desktop, Cursor IDE, Cline, and other MCP-supporting clients

README

WebSearch-MCP

[](https://smithery.ai/server/@mnhlt/WebSearch-MCP)

A Model Context Protocol (MCP) server implementation that provides a web search capability over stdio transport. This server integrates with a WebSearch Crawler API to retrieve search results.

Table of Contents

  • About
  • Installation
  • Configuration
  • Setup & Integration
  • - Setting Up the Crawler Service - Prerequisites - Starting the Crawler Service - Testing the Crawler API - Custom Configuration - Integrating with MCP Clients - Quick Reference: MCP Configuration - Claude Desktop - Cursor IDE - Cline
  • Usage
  • - Parameters - Example Search Response - Testing Locally - As a Library
  • Troubleshooting
  • - Crawler Service Issues - MCP Server Issues
  • Development
  • - Project Structure - Publishing to npm
  • Contributing
  • License
  • About

    WebSearch-MCP is a Model Context Protocol server that provides web search capabilities to AI assistants that support MCP. It allows AI models like Claude to search the web in real-time, retrieving up-to-date information about any topic.

    The server integrates with a Crawler API service that handles the actual web searches, and communicates with AI assistants using the standardized Model Context Protocol.

    Installation

    Installing via Smithery

    To install WebSearch for Claude Desktop automatically via Smithery:

    npx -y @smithery/cli install @mnhlt/WebSearch-MCP --client claude
    

    Manual Installation

    npm install -g websearch-mcp
    

    Or use without installing:

    npx websearch-mcp
    

    Configuration

    The WebSearch MCP server can be configured using environment variables:

  • API_URL: The URL of the WebSearch Crawler API (default: http://localhost:3001)
  • MAX_SEARCH_RESULT: Maximum number of search results to return when not specified in the request (default: 5)
  • Examples:

    # Configure API URL
    API_URL=https://crawler.example.com npx websearch-mcp

    Configure maximum search results

    MAX_SEARCH_RESULT=10 npx websearch-mcp

    Configure both

    API_URL=https://crawler.example.com MAX_SEARCH_RESULT=10 npx websearch-mcp

    Setup & Integration

    Setting up WebSearch-MCP involves two main parts: configuring the crawler service that performs the actual web searches, and integrating the MCP server with your AI client applications.

    Setting Up the Crawler Service

    The WebSearch MCP server requires a crawler service to perform the actual web searches. You can easily set up the crawler service using Docker Compose.

    Prerequisites

  • Docker and Docker Compose
  • Starting the Crawler Service

    1. Create a file named docker-compose.yml with the following content:

    version: '3.8'

    services: crawler: image: laituanmanh/websearch-crawler:latest container_name: websearch-api restart: unless-stopped ports: - "3001:3001" environment: - NODE_ENV=production - PORT=3001 - LOG_LEVEL=info - FLARESOLVERR_URL=http://flaresolverr:8191/v1 depends_on: - flaresolverr volumes: - crawler_storage:/app/storage

    flaresolverr: image: 21hsmw/flaresolverr:nodriver container_name: flaresolverr restart: unless-stopped environment: - LOG_LEVEL=info - TZ=UTC

    volumes: crawler_storage:

    workaround for Mac Apple Silicon
    version: '3.8'

    services: crawler: image: laituanmanh/websearch-crawler:latest container_name: websearch-api platform: "linux/amd64" restart: unless-stopped ports: - "3001:3001" environment: - NODE_ENV=production - PORT=3001 - LOG_LEVEL=info - FLARESOLVERR_URL=http://flaresolverr:8191/v1 depends_on: - flaresolverr volumes: - crawler_storage:/app/storage

    flaresolverr: image: 21hsmw/flaresolverr:nodriver platform: "linux/arm64" container_name: flaresolverr restart: unless-stopped environment: - LOG_LEVEL=info - TZ=UTC

    volumes: crawler_storage:

    2. Start the services:

    docker-compose up -d
    

    3. Verify that the services are running:

    docker-compose ps
    

    4. Test the crawler API health endpoin

    Related MCP Servers

    AI Research Assistant

    AI Research Assistant

    hamid-vakilzadeh

    AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar

    Web & Search
    12 8
    Linkup

    Linkup

    LinkupPlatform

    Linkup is a real-time web search and content extraction service that enables AI assistants to search the web and retrieve information from trusted sources. It provides source-backed answers with citations, making it ideal for fact-checking, news gathering, and research tasks. Key features of Linkup: - Real-time web search using natural language queries to find current information, news, and data - Page fetching to extract and read content from any webpage URL - Search depth modes: Standard for direct-answer queries and Deep for complex research across multiple sources - Source-backed results with citations and context from relevant, trustworthy websites - JavaScript rendering support for accessing dynamic content on JavaScript-heavy pages

    Web & Search
    2 24
    Math-MCP

    Math-MCP

    EthanHenrickson

    Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support

    Developer Tools
    22 81