Fire in da houseTop Tip:Most people pay up to $340 per month for Perplexity, MidJourney, Runway, ChatGPT, and more - but you can get them all your AI tools for $15 with Galaxy. It's free to test!Fire in da houseCheck it out

mcp-searxng

MCP.Pizza Chef: ihor-sokoliuk

The mcp-searxng is an MCP server that integrates the SearXNG API to provide powerful web search capabilities within the Model Context Protocol ecosystem. It supports general web queries, news, and article searches with features like pagination to navigate through result pages, time filtering to restrict results by day, month, or year, and language selection to tailor results to preferred languages. Additionally, it offers safe search controls to filter content appropriately. This server enables LLMs and AI agents to perform real-time, context-aware web searches, enhancing their ability to retrieve up-to-date and relevant information securely and efficiently.

Use This MCP server To

Perform real-time web searches within AI workflows Retrieve news and articles with time-based filtering Paginate through search results programmatically Filter search results by language preference Apply safe search filters to control content sensitivity

README

SearXNG MCP Server

An MCP server implementation that integrates the SearXNG API, providing web search capabilities.

SearXNG Server MCP server

smithery badge

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

  1. Choose a SearxNG instance from the list of public instances or use your local environment.
  2. Set the SEARXNG_URL environment variable to the instance URL.
  3. The default SEARXNG_URL value is http://localhost:8080.

Usage with Claude Desktop

Installing via Smithery

To install SearxNG Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @ihor-sokoliuk/server-searxng --client claude

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.

mcp-searxng FAQ

How do I configure pagination in mcp-searxng?
You can specify the page number in the search request to retrieve different pages of results.
Can I filter search results by date?
Yes, mcp-searxng supports time filtering by day, month, or year to narrow down results.
How does safe search work in mcp-searxng?
Safe search controls the level of content filtering to exclude inappropriate or sensitive results.
Is it possible to select the language for search results?
Yes, you can set a preferred language to filter search results accordingly.
What input parameters does the searxng_web_search tool accept?
It accepts a query string along with optional parameters like page number, time range, language, and safe search level.
How does mcp-searxng enhance AI model capabilities?
By providing real-time web search data, it allows models to access current information beyond their training data.
Is mcp-searxng compatible with multiple LLM providers?
Yes, it works with models from OpenAI, Anthropic Claude, and Google Gemini through the MCP protocol.
Where can I find the source code for mcp-searxng?
The source code is available on GitHub under the repository linked in the MCP server documentation.