Skip to main content
Glama
elad12390
by elad12390
SEARXNG_CONFIG_VERIFIED.mdβ€’6.47 kB
# SearXNG Configuration Verified βœ… ## Your Configuration Summary ### Enabled Engines: 13 Total #### 🌐 General Web (3) - βœ… DuckDuckGo - Primary general search - βœ… Brave - Backup general search - βœ… Qwant - Additional coverage #### πŸ’» Code & Developer (4) ⭐ CRITICAL - βœ… GitHub - Code repositories - βœ… GitLab - More code repos - βœ… Codeberg - Open source repos - βœ… Stack Overflow - Code Q&A #### πŸ“š Documentation (2) - βœ… MDN - Web documentation - βœ… Wikipedia - General knowledge #### πŸ“° Tech Community (2) - βœ… Reddit - Discussions & tutorials - βœ… Hacker News - Tech articles #### πŸ“¦ Package Registries (3) - βœ… npm - JavaScript packages - βœ… PyPI - Python packages - βœ… Crates.io - Rust packages ### Optimizations Applied - βœ… Autocomplete: DuckDuckGo - βœ… IT Category: All code engines included - βœ… Categories: Properly configured --- ## What This Means for search_examples ### Before Configuration ❌ Only MDN results ❌ No code examples ❌ No Stack Overflow ❌ No GitHub repos ### After Configuration βœ… βœ… GitHub repositories with code βœ… Stack Overflow Q&A βœ… Reddit discussions βœ… Hacker News articles βœ… MDN documentation βœ… GitLab & Codeberg repos --- ## Expected Results Now ### Query: "React hooks examples" **Before:** ``` 1. Site glossary - MDN 2. XSS documentation - MDN 3. HTTP headers - MDN ``` **After (Expected):** ``` 1. [GitHub] facebook/react - Hooks documentation 2. [Stack Overflow] How to use React hooks? 3. [Article] React Hooks Tutorial - Reddit 4. [GitHub] awesome-react-hooks - Collection 5. React Hooks - MDN ``` ### Query: "Rust async await examples" **Before:** ``` 1. "Site" glossary - MDN 2. Generic docs - MDN ``` **After (Expected):** ``` 1. [GitHub] tokio-rs/tokio - Async runtime 2. [Stack Overflow] Rust async/await patterns 3. [GitHub] async-book examples 4. [Article] Rust async tutorial - Reddit 5. [Hacker News] Async Rust discussion ``` ### Query: "FastAPI dependency injection" **Before:** ``` 1. SQL injection glossary - MDN 2. HTTP 424 status - MDN ``` **After (Expected):** ``` 1. [GitHub] tiangolo/fastapi - Official repo 2. [Stack Overflow] FastAPI dependency injection 3. [GitHub] fastapi-users examples 4. [Article] FastAPI DI tutorial - Reddit 5. FastAPI docs - MDN (if available) ``` --- ## Testing Instructions ### 1. Restart Your SearXNG Instance ```bash docker restart searxng # or systemctl restart searxng ``` ### 2. Test with MCP Tool ```python # Test 1: Code search search_examples( query="React hooks examples", content_type="code", max_results=5 ) # Test 2: Article search search_examples( query="Rust async tutorial", content_type="articles", max_results=5 ) # Test 3: Mixed search search_examples( query="FastAPI dependency injection", content_type="both", max_results=5 ) ``` ### 3. Verify Results You should now see: - βœ… Multiple different domains (github.com, stackoverflow.com, reddit.com) - βœ… Source indicators ([GitHub], [Stack Overflow], [Article]) - βœ… Relevant code examples and tutorials - βœ… No more "all MDN" results --- ## What Changed ### search_examples Tool Behavior **Query Enhancement (Already Working):** - Code searches: Adds `site:github.com OR site:stackoverflow.com` - Article searches: Adds `tutorial OR guide OR article` - Uses IT category for technical content **Now Effective Because:** - SearXNG can actually access GitHub βœ… - SearXNG can actually access Stack Overflow βœ… - SearXNG can access Reddit & Hacker News βœ… - IT category has all these engines enabled βœ… ### Warnings (Should No Longer Appear) The tool's warning messages should rarely trigger now: ``` ℹ️ Note: All results are from the same source... ``` This warning only appears when all results come from one domain. With your new config, results should be diverse! --- ## Performance Expectations ### Response Time - Should remain fast (< 2 seconds) - Multiple engines running in parallel - SearXNG aggregates efficiently ### Result Quality - **High relevance** - Multiple sources voting - **Diversity** - GitHub, Stack Overflow, Reddit, etc. - **Fresh content** - Time filtering works when supported - **Code-focused** - IT category prioritizes developer content ### Rate Limits All enabled engines are FREE with no rate limits for reasonable use: - GitHub: Public API, no auth needed for search - Stack Overflow: Free, no limits - Reddit: Free, no API key - DuckDuckGo/Brave/Qwant: Free - npm/PyPI/Crates: Free --- ## Troubleshooting ### Still seeing only MDN? 1. **Restart SearXNG** (required for config changes) 2. **Check settings.yml** was saved correctly 3. **Verify IT category** includes code engines 4. **Test directly** in SearXNG UI (http://localhost:2288) ### Slow searches? 1. **Reduce engines** - Start with 8 core ones 2. **Disable unused categories** - Focus on IT category 3. **Check timeouts** in settings.yml ### Some engines not working? 1. **Network issues** - Some sites blocked? 2. **Engine down** - GitHub/SO occasionally has issues 3. **Check logs** - SearXNG logs show engine errors --- ## Optimal Usage Patterns ### For Code Examples ```python search_examples( query="specific library/framework + feature", content_type="code", # GitHub + Stack Overflow max_results=5 ) ``` ### For Tutorials ```python search_examples( query="technology + tutorial/guide", content_type="articles", # Reddit + HN + blogs max_results=5 ) ``` ### For Comprehensive Research ```python search_examples( query="technology + concept", content_type="both", # All sources max_results=10 ) ``` --- ## Success Metrics Your configuration is successful if: - βœ… Queries return 3+ different domains - βœ… GitHub repos appear in code searches - βœ… Stack Overflow Q&A appears in results - βœ… Reddit/HN articles appear for tutorials - βœ… Results are relevant to query - βœ… No "all same source" warnings --- ## Next Steps 1. **Restart SearXNG** if not already done 2. **Test with our MCP tool** - Try the example queries above 3. **Verify diversity** - Check multiple domains in results 4. **Adjust if needed** - Enable/disable engines based on results 5. **Enjoy high-quality code search!** πŸŽ‰ --- **Your SearXNG is now optimized for the search_examples tool!** The tool will automatically leverage all these search engines when you use it. No changes needed to the MCP server - it will just work better now!

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/elad12390/web-research-assistant'

If you have feedback or need assistance with the MCP directory API, please join our Discord server