SearXNG MCP Server

by pwilkin
MIT License
132
1
Integrations
  • Queries public SearXNG instances by parsing HTML search results into JSON format, allowing searches with time range filtering (day, month, year), and providing URL and summary data for each result.

mcp-searxng-public

An MCP server that queries public SearXNG instances, parsing HTML contents into a JSON result

Rationale

All the MCP servers for SearXNG that I've seen use "json" as the output format. While that is certainly a faster way to code a SearXNG MCP server, it will make it fail on virtually all public servers since they don't expose the JSON format.

This server will read from up to three public SearXNG servers (using one as main and the others as fallback) and will parse the results into JSON.

Installation

Install via npm install mcp-serxng-public.

If the server is installed, the run configuration is:

{ "name": "SearXNGScraper", "type": "stdio", "command": "npx", "args": ["mcp-searxng-public"], "capabilities": { "tool-calls": true }, "env": { "SEARXNG_BASE_URL": "https://searx.be;https://searx.tiekoetter.com;https://opnxng.com;https://searxng.world;https://searx.oloke.xyz;https://seek.fyi", } }

(you can use any servers from https://searx.space/ as your selected servers)

Usage

The server exposes one endpoint: search. The endpoint takes two arguments: query - the search query and an optional time_range, which takes a time range parameter according to the https://docs.searxng.org/dev/search_api.html spec (day, month or year).

Returned is an array of objects:

[ { "url": "https://github.com/searxng/searxng", "summary": "You can start SearXNG using make run in the terminal or by pressing Ctrl+Shift+B" }, { "url": "https://searx.bndkt.io/", "summary": "Powered by searxng - 2025.3.22+5986629c6 — a privacy-respecting, open metasearch engine Source code | Issue tracker | Engine stats | Public instances | Contact instance maintainer" }, { "url": "https://docs.searxng.org/" "summary": "SearXNG is a free internet metasearch engine which aggregates results from up to 243 search services. Users are neither tracked nor profiled. Additionally, SearXNG can be used over Tor …" } { "url": "https://en.wikipedia.org/wiki/SearXNG", "summary": "SearXNG is federated, and as such is hosted by several instances, public and private. Private instances are hosted on a local network, or run on the user's desktop computer itself, and are …" } ]

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Tools

An MCP server that allows searching through public SearXNG instances by parsing HTML content into JSON results, enabling metasearch capabilities without requiring JSON API access.

  1. Rationale
    1. Installation
      1. Usage

        Related MCP Servers

        • -
          security
          A
          license
          -
          quality
          An MCP server implementation that integrates the Brave Search API, providing both web and local search capabilities.
          Last updated -
          2
          15,870
          47,408
          JavaScript
          MIT License
          • Linux
          • Apple
        • A
          security
          A
          license
          A
          quality
          An MCP server implementation that integrates the SearxNG API, providing web search capabilities.
          Last updated -
          2
          633
          63
          JavaScript
          MIT License
          • Linux
          • Apple
        • -
          security
          A
          license
          -
          quality
          A server based on the MCP protocol that uses the Brave API for web search functionality.
          Last updated -
          6
          Python
          MIT License
          • Apple
          • Linux
        • -
          security
          A
          license
          -
          quality
          MCP server for using various search tools like Tavily API. Planning to support various search tools (i.e. wiki search, searxng, etc)
          Last updated -
          1
          Python
          MIT License
          • Apple
          • Linux

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/pwilkin/mcp-searxng-public'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server