SearXNG Web Search
searxng_searchSearch the web through SearXNG across multiple engines, with presets and filters for categories, engines, language, time range, and safe search.
Instructions
Search the web using SearXNG metasearch engine. Aggregates results from multiple search engines (Google, Bing, DuckDuckGo, Wikipedia, etc.) for comprehensive results.
Supports filtering by category (news, images, videos, science, IT, etc.), specific engines, language, time range, and safe search.
Presets provide quick access to common search scenarios:
'general' — all engines, no filter (default web search)
'code' — GitHub + StackOverflow for code and programming questions
'tech' — IT category for computer science and technology topics
'academic' — science category + arXiv/PubMed/Google Scholar for papers and research
'news' — news category, past month
When a preset is used, explicit categories/engines/time_range params still take precedence over preset defaults.
Args:
query (string, required): Search query. Supports syntax like site:, filetype:, etc.
preset ('general'|'code'|'tech'|'academic'|'news', optional): Quick search mode — see above
categories (string, optional): Filter by category ('general', 'news', 'images', 'videos', 'science', 'it', 'files', 'music', 'repos', 'packages')
engines (string, optional): Specific engines ('google', 'bing', 'duckduckgo', 'wikipedia', 'github', 'stackoverflow', 'arxiv', 'pubmed', 'youtube')
language (string, optional): Language code ('en', 'zh', 'ja', 'de', 'fr', 'es')
pageno (number, default 1): Page number (1-50)
time_range ('day'|'month'|'year', optional): Time filter for recent results
safesearch (number, default 0): 0=off, 1=moderate, 2=strict
response_format ('markdown'|'json', default 'markdown'): Output format
Returns structured search results including:
results[]: Array of {title, url, content, engine, engines[], score, category}
answers[]: Instant answers from SearXNG
suggestions[]: Related search suggestions
infoboxes[]: Summary info boxes with links and attributes
Examples:
"Search for Rust programming tutorials" -> query="Rust programming tutorials", preset="general"
"Find recent news about AI" -> query="AI", preset="news"
"Search GitHub for MCP servers" -> query="MCP server", preset="code"
"Find scientific papers about transformers" -> query="transformer model", preset="academic"
"What is WebAssembly?" -> query="What is WebAssembly", preset="tech"
Error Handling:
Returns "403 Forbidden" error if JSON format is not enabled in SearXNG settings
Returns connection error if SearXNG server is unreachable
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "searxng_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query string. Supports search engine syntax like site:github.com, filetype:pdf, etc. | |
| pageno | No | Page number for paginated results (default: 1). | |
| preset | No | Search preset for common use cases. 'general' = all engines, no category filter; 'code' = search GitHub and StackOverflow for code and programming; 'tech' = IT category for computer science and technology; 'academic' = science category for papers and research (arXiv, PubMed, Google Scholar); 'news' = recent news from the past month. Leave empty to manually specify categories/engines. | |
| engines | No | Comma-separated list of search engines to use. Examples: 'google', 'bing', 'duckduckgo', 'wikipedia', 'github', 'stackoverflow', 'arxiv', 'pubmed', 'youtube'. Leave empty to use all enabled engines. | |
| language | No | Language code for search results. Examples: 'en', 'zh', 'ja', 'de', 'fr', 'es'. Leave empty for default. | |
| categories | No | Comma-separated list of search categories. Examples: 'general', 'news', 'images', 'videos', 'science', 'it', 'files', 'music', 'repos', 'packages'. Leave empty for general search. | |
| safesearch | No | Safe search level: 0=off, 1=moderate, 2=strict (default: 0). | |
| time_range | No | Time range filter. Only return results from the specified period. Use 'day' for very recent results, 'month' for results from the past month, 'year' for the past year. | |
| response_format | No | Output format: 'markdown' for human-readable, 'json' for structured data (default: 'markdown'). | markdown |