mcp_searxng
This server provides privacy-respecting web search via a SearXNG instance, exposing multiple MCP tools with structured error handling (all responses contain a success flag).
search_web: Perform general web searches. Optionally filter by engine, category (general, news, images, science, files, social media, videos), language, and maximum result count.search_news: Search for news articles, controlling the number of results.search_images: Image search; results include title, URL, thumbnail, and source.list_engines: List all available search engines, defaulting to only enabled ones; optionally show all engines.
Provides privacy-respecting web search via SearXNG, including tools for general web search, news search, image search with thumbnails, and listing available/enabled engines.
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., "@mcp_searxng search the web for the latest developments in renewable energy"
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.
mcp_searxng
MCP server for privacy-respecting web search via SearXNG.
Requires pi-mcp-bridge to connect to pi.
Prerequisites
SearXNG instance running (default:
http://localhost:8080/searxng)
Related MCP server: mcp_server_searXNG
Installation
pip install git+https://github.com/timaliev/mcp_searxng.gitOr via uv:
uv tool install git+https://github.com/timaliev/mcp_searxng.gitConfiguration
With pi-mcp-bridge
In ~/.pi/agent/settings.json:
{
"mcpBridge": {
"servers": [
{
"name": "searxng",
"command": "mcp-searxng",
"args": [],
"env": {
"SEARXNG_URL": "http://localhost:8080/searxng"
},
"setupCommands": [
"uv tool install --python 3.11 git+https://github.com/timaliev/mcp_searxng.git"
],
"githubRepo": "timaliev/mcp_searxng",
"versionCommand": "mcp-searxng --version"
}
]
}
}Standalone MCP client
In ~/.mcp.json:
{
"mcpServers": {
"searxng": {
"command": "mcp-searxng",
"args": [],
"env": {
"SEARXNG_URL": "http://localhost:8080/searxng"
}
}
}
}Environment Variables
Variable | Default | Description |
|
| SearXNG instance URL |
Tools
Tool | Description |
| Web search with engine/category/language filters |
| News-only search |
| Image search with thumbnails |
| List available/enabled SearXNG engines |
Error Handling
All tools return a structured response with a success field. If SearXNG is unreachable or returns an error, success will be false with an error code and detail:
Error Code | Cause |
| SearXNG instance is not running or not reachable at the configured |
| SearXNG returned an HTTP error (e.g., 500) |
| Unexpected error while processing the request |
Example error response:
{
"success": false,
"error": "ECONNREFUSED",
"detail": "Cannot reach SearXNG at http://localhost:8080/searxng"
}The server does not crash or exit — errors are returned inline so the agent can handle them gracefully.
Development
git clone https://github.com/timaliev/mcp_searxng.git
cd mcp_searxng
uv run mcp-searxngAvailable Tools
4 toolslist_enginesA
List all available search engines from the SearXNG instance.
Args: enabled_only: If True (default), return only enabled engines.
Inputs: enabled_only.
search_imagesA
Search images via SearXNG. Returns title, URL, thumbnail, and source.
Inputs: query (required), max_results.
search_newsC
Search news articles via SearXNG.
Inputs: query (required), max_results.
search_webB
Search the web via SearXNG. Optional: filter by engines, categories (general/news/images/science/files/social+media/videos).
Inputs: query (required), engines, language, categories, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
search_news and search_images are clearly distinct from search_web, but search_web can also filter by news/images categories, creating some overlap. The dedicated tools return specialized results, so the intent is mostly clear.
All tools use snake_case with a consistent verb_noun pattern (search_web, search_news, search_images, list_engines). The naming is predictable and uniform.
Four tools is well-scoped for a search server: general search, two specialized searches, and a utility for listing engines. Each tool earns its place without bloat.
Core search and engine listing are covered, but only news and images have dedicated specialized searches. Other categories (videos, science, etc.) are accessible via search_web, so no critical gaps exist, but dedicated support for all categories would be more complete.
Maintenance
Related MCP Connectors
Web search API and MCP server for developers building AI agents.
MCP server for Google search results via SERP API
Unofficial Serper MCP — wraps the Serper Google Search API (serper.dev)
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables web search capabilities by integrating with a SearXNG instance to aggregate results from over 130 engines. It allows users to perform filtered searches across categories like news, science, and social media while supporting advanced parameters for language and time range.14MIT
- AlicenseNot gradedqualityDmaintenanceA privacy-friendly web search MCP server using SearXNG, enabling searches across multiple engines and categories.1MIT
- AlicenseNot gradedqualityFmaintenanceAn MCP server that integrates the SearXNG API to provide web search with pagination, filtering, and URL content extraction.7 npmMIT
- FlicenseNot gradedqualityDmaintenancePrivacy-focused web search MCP server using SearXNG with Streamable HTTP transport, supporting authentication and advanced search parameters.-