SearXNG MCP Server
A web search server powered by the SearXNG API.
SearXNG MCP Server
An MCP server implementation that integrates the SearXNG API, providing web search capabilities.
Features
- Web Search: General queries, news, articles, with pagination.
- Pagination: Control which page of results to retrieve.
- Time Filtering: Filter results by time range (day, month, year).
- Language Selection: Filter results by preferred language.
- Safe Search: Control content filtering level for search results.
Tools
-
searxng_web_search
- Execute web searches with pagination
- Inputs:
query(string): The search query. This string is passed to external search services.pageno(number, optional): Search page number, starts at 1 (default 1)time_range(string, optional): Filter results by time range - one of: "day", "month", "year" (default: none)language(string, optional): Language code for results (e.g., "en", "fr", "de") or "all" (default: "all")safesearch(number, optional): Safe search filter level (0: None, 1: Moderate, 2: Strict) (default: instance setting)
-
web_url_read
- Read and convert the content from a URL to markdown
- Inputs:
url(string): The URL to fetch and process
Configuration
Setting the SEARXNG_URL
- Choose a SearxNG instance from the list of public instances or use your local environment.
- Set the
SEARXNG_URLenvironment variable to the instance URL. - The default
SEARXNG_URLvalue ishttp://localhost:8080.
Using Authentication
If you are using a password protected SearxNG instance you can set a username and password for HTTP Basic Auth:
- Set the
AUTH_USERNAMEenvironmental variable to your username - Set the
AUTH_PASSWORDenvironmental variable to your password
Usage with Claude Desktop
NPX
{
"mcpServers": {
"searxng": {
"command": "npx",
"args": [
"-y",
"mcp-searxng"
],
"env": {
"SEARXNG_URL": "YOUR_SEARXNG_INSTANCE_URL"
}
}
}
}
NPM
npm install -g mcp-searxng
And then in your MCP config file:
{
"mcpServers": {
"searxng": {
"command": "mcp-searxng",
"env": {
"SEARXNG_URL": "YOUR_SEARXNG_INSTANCE_URL"
}
}
}
}
Docker
Using Pre-built Image from Docker Hub
docker pull isokoliuk/mcp-searxng:latest
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"searxng": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"SEARXNG_URL",
"isokoliuk/mcp-searxng:latest"
],
"env": {
"SEARXNG_URL": "YOUR_SEARXNG_INSTANCE_URL"
}
}
}
}
Build Locally
docker build -t mcp-searxng:latest -f Dockerfile .
Use
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"searxng": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"SEARXNG_URL",
"mcp-searxng:latest"
],
"env": {
"SEARXNG_URL": "YOUR_SEARXNG_INSTANCE_URL"
}
}
}
}
License
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
Related Servers
Perplexity
Interacting with Perplexity
Yahoo Finance
An MCP server for querying Yahoo Finance data using the yfinance library.
Brave Search
An MCP server for the Brave Search API, providing web and local search capabilities via a streaming SSE interface.
Congress.gov
Access the Congress.gov API to retrieve legislative information.
Mevzuat MCP
Programmatic access to the Turkish Ministry of Justice Legislation Information System (mevzuat.gov.tr) for searching legislation and retrieving article content.
Drawing Guides
Access step-by-step drawing tutorials and guides from easydrawingguides.com for artists of all skill levels.
Library Docs MCP Server
Search and fetch documentation for popular libraries like Langchain, Llama-Index, and OpenAI using the Serper API.
Bocha
A search engine for AI applications, providing world knowledge from web pages and various content sources like weather, news, and images.
Local RAG Backend
A local RAG backend powered by Docker Compose, supporting various document formats for search.
Amazon Product Search
An AI-powered server for Amazon product search and recommendations.