by mrkrsl
A simple, locally hosted Web Search MCP server for use with Local LLMs
# Add to your Claude Code skills
git clone https://github.com/mrkrsl/web-search-mcpGuides for using mcp servers skills like web-search-mcp.
web-search-mcp is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by mrkrsl. A simple, locally hosted Web Search MCP server for use with Local LLMs. It has 1,217 GitHub stars.
web-search-mcp's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/mrkrsl/web-search-mcp" and add it to your Claude Code skills directory (see the Installation section above).
web-search-mcp is primarily written in TypeScript. It is open-source under mrkrsl on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh web-search-mcp against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
A TypeScript MCP (Model Context Protocol) server that provides comprehensive web search capabilities using direct connections (no API keys required) with multiple tools for different use cases.
The server provides three specialised tools for different web search needs:
full-web-search (Main Tool)When a comprehensive search is requested, the server uses an optimised search strategy:
get-web-search-summaries (Lightweight Alternative)For quick search results without full content extraction:
full-web-searchget-single-web-page-content (Utility Tool)For extracting content from a specific webpage:
This MCP server has been developed and tested with LM Studio and LibreChat. It has not been tested with other MCP clients.
Important: Prioritise using more recent models designated for tool use.
Older models (even those with tool use specified) may not work or may work erratically. This seems to be the case with Llama and Deepseek. Qwen3 and Gemma 3 currently have the best restults.
Requirements:
Download the latest release zip file from the Releases page
Extract the zip file to a location on your system (e.g., ~/mcp-servers/web-search-mcp/)
Open a terminal in the extracted folder and run:
npm install
npx playwright install
npm run build
This will create a node_modules folder with all required dependencies, install Playwright browsers, and build the project.
Note: You must run npm install in the root of the extracted folder (not in dist/).
Configure your mcp.json to point to the extracted dist/index.js file:
{
"mcpServers": {
"web-search": {
"command": "node",
"args": ["/path/to/extracted/web-search-mcp/dist/index.js"]
}
}
}
Example paths:
~/mcp-servers/web-search-mcp/dist/index.jsC:\\mcp-servers\\web-search-mcp\\dist\\index.jsIn LibreChat, you can include the MCP server in the librechat.yaml. If you are running LibreChat in Docker, you must first mount your local directory in docker-compose.override.yml.
in docker-compose.override.yml:
services:
api:
volumes:
- type: bind
source: /path/to/your/mcp/directory
target: /app/mcp
in librechat.yaml:
mcpServers:
web-search:
type: stdio
command: node
args:
- /app/mcp/web-search-mcp/dist/index.js
serverInstructions: true
Troubleshooting:
npm install fails, try updating Node.js to version 18+ and npm to version 8+npm run build fails, ensure you have the latest Node.js version installed"MAX_CONTENT_LENGTH": "10000", or another value, in your mcp.json environment variables:{
"mcpServers": {
"web-search": {
"command": "node",
"args": ["/path/to/web-search-mcp/dist/index.js"],
"env": {
"MAX_CONTENT_LENGTH": "10000",
"BROWSER_HEADLESS": "true",
"MAX_BROWSERS": "3",
"BROWSER_FALLBACK_THRESHOLD": "3"
}
}
}
}
The server supports several environment variables for configuration:
MAX_CONTENT_LENGTH: Maximum content length in characters (default: 500000)DEFAULT_TIMEOUT: Default timeout for requests in milliseconds (default: 6000)MAX_BROWSERS: Maximum number of browser instances to maintain (default: 3)BROWSER_TYPES: Comma-separated list of browser types to use (default: 'chromium,firefox', options: chromium, firefox, webkit)BROWSER_FALLBACK_THRESHOLD: Number of axios failures before using browser fallback (default: 3)ENABLE_RELEVANCE_CHECKING: Enable/disable search result quality validation (default: true)RELEVANCE_THRESHOLD: Minimum quality score for search results (0.0-1.0, default: 0.3)FORCE_MULTI_ENGINE_SEARCH: Try all search engines and return best results (default: false)DEBUG_BROWSER_LIFECYCLE: Enable detailed browser lifecycle logging for debugging (default: false)DEFAULT_TIMEOUT=4000 for even faster responses (may reduce success rate)MAX_BROWSERS=1 to reduce memory usagenpx playwright install to ensure browsers are availableBROWSER_HEADLESS=true (default) for server environmentsENABLE_RELEVANCE_CHECKING=true (enabled by default)RELEVANCE_THRESHOLD=0.5 for stricter quality requirementsFORCE_MULTI_ENGINE_SEARCH=true to try all engines and return the best resultsMAX_BROWSERS (default: 3)git clone https://github.com/mrkrsl/web-search-mcp.git
cd web-search-mcp
npm install
npx playwright install
npm run build
npm run dev # Development with hot reload
npm run build # Build TypeScript to JavaScript
npm run lint # Run ESLint
npm run format # Run Prettier
This server provides three specialised tools for different web search needs:
full-web-search (Main Tool)The most comprehensive web search tool that:
Example Usage:
{
"name": "full-web-search",
"arguments": {
"query": "TypeScript MCP server",
"limit": 3,
"includeContent": true
}
}
get-web-search-summaries (Lightweight Alternative)A lightweight alternative for quick search results:
full-web-searchExample Usage:
{
"name": "get-web-search-summaries",
"arguments": {
"query": "TypeScript MCP server",
"limit": 5
}
}
get-single-web-page-content (Utility Tool)A utility tool for extracting content from a specific webpage:
Example Usage:
{
"name": "get-single-web-page-content",
"arguments": {
"url": "https://example.com/article",
"maxContentLength": 5000
}
}
You can also run the server directly:
# If running from source
npm start
See [API.md](./d