Skip to main content
Glama
mcp-searxng
by flammafex

mcp-searxng

A fork of mcp-searxng: an MCP server for querying a SearXNG instance from an MCP client.

This fork keeps the package name mcp-searxng, adds structured search-oriented tools, and disables arbitrary direct URL reads by default.

Repository: https://git.carpocratian.org/sibyl/mcp-searxng.git

What This Fork Does

  • Exposes SearXNG-backed search tools over MCP

  • Returns normalized structured search results by default

  • Supports dedicated news, image, video, and research evidence tools

  • Keeps web_url_read available only behind ENABLE_WEB_URL_READ=true

  • Supports both STDIO and HTTP transport

Related MCP server: SearXNG MCP Server

Security Posture

The direct web_url_read tool is disabled by default in this fork.

That means:

  • searxng_research still performs controlled internal reads of selected search results

  • internal fetch-and-convert logic still exists for top search results

  • arbitrary user-supplied URL reads are not exposed unless you opt in

To enable direct URL reads in a trusted deployment:

ENABLE_WEB_URL_READ=true

If you expose the HTTP transport on a network, also use the hardened HTTP settings described in CONFIGURATION.md.

Build

git clone https://git.carpocratian.org/sibyl/mcp-searxng.git
cd mcp-searxng
npm install
npm run build

Quick Start

Example MCP client configuration using the local build:

{
  "mcpServers": {
    "searxng": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-searxng/dist/index.js"],
      "env": {
        "SEARXNG_URL": "https://search.example.com"
      }
    }
  }
}

Tools

General SearXNG search with structured normalized output by default.

Key inputs:

  • query

  • pageno

  • categories

  • engines

  • time_range

  • language

  • response_mode

searxng_news_headlines

News-focused wrapper around SearXNG with news category and same-day recency defaults.

Image-focused wrapper around SearXNG.

Video-focused wrapper around SearXNG.

searxng_research

Searches first, reads selected result pages, chunks the Markdown, and returns ranked source evidence.

Key inputs:

  • query

  • max_results

  • max_chunks

  • max_chunks_per_source

  • max_content_length

  • chunk_target_chars

  • chunk_overlap_chars

web_url_read

Disabled by default.

Enable it only for trusted deployments:

ENABLE_WEB_URL_READ=true

Transport

By default the server uses STDIO.

To enable HTTP transport:

MCP_HTTP_PORT=3000

HTTP mode exposes:

  • POST /mcp

  • GET /mcp

  • DELETE /mcp

  • GET /health

Configuration

The most important variables are:

  • SEARXNG_URL

  • ENABLE_WEB_URL_READ

  • MCP_HTTP_PORT

  • MCP_HTTP_HARDEN

  • MCP_HTTP_AUTH_TOKEN

  • MCP_HTTP_ALLOWED_ORIGINS

  • MCP_SERVER_NAME

Full reference: CONFIGURATION.md

Development

npm test
npm run build

Notes

  • This fork currently keeps the original package name.

  • The MCP package identifier in package.json still reflects the upstream namespace.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Provides privacy-focused web search capabilities through SearXNG metasearch engine, enabling web, image, video, and news searches without tracking. Includes comprehensive research tools that aggregate and analyze results from multiple search engines.
      3
      4
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables web search, image search, and news search through a self-hosted SearXNG instance. Provides privacy-focused meta-search capabilities aggregating results from multiple search engines.
      3
      176 npm
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables web search capabilities via a SearXNG instance, allowing for filtered searches across categories like news, images, and science. It supports multi-language queries, time-range filtering, and safe search options to provide formatted results with metadata.
      1
      176 npm
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to perform web searches and read URL content via a SearXNG instance.
      2
      13 npm
      MIT