Web Search & Fetch
The Web MCP server provides web search and content fetching capabilities.
Authentication: None required
Tools
search
Search the web:
Input:
query: string - Search query
max_results?: number - Number of results (default: 10)
Output:
results: array
- title: string
- url: string
- snippet: stringProvider: DuckDuckGo (no API key required)
fetch
Fetch and parse a URL:
Features:
HTML to Markdown conversion
Main content extraction
5-minute page cache
User agent rotation
scrape
Extract structured data from a page:
Usage Examples
Research Task
The agent will:
Use
searchto find relevant articlesUse
fetchto get full content from top resultsSynthesize a summary
Fact Checking
The agent will:
Search for official announcements
Fetch and verify from authoritative sources
Provide confirmation with citations
Content Analysis
The agent will:
Fetch the page content
Extract key information
Provide analysis
Caching
TTL: 5 minutes
Storage: Redis
Key: URL hash
Invalidation: Automatic on TTL expiry
Rate Limiting
Requests are rate-limited to prevent abuse
Automatic backoff on 429 responses
Distributed rate limiting via Redis
User Agent Rotation
Multiple user agents are rotated to:
Avoid blocking
Appear as real browser traffic
Support different site requirements
Content Extraction
The fetch tool:
Downloads raw HTML
Parses with DOM parser
Extracts main content (article body, etc.)
Removes navigation, ads, scripts
Converts to clean Markdown
Memory Integration
Search results can be stored to the memory system:
This stores summaries in the vector database for future retrieval.
Error Handling
Timeout: Returns partial content or error
404: Returns "Page not found" error
Rate limited: Automatic retry with backoff
Parse error: Returns raw text fallback
Last updated