An MCP sse implementation of the Model Context Protocol (MCP) server integrated with SearXNG for providing AI agents with powerful, privacy-respecting search capabilities.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"searxng-mcp-server": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
An MCP sse implementation of the Model Context Protocol (MCP) server integrated with SearXNG for providing AI agents with powerful, privacy-respecting search capabilities.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in search
Web and local search using Brave Search API
Production ready MCP server with real-time search, extract, map & crawl.
mini cli search engine for your docs, knowledge bases, meeting notes, whatever. Tracking current sota approaches while being all local
MCP server for Firecrawl — search, scrape, and interact with the web. Supports both cloud and self-hosted instances. Features include web search, scraping, page interaction, batch processing, and LLM-powered content analysis.
MCP Security Weekly
Get CVE alerts and security updates for Searxng Mcp Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
An MCP sse implementation of the Model Context Protocol (MCP) server integrated with SearXNG for providing AI agents with powerful, privacy-respecting search capabilities.
This project demonstrates how to build an MCP server that enables AI agents to perform web searches using a SearXNG instance. It serves as a practical template for creating your own MCP servers, using SearXNG as a backend.
The implementation follows the best practices laid out by Anthropic for building MCP servers, allowing seamless integration with any MCP-compatible client.
You must have a SearXNG server running and accessible. The recommended way is via Docker:
docker run -d --name=searxng -p 32768:8080 -v "/root/searxng:/etc/searxng" \
-e "BASE_URL=http://0.0.0.0:32768/" \
-e "INSTANCE_NAME=home" \
--restart always searxng/searxng
/root/searxng.http://172.17.0.1:32768 by default (see .env).Install uv if you don't have it:
pip install uv
Clone this repository:
git clone https://github.com/The-AI-Workshops/searxng-mcp-server.git
cd searxng-mcp-server/dev/searXNG-mcp
Install dependencies:
uv pip install -r requirements.txt
Create a .env file based on the provided example:
nano .env
# Edit .env as needed
Configure your environment variables in the .env file (see Configuration section).
Build the Docker image:
docker build -t mcp/searxng-mcp .
Create a .env file and configure your environment variables.
Run the Docker image:
docker run -d --env-file ./.env -p 32769:32769 mcp/searxng-mcp
Smithery is a command-line tool for managing AI agent tools and MCP servers.
Install Smithery if you don't have it (see Smithery documentation for various installation methods, e.g., using pipx):
pipx install smithery
Install the SearXNG MCP server using Smithery:
smithery install @The-AI-Workshops/searxng-mcp-server
This will install the server and its dependencies into a dedicated environment managed by Smithery.
After installation, Smithery will provide you with the path to the installed server. You will need to navigate to this directory to configure it. For example, if Smithery installs tools into ~/.smithery/tools/, the path might be ~/.smithery/tools/The-AI-Workshops/searxng-mcp-server.
Create a .env file in the server's directory by copying the example:
# Example:
# cd ~/.smithery/tools/The-AI-Workshops/searxng-mcp-server
cp .env.example .env
nano .env
# Edit .env as needed
Configure your environment variables in the .env file (see Configuration section).
The following environment variables can be configured in your .env file:
| Variable | Description | Example |
|---|---|---|
| SEARXNG_BASE_URL | Base URL of your SearXNG instance | http://172.17.0.1:32768 |
| HOST | Host to bind to when using SSE transport | 0.0.0.0 |
| PORT | Port to listen on when using SSE transport | 32769 |
| TRAN |