MCP ExplorerExplorer

Mcp Searxng Public

@pwilkinon 9 months ago
4 MIT
FreeCommunity
AI Systems
An MCP server that queries public SearXNG instances, parsing HTML contents into a JSON result

Overview

What is Mcp Searxng Public

mcp-searxng-public is an MCP server designed to query public SearXNG instances, converting HTML content into a structured JSON format for easier data handling.

Use cases

Use cases include building privacy-respecting search engines, aggregating search results for research purposes, and creating tools that require data from various public search engines.

How to use

To use mcp-searxng-public, install it via npm with ‘npm install mcp-searxng-public’. Configure the server with the necessary environment variables for SearXNG instances, and access the search endpoint with a query and optional time range.

Key features

Key features include the ability to parse HTML results from multiple public SearXNG servers into JSON, support for fallback servers, and a simple search endpoint that accepts queries and time range parameters.

Where to use

mcp-searxng-public can be used in fields such as web scraping, data aggregation, and privacy-focused search applications, where users need to gather search results from multiple sources.

Content

mcp-searxng-public

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

SearXNG Server MCP server

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-searxng-public.

If the server is installed, the run configuration is:

(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:

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers