Enables web search capabilities through DuckDuckGo search engine as part of a multi-engine search approach with parallel execution and result deduplication
Provides web search functionality through Startpage search engine as part of a comprehensive multi-engine search system with source attribution
Web Search MCP Server (Standalone)
A Model Context Protocol (MCP) server that provides web search capabilities using multiple search engines (DuckDuckGo, Bing, and Startpage) with parallel execution and result deduplication.
Features
- Multi-engine search: Searches DuckDuckGo, Bing, and Startpage simultaneously
- Parallel execution: All searches run concurrently for faster results
- Result deduplication: Removes duplicate URLs from combined results
- Source attribution: Shows which search engine provided each result
- Comprehensive logging: Logs all operations to
web-search.log
- Standalone: Pre-configured virtual environment included - no setup required
- Two tools available:
SearchWeb
: Multi-engine web searchFetchPageContent
: Extract text content from web pages
Installation
Option 1: Standalone (Pre-configured venv included)
- Extract the files:
- Make start script executable:
- Add to Q CLI MCP configuration:
- Verify installation and test:
Option 2: Manual Setup (If venv is missing)
- Navigate to the directory:
- Create virtual environment:
- Activate virtual environment and install dependencies:
- Make start script executable:
- Add to Q CLI MCP configuration:
- Test the installation:
Files Included
server.py
- Main MCP server codestart.sh
- Startup scriptrequirements.txt
- Python dependenciesvenv/
- Pre-configured virtual environment with all dependenciesREADME.md
- This documentation
Usage
Start a new Q CLI chat session. The server provides two tools:
SearchWeb
FetchPageContent
Logs
All operations are logged to web-search.log
in the server directory with timestamps and detailed information about search requests and results.
Troubleshooting
- Permission denied: Ensure
start.sh
is executable (chmod +x start.sh
) - No search results: Check the log file for error messages
- Debugging: Check
web-search.log
for detailed debugging information
Requirements
- Q CLI with MCP support
- Internet connection for web searches
- macOS/Linux (Python 3.11+ included in venv)
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
Enables web search across multiple search engines (DuckDuckGo, Bing, Startpage) with parallel execution and result deduplication. Also provides web page content extraction capabilities.