MCP Web Search Server
Allows performing web searches through DuckDuckGo, with configurable result limits, site/file/date filters, and optional result caching.
Allows performing web searches through Google, with configurable result limits, site/file/date filters, and optional result caching.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Web Search Server
A powerful Model Context Protocol (MCP) server for web searching using Puppeteer and SQLite. No API keys required!
Features
🔍 Advanced Web Search
Multiple search engines: DuckDuckGo, Bing, Google
Smart filtering: Site-specific, file type, date range
Intelligent caching: 24-hour result caching for performance
📄 Content Extraction
Full page content: Extract text, links, images, or everything
Smart caching: Avoids re-scraping the same URLs (7-day cache)
Configurable output: Control content length and extraction type
⚡ Bulk Operations
Bulk search: Search multiple queries simultaneously
Batch processing: Efficient handling of multiple requests
Error resilience: Continues processing even if some queries fail
📊 Analytics & Insights
Search statistics: Track usage patterns and popular queries
Engine analytics: Monitor which search engines are used most
Historical data: Analyze trends over configurable time periods
💾 Export Functionality
Multiple formats: JSON and CSV export
Flexible filtering: Export specific queries or date ranges
Ready-to-use data: Properly formatted for analysis
Related MCP server: Presearch MCP Server
Installation
Prerequisites
Node.js (v16 or higher)
npm or yarn
Setup
Clone the repository
git clone https://github.com/yourusername/mcp-web-search.git cd mcp-web-searchInstall dependencies
npm installTest the server
node index.js
MCP Configuration
Add this to your MCP configuration file (.kiro/settings/mcp.json for Kiro IDE):
{
"mcpServers": {
"web-search": {
"command": "node",
"args": ["./path/to/mcp-web-search/index.js"],
"env": {},
"disabled": false,
"autoApprove": [
"web_search",
"extract_content",
"bulk_search",
"search_analytics",
"export_results",
"clear_cache"
]
}
}
}Available Tools
web_search
Search the web with advanced filtering options.
Parameters:
query(required): Search querymax_results(optional): Maximum results to return (default: 10)search_engine(optional): Engine to use -duckduckgo,bing,google(default: duckduckgo)site_filter(optional): Filter to specific domain (e.g., "github.com")file_type(optional): Filter by file type (e.g., "pdf", "doc")date_range(optional): Filter by date -day,week,month,yearuse_cache(optional): Use cached results (default: true)
extract_content
Extract full content from a specific URL.
Parameters:
url(required): URL to extract content fromextract_type(optional): Type of content -text,links,images,all(default: text)max_length(optional): Maximum content length (default: 5000)
bulk_search
Search multiple queries simultaneously.
Parameters:
queries(required): Array of search queriesmax_results_per_query(optional): Max results per query (default: 5)search_engine(optional): Search engine to use (default: duckduckgo)
search_analytics
Get analytics about your search history.
Parameters:
days_back(optional): Number of days to analyze (default: 30)
export_results
Export search results to JSON or CSV.
Parameters:
query(optional): Specific query to export (exports all if not specified)format(optional): Export format -jsonorcsv(default: json)days_back(optional): Number of days back to export (default: 7)
clear_cache
Clear the search cache.
Parameters:
older_than_days(optional): Clear entries older than N days (clears all if not specified)
Examples
Basic Search
// Search for JavaScript tutorials
{
"query": "JavaScript tutorials",
"max_results": 5
}Advanced Search with Filters
// Search GitHub for Python machine learning projects
{
"query": "machine learning",
"site_filter": "github.com",
"search_engine": "bing",
"max_results": 10
}Content Extraction
// Extract text content from a webpage
{
"url": "https://example.com/article",
"extract_type": "text",
"max_length": 2000
}Bulk Search
// Search multiple frameworks at once
{
"queries": ["React hooks", "Vue.js composition API", "Angular signals"],
"max_results_per_query": 3
}Database
The server uses SQLite to cache search results and extracted content:
Search results: Cached for 24 hours
Extracted content: Cached for 7 days
Database file:
search_cache.db(created automatically)
Architecture
Puppeteer: Web scraping and content extraction
SQLite: Local caching and analytics storage
MCP SDK: Model Context Protocol integration
Node.js: Runtime environment
Contributing
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Troubleshooting
Common Issues
Module not found errors: Ensure all dependencies are installed with
npm installDatabase errors: Delete
search_cache.dbto reset the databaseSearch engine blocking: Try different search engines or add delays between requests
Path issues: Ensure the MCP configuration points to the correct file path
Debug Mode
Set the environment variable for more verbose logging:
NODE_ENV=development node index.jsRoadmap
Add more search engines (Yahoo, Startpage)
Implement rate limiting and request throttling
Add image search capabilities
Support for custom user agents and headers
Web scraping with JavaScript rendering
Search result deduplication
Advanced content parsing (markdown, structured data)
Support
If you encounter any issues or have questions, please open an issue on GitHub.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Google, Bing, DuckDuckGo and Google Maps search results, free without an API key.
Live web search and fetch plus Twitter, Reddit, GitHub, Amazon, YouTube, Telegram data. No API keys.
Fetch any URL as markdown, text, HTML or selector-built JSON; search Google, Bing, Yahoo and Brave.
Web search, Google SERP, page extraction to markdown and cited answers for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables web search across multiple search engines (DuckDuckGo, Bing, Startpage) with parallel execution and result deduplication. Also provides web page content extraction capabilities.2MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables privacy-focused web searches through the Presearch API and web content scraping. Supports multi-language search, configurable safe search, result caching, and multiple export formats (JSON, CSV, Markdown).4-
- AlicenseAqualityCmaintenanceEnables web search without API keys using DuckDuckGo and Bing search engines, and retrieves webpage content. Supports multiple search engines simultaneously with privacy protection and asynchronous processing.281 PyPI10MIT
- AlicenseAqualityDmaintenanceEnables web search using Bing and DuckDuckGo combined, and fetching readable content from web pages, with no API key required.22MIT