m

mcp-websearch

@galangw/mcp-websearch
0 Stars 184 次浏览 galangw 更新于 2026-08-23

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "websearch": {
      "args": [
        "-y",
        "mcp-websearch-server"
      ],
      "command": "npx",
      "env": {
        "SEARCHAPI_KEY": "your-api-key-here"
      }
    }
  }
}

服务介绍

MCP WebSearch Server

MCP Server for web search and advanced web scraping. Uses SearchAPI.io for Google Search and AI Mode.

Quick Start

{
  "mcpServers": {
    "websearch": {
      "command": "npx",
      "args": ["-y", "mcp-websearch-server"],
      "env": {
        "SEARCHAPI_KEY": "your-api-key-here"
      }
    }
  }
}

Get your API key at searchapi.io

Tools

Tool Description
web_search Google Search with pagination, time filter, site filter
ai_search Google AI Mode - get AI-generated answers with sources
web_scrape Advanced scraper with multiple extract modes (text/markdown/structured)
get_links Extract links from a webpage with optional filter
scrape_multiple Scrape up to 5 URLs at once

Parameters

  • query - Search query
  • num_results - Number of results (1-20, default 10)
  • page - Page number for pagination (1-10)
  • time_period - Filter: last_hour, last_day, last_week, last_month, last_year
  • site - Limit to specific site (e.g., "github.com")
  • query - Question or topic
  • image_url - Optional image URL for visual questions
  • location - Location for local queries

web_scrape

  • url - URL to scrape
  • selector - CSS selector (optional)
  • extract_mode - text, markdown, or structured
  • include_links - Include links in output
  • max_length - Max content length (1000-50000)
  • url - URL to extract links from
  • filter - Text filter for URLs/anchors

scrape_multiple

  • urls - Array of URLs (max 5)
  • max_per_page - Max content per page (500-5000)

Roadmap

  • Add Serper.dev provider support
  • Add SerpAPI provider support
  • Provider auto-fallback

License

MIT

相关 MCP 服务