SearXNG Model Context Protocol Server

Enable language models to perform web searches through SearXNG. Send search queries and receive formatted results seamlessly, enhancing your model's capabilities with real-time web data.

Installation

Installing for Claude Desktop

Option 1: One-Command Installation

npx mcpbar@latest install aeon-seraph/searxng-mcp -c claude

This command will automatically install and configure the SearXNG Model Context Protocol Server MCP server for your selected client.

Option 2: Manual Configuration

Run the command below to open your configuration file:

npx mcpbar@latest edit -c claude

After opening your configuration file, copy and paste this configuration:

View JSON configuration
{
  "mcpServers": {
    "SearXNG Model Context Protocol Server": {
      "command": "npx",
      "args": [
        "-y",
        "searxng-mcp"
      ],
      "env": {
        "SEARXNG_HOST": "${input:searxng_host}",
        "SEARXNG_PORT": "${input:searxng_port}"
      }
    }
  }
}

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.

Installation

# Clone the repository
git clone https://github.com/aeon-seraph/searxng-mcp.git
cd searxng-mcp

# Install dependencies
npm install

# Build the project
npm run build

Requirements

Usage

# Run the server
node build/index.js

The server will run on stdio, making it suitable for integration with MCP-compatible language models.

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

Example:

SEARXNG_HOST=mysearx.example.com SEARXNG_PORT=443 SEARXNG_PROTOCOL=https node build/index.js

Docker

The project includes a Dockerfile for easy deployment:

# Build the Docker image
docker build -t searxng-mcp .

# Run the container
docker run -e SEARXNG_HOST=mysearx.example.com -e SEARXNG_PROTOCOL=https searxng-mcp

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)

License

MIT

Share:
Details:
  • Stars


    1
  • Forks


    1
  • Last commit


    4 months ago
  • Repository age


    4 months
  • License


    MIT
View Repository

Auto-fetched from GitHub .

MCP servers similar to SearXNG Model Context Protocol Server:

 

 
 
  • Stars


  • Forks


  • Last commit


 

 
 
  • Stars


  • Forks


  • Last commit


 

 
 
  • Stars


  • Forks


  • Last commit