SearXNG MCP Server
Provides web search capabilities through a SearXNG instance, allowing for queries across various categories such as news, images, videos, and science with support for language, time range, and safe search filtering.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SearXNG MCP Server search for the latest AI news from the past week"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SearXNG MCP Server
A Model Context Protocol (MCP) server that provides web search capabilities using SearXNG.
Features
π Web search using your SearXNG instance
π― Category filtering (general, news, images, videos, science, etc.)
π Multi-language support
β° Time range filtering
π‘οΈ Safe search options
π Formatted results with titles, URLs, snippets, and metadata
Related MCP server: SearXNG MCP Server
Quick Start
Prerequisites
Node.js 18 or higher
A running SearXNG instance
ngrok (for public sharing)
Installation
npm installConfiguration
The server uses the SearXNG instance at http://192.168.1.44:55001 by default. You can override this with the SEARXNG_URL environment variable:
export SEARXNG_URL=http://your-searxng-instance:portRunning Locally
npm startSharing Publicly with ngrok
Install ngrok if you haven't already:
npm install -g ngrokStart the MCP server:
npm startIn another terminal, expose it via ngrok:
ngrok http 3000Use the ngrok URL in your MCP client configuration
Usage in LM Studio
For Local Use
Add this to your LM Studio MCP settings:
{
"mcpServers": {
"searxng": {
"command": "node",
"args": ["C:\\Users\\claym\\Desktop\\public mcp\\index.js"],
"env": {
"SEARXNG_URL": "http://192.168.1.44:55001"
}
}
}
}For Public/Shared Use (via ngrok)
When sharing with others, they can use this configuration:
{
"mcpServers": {
"searxng": {
"command": "npx",
"args": ["-y", "searxng-mcp-server@latest"]
}
}
}Note: For the npx version to work, you'll need to publish this to npm first.
Available Tools
web_search
Search the web using SearXNG.
Parameters:
query(required): The search querycategories(optional): Search categories - "general", "news", "images", "videos", "science", etc. Default: "general"language(optional): Language code like "en", "es", "fr". Default: "en"time_range(optional): Filter by time - "day", "week", "month", "year". Default: all timesafesearch(optional): Safe search level - 0 (off), 1 (moderate), 2 (strict). Default: 0
Example:
Search for "latest AI news" in the news category from the past weekDevelopment
Project Structure
.
βββ index.js # Main MCP server implementation
βββ package.json # Dependencies and scripts
βββ README.md # This fileTesting
You can test the server using any MCP-compatible client like:
LM Studio
Claude Desktop
Other MCP clients
Troubleshooting
Connection Issues
If you can't connect to SearXNG:
Verify your SearXNG instance is running:
curl http://192.168.1.44:55001Check firewall settings
Ensure the URL is correct in the configuration
No Results
If searches return no results:
Test the same query directly in SearXNG web interface
Try different categories or remove filters
Check SearXNG logs for errors
License
MIT
Available Tools
1 toolweb_searchA
Search the web using SearXNG. Returns up to 10 relevant results with titles, URLs, snippets, and metadata.
Inputs: query (required), categories, language, time_range, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools. The tool's purpose is clearly defined and distinct by default.
A single tool inherently has perfect naming consistency, as there are no other tools to compare it against. The name 'web_search' follows a clear verb_noun pattern.
A single tool for a web search server feels thin and limited in scope. While it covers the core search functionality, it lacks additional features like filtering, advanced queries, or result management that might be expected in a more complete search interface.
The server provides only basic search functionality without any supporting operations. There are significant gaps, such as no ability to refine searches, handle pagination, or access search history, making the surface incomplete for robust web search tasks.
Maintenance
Related MCP Connectors
Executes live web/news search queries and returns clean, token-pruned results with zero ad bloat.
Provides AI assistants with access to Seltz's powerful Web Search capabilities.
Search the web, images, videos, news, and local businesses with robust filters, freshness controlsβ¦
Search Google straight from your AI agent. Web results, images, videos, news, products, scholarly ar
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables privacy-respecting web searches through SearXNG metasearch engine with customizable parameters like language, time range, categories, and engines. Supports safe search levels, pagination control, and basic authentication for secure search operations.63MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to perform privacy-respecting web searches through SearXNG, with support for multiple search engines, categories, and advanced filtering options.203 npm27MIT
- AlicenseAqualityDmaintenanceEnables web search, image search, and news search through a self-hosted SearXNG instance. Provides privacy-focused meta-search capabilities aggregating results from multiple search engines.3203 npm1MIT
- FlicenseAqualityDmaintenanceEnables privacy-respecting web, image, video, and news searches through SearxNG metasearch engine, with options for URL fetching and time filtering.569 PyPI-