DW

daidaij/websearch-mcpserver

Developer tools

This page was translated automatically. Technical details may differ from the original. View the original

30 stars 10 forks Quality 79 Trend 20MIT

A lightweight AI WebSearch custom solution supporting Baidu / Tavily / Exa / AnySearch / Doubao APIs (supporting pooled use), Bing/DDG, and academic search engines

Overview

Lightweight Web Search MCP Server — Runs with no API key An MCP search service written in Go. Built-in general engines such as Baidu Webpage, Bing, DuckDuckGo, and 9 academic engines; search, scoring, and caching are all handled locally. Can be integrated as an MCP tool with Claude Code, Qwen Code, and Cursor, or embedded as a Go module with proprietary services. Layered design: The client only faces four MCP tools; The engine group is assembled by mode; Scoring, caching, proxy, and scraping are all completed within this process; queries do not go through third-party aggregation services. For a more complete method of fallback chains, proxy detection, and embedding, see docs/architecture.md. The result is not the original aggregation. After multi-engine feedback, local deduplication, fused ranking, and diversity rearrangement are performed, and then an optional summary is generated: - : Register API Key and pay per use (Tavily about $8/1k, Exa $7/1k), with limited free allowances; Data goes through third-party servers, cannot be self-hosted; Overseas services are unstable and inconvenient to access domestic services; Single vendor bandwidth limiting / downtime with no rollbacks; Only search is provided; academic search, web crawling, PDF parsing, and summaries all need to be added separately. - : Requires deployment and maintenance of a Python service (Docker, configuration, upgrade); public instances are often restricted or blocked; The result is raw aggregation, not optimized for LLMs (no relevance scoring, no deduplication, no summaries); Only general web search is available, without academic engine, crawling, or PDF; Proxies must be configured manually. So starting from April 2026, we started with the 'Baidu Qianfan One Engine' and gradually evolved into a multi-engine integrated general search service, aiming to make search the foundational capability of LLMs. — Search, scoring, and caching are all done locally; queries are sent only to the search engine itself, without any third-party aggregation services. Data does not leave locally, which is the fundamental difference from vendor MCP (data on third-party servers).

Overview (machine translated)

Lightweight Web Search MCP Server — Runs with no API key

English · Chinese

MCP search service written in Go. Built-in general engines such as Baidu Web, Bing, DuckDuckGo, Parallel / AnySearch / Exa / Firecrawl — four zero-key MCP upstream and nine academic engines, all handled locally. Can be integrated as an MCP tool with Claude Code, Qwen Code, Cursor, or embedded as a Go module with proprietary services.

**Free, available domestically, results can be directly consumed by LLMs. ** Search even without Key; Only use Key if you have one.


Overview of the architecture

Layered design: clients can handle up to 5 MCP tools; Engine groups are assembled by mode; Scoring, caching, proxy, and scraping are all completed within this process; queries do not go through third-party aggregation services.

Layer What to do
Integration Claude Code / Qwen Code / Cursor / HTTP API / Embedding Go Module
Protocols /mcp Up to five tools · /searxng/search Compatible with LiteLLM · /__admin Process management · /dashboard Optional native console · /metrics Prometheus observation
Layout factory / mode Assembly · hybrid / apipool / mcphub · enhance(RRF / Boost / MMR)
Engine General: Baidu Web / Qianfan / Bing / DDG / Tavily / Exa / AnySearch / Doubao + 4 managed MCP upstream; Academic 9 sources parallel
Support SQLite caching, automatic system proxy detection, webfetch (SSRF protection), MinerU, LLM streaming summaries, Everything

For a more complete method of fallback chains, proxy detection, and embedding, see docs/architecture.md.


Toolchain for LLMs

Five search tools are interconnected; Saved long search and web/PDF body text is read back in segments via cleanfetch, without needing client access to the container file. Reading starts from offset=0, and continues to next_offset to eof=true.


Core Features

Ability Description

This page was translated automatically. Technical details may differ from the original.

Install

This server does not publish a one-line install command.

Open the repository installation guide New to MCP? Start with the mcpskill.org guide →

Configuration

{ "mcpServers": { "websearch": { "command": "websearch-mcp-cli" } } }