web-search
A simple, locally hosted Web Search MCP server for use with Local LLMs
claude mcp add --transport stdio mrkrsl-web-search-mcp node /path/to/web-search-mcp/dist/index.js \ --env MAX_BROWSERS="3" \ --env BROWSER_HEADLESS="true" \ --env MAX_CONTENT_LENGTH="10000" \ --env BROWSER_FALLBACK_THRESHOLD="3"
How to use
This MCP server provides three web search related tools that help you retrieve and process information from the web with Local LLMs. The main tool, full-web-search, performs a multi-engine web search using browser-based Bing and Brave, plus an Axios-based DuckDuckGo fallback, with dedicated browser instances and concurrent content extraction. The lightweight tool, get-web-search-summaries, runs the same multi-engine search but only returns search result snippets and descriptions without following links for full content extraction. The utility tool, get-single-web-page-content, fetches and extracts the main content from a single provided URL. Together these tools support robust search workflows that balance depth, speed, and content relevance.
How to install
Prerequisites:
- Node.js 18.0.0 or higher
- npm 8.0.0 or higher
Install and build (example workflow):
- Clone or download the MCP server repository
- Open a terminal in the project root
- Install dependencies
npm install - Install Playwright browsers
npx playwright install - Build the project
npm run build - Point your MCP config to the built entry point (dist/index.js) as shown in the example below
- Run the server via your preferred MCP orchestrator (e.g., LibreChat integration) using the provided mcp.json example
Example mcp.json snippet:
{
"mcpServers": {
"web-search": {
"command": "node",
"args": ["/path/to/web-search-mcp/dist/index.js"]
}
}
}
Additional notes
Tips and common considerations:
- Before first run, ensure all Playwright browsers are installed via npx playwright install.
- If you encounter content length or timeout issues, adjust MAX_CONTENT_LENGTH and DEFAULT_TIMEOUT via environment variables in mcp.json.
- If you see slow responses or memory pressure, reduce MAX_BROWSERS or run with BROWSER_HEADLESS in headless mode.
- The server supports multiple environment variables to tune behavior, such as ENABLE_RELEVANCE_CHECKING, RELEVANCE_THRESHOLD, FORCE_MULTI_ENGINE_SEARCH, and DEBUG_BROWSER_LIFECYCLE. See the README for full details.
- If you’re using LibreChat in Docker, mount your local MCP directory into the container and reference the dist/index.js path in librechat.yaml as shown in the README.
Related MCP Servers
anything-llm
The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.
context7
Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
mcp -langfuse
Model Context Protocol (MCP) Server for Langfuse Prompt Management. This server allows you to access and manage your Langfuse prompts through the Model Context Protocol.
rohlik
MCP server that lets you shop groceries across the Rohlik Group platforms (Rohlik.cz, Knuspr.de, Gurkerl.at, Kifli.hu, Sezamo.ro)
mcp -chart-minio
mcp-server-chart私有化部署方案
kanban
MCP Kanban is a specialized middleware designed to facilitate interaction between Large Language Models (LLMs) and Planka, a Kanban board application. It serves as an intermediary layer that provides LLMs with a simplified and enhanced API to interact with Planka's task management system.