searxng-mcp

searxng-mcp

1

The SearXNG Model Context Protocol Server facilitates integrating language models with the SearXNG search engine through the MCP standard. It allows search queries to be sent and results to be retrieved in a structured format, enhancing search capabilities for language models.

SearXNG Model Context Protocol Server

A Model Context Protocol (MCP) server for interfacing language models with SearXNG search engine.

Description

This server enables language models to perform web searches through SearXNG using the Model Context Protocol standard. It provides a clean interface for language models to send search queries to SearXNG and receive formatted results.

Requirements

Configuration

The server can be configured using environment variables:

VariableDescriptionDefault
SEARXNG_PROTOCOLProtocol to use (http/https)http
SEARXNG_HOSTSearXNG hostlocalhost
SEARXNG_PORTSearXNG port8888
CACHE_TTLCache time-to-live in milliseconds600000 (10 minutes)
MAX_CACHE_SIZEMaximum number of cached queries100

Search Parameters

The search function supports the following parameters:

  • query (required): The search query string
  • categories: Comma-separated list of search categories
  • pageno: Search page number (default: 1)
  • time_range: Time range for results ("day", "week", "month", "year")
  • raw_json: Return raw JSON response instead of formatted text (default: false)