Server data from the Official MCP Registry
MCP server for SearXNG aggregator — web search across multiple engines via Model Context Protocol
MCP server for SearXNG aggregator — web search across multiple engines via Model Context Protocol
This is a well-structured SearXNG MCP server with proper security practices. The server requires appropriate permissions for its purpose as a search tool and implements good error handling and input validation. Minor improvements could be made in logging sensitive data handling and connection timeouts. Supply chain analysis found 5 known vulnerabilities in dependencies (1 critical, 2 high severity).
3 files analyzed · 8 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Set these up before or after installing:
Environment variable: SEARXNG_URL
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-aicrafted-searxng-mcp": {
"env": {
"SEARXNG_URL": "your-searxng-url-here"
},
"args": [
"-y",
"github:aicrafted/searxng-mcp"
],
"command": "npx"
}
}
}From the project's GitHub README.
A Model Context Protocol (MCP) server that provides web search capabilities by integrating with a SearXNG instance.
services:
searxng:
image: searxng/searxng:latest
ports:
- 8080:8080
volumes:
- ./searxng/etc/:/etc/searxng/
- ./searxng/data/:/var/cache/searxng/
restart: always
searxng-mcp:
image: ghcr.io/aicrafted/searxng-mcp:latest
restart: unless-stopped
depends_on:
# Ensure SearXNG starts before the MCP server
- searxng
environment:
SEARXNG_URL: http://searxng:8080
MCP_HOST: 0.0.0.0
MCP_PORT: 32123
MCP_TRANSPORT: "http"
ports:
- "32123:32123"
{
"mcpServers": {
"searxng": {
"type": "http",
"url": "http://localhost:32123/mcp"
}
}
}
{
"mcpServers": {
"searxng": {
"type": "sse",
"url": "http://localhost:32123/sse"
}
}
}
Note: SSE transport uses the
/sseendpoint, not/mcp. HTTP transport uses/mcp.
pip install -r requirements.txt
.env file (optional):
SEARXNG_URL=http://your-searxng-instance:8080
MCP_PORT=32123
MCP_HOST=127.0.0.1
Run the server using uv or standard python:
python searxng_mcp.py --transport http --port 32123 --searxng http://searx.lan
Build the image:
docker build -t searxng-mcp .
Run the container:
docker run -d \
-p 32123:32123 \
-e SEARXNG_URL=http://your-searxng-instance:8080 \
--name searxng-mcp \
searxng-mcp
stdio: Standard input/output (default for some MCP clients).http: Stateless HTTP (streamable-http).sse: Server-Sent Events.SearXNG aggregates results from various sources. This guide outlines the capabilities available through the web_search tool.
Categories help refine your search by content type. Use these in the categories parameter (comma-separated).
| Category | Description |
|---|---|
general | Default web search (Google, Brave, DuckDuckGo, etc.) |
images | Image search results |
videos | Video content from YouTube, Vimeo, etc. |
news | Recent news articles |
map | Geographical and map information |
it | IT-related searches (StackOverflow, GitHub, etc.) |
science | Scientific papers and articles (ArXiv, Google Scholar) |
files | Torrent and file searches |
social_media | Posts and profiles from social platforms |
SearXNG can query over 130 engines. Configured engines typically include:
categories: Filter by specific types (e.g., news,it).engines: Force specific engines (e.g., google,wikipedia).language: Specify search language (e.g., en, es, fr).pageno: Navigate through multiple pages of results.time_range: Filter by date (day, month, year).safesearch: Control content filtering (0=None, 1=Moderate, 2=Strict).Use the web_search_info tool to dynamically retrieve the list of enabled categories and engines from your instance.
Symptom: http://localhost:<port>/ returns connection refused or hits the wrong service,
but curl from inside the container works fine.
Root cause: WSL2 port relay ghost
WSL2 automatically forwards ports from the Linux VM to the Windows host using wslrelay.exe.
When a process inside WSL listens on a port, WSL creates a relay bound to [::1]:<port>
(IPv6 loopback) on the Windows side.
When that WSL process stops, wslrelay.exe often does not release the port. The relay
entry stays alive as a zombie listener on [::1]:<port>.
Later, when Docker maps a container to the same host port, it binds correctly to
0.0.0.0:<port> — but [::1]:<port> is already taken by the stale relay.
On Windows, localhost resolves to ::1 (IPv6) first. So browser and curl requests to
localhost:<port> hit the dead wslrelay.exe entry instead of the Docker container,
resulting in a connection error or unexpected response.
Connecting via the explicit IPv4 address 127.0.0.1:<port> bypasses the relay and reaches
Docker correctly.
How to diagnose:
# Check what is listening on the port
netstat -ano | findstr :<port>
# Identify the processes
Get-Process -Id <pid1>,<pid2> | Select-Object Id,Name
If you see two entries for the same port — one owned by com.docker.backend and another
by wslrelay — this is the problem.
Workarounds:
| Option | Command | Notes |
|---|---|---|
| Use IPv4 directly | http://127.0.0.1:<port>/ | Immediate, no restart needed |
| Restart WSL | wsl --shutdown | Kills all stale relays; WSL restarts on next use |
| Remap Docker port | Change host port in docker run -p or docker-compose.yml | Avoids the conflict entirely |
Permanent fix:
After wsl --shutdown, restart the Docker container. The relay will no longer exist and
localhost:<port> will work normally until the same port is reused inside WSL again.
Prevention:
If you regularly run services on the same port both in WSL and in Docker, prefer one of:
127.0.0.1:<port>:<port> explicit binding in docker-compose.yml to force IPv4wslrelay port leakBe the first to review this server!
by Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.
by Microsoft · Content & Media
Convert files (PDF, Word, Excel, images, audio) to Markdown for LLM consumption
by mcp-marketplace · Developer Tools
Scaffold, build, and publish TypeScript MCP servers to npm — conversationally
by mcp-marketplace · Finance
Free stock data and market news for any MCP-compatible AI assistant.