# searxng-deepdive [Health: Active]

**Category:** 🔎 Search & Data Extraction  
**Repository:** https://github.com/burakaydinofficial/searxng-deepdive  
**GitHub Stars:** 1  
**npm Downloads (last month):** 315  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/searxng-deepdive

## Description
MCP server for SearXNG with engine targeting, multi-page fanout, and HTML→Markdown URL reading.

## Tools
Capabilities this server exposes over MCP:

- **search** — Broad web search across the SearXNG instance's full enabled engine pool.

Use this for general-purpose queries when you don't have a specific source preference. Returns a merged, deduplicated result list from across this instance's enabled engines — actual yield depends on which engines respond at query time.

Knobs:
  • pages=N (max 5) — fetch multiple pages and merge for more results in one call.
  • format='full' — full result objects with metadata; default 'compact' is token-efficient.
  • time_range — narrow to recent results (note: not all engines support this — see field doc).

When to reach for a different tool:
  • search_on_engines    — you want specific sources (e.g. just ArXiv + PubMed)
  • search_by_category   — you want all engines in a category (e.g. all science)
- **search_on_engines** — Search using ONLY the specified engines (e.g. engines: ["arxiv", "duckduckgo"]).

Use when you have a specific source preference instead of the broad `search` tool.

NOTE: this instance's live engine/category list is currently unavailable — SearXNG was unreachable when the server started. Names you pass are forwarded and validated once SearXNG is reachable; restart the server after SearXNG is up to see the enabled list here.

Multi-page fanout (pages=N) and other knobs work the same as the broad `search` tool.
- **search_by_category** — Search within one or more categories — runs every engine tagged with each (e.g. categories: ["science"]).

Use when you want broad coverage of a content type without enumerating engines.

NOTE: this instance's live engine/category list is currently unavailable — SearXNG was unreachable when the server started. Names you pass are forwarded and validated once SearXNG is reachable; restart the server after SearXNG is up to see the enabled list here.

Multi-page fanout (pages=N) and other knobs work the same as the broad `search` tool.
- **web_url_read** — Fetch a URL and convert its HTML content to clean Markdown.

Use after `search` (or its variants) when you have a URL and want the
actual page text, not just the search snippet. Lightweight HTTP +
HTML→Markdown — handles ~80% of the static-HTML web (Wikipedia, docs
sites, blogs, news, GitHub READMEs).

What this DOES NOT handle:
  • JavaScript-rendered pages (React/Vue/Angular SPAs) — content loads
    after the initial HTML, which we don't execute. Returns minimal or
    empty markdown for these.
  • Bot-protected pages (Cloudflare challenge, captcha) — typically
    fail with HTTP 403/503.
  • Binary resources (PDF, images, archives) — returns an explanatory
    hint instead of garbled bytes.

For those cases, fall back to a Chromium-backed reader (e.g. Crawl4AI
exposed via the SearXNG-Compose `reader` profile).

Token-efficient extraction modes (priority order — first one set wins):
  • readHeadings:true        — returns ONLY the heading list (hierarchical
                                 TOC). Cheapest survey of a long page.
  • section:'<text>'         — returns content under first matching
                                 heading, up to the next same-or-higher
                                 heading. Use after readHeadings to jump.
  • paragraphRange:'3-7'     — 1-indexed paragraph slice; supports 'N'
                                 (single) or 'N-M' (range).
  • startChar + maxLength    — character window pagination. Response
                                 includes total_length and truncated so
                                 you can plan follow-up calls.

If no extraction mode is set, returns the full Markdown.

Recommended workflow for long pages:
  1. web_url_read(url, readHeadings: true)            ← TOC scan
  2. web_url_read(url, section: '<chosen heading>')   ← targeted read
Far more token-efficient than fetching the full page up front.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "searxng-deepdive": {
    "command": "npx",
    "args": ["-y","searxng-deepdive"],
    "env": {
      "SEARXNG_URL": ""
    }
  }
}
```

**Requires environment variables:** `SEARXNG_URL` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What searxng-deepdive MCP server does

The searxng-deepdive MCP server connects an MCP-speaking client to a running SearXNG instance. It provides three search tools and one URL reader: broad web search, engine-specific search, category-specific search, and HTML-to-Markdown page extraction.

Search results can be paginated and fetched across multiple pages in one request. Responses default to a compact representation containing the fields typically needed to select sources, while a full response can be requested when additional result metadata is needed.

## How it works

At startup, the server reads the live engine and category information from the SearXNG instance and adds that information to its tool descriptions. This lets an agent choose from the engines and categories actually available on that instance rather than relying on a fixed list.

The search tools accept shared controls for page number, page fanout, time range, language, safe-search level, and response format. Engine and category inputs are validated case-insensitively. Invalid values can produce cross-reference hints when an engine name is supplied where a category is expected, or the reverse. Search responses may also include hints when a time filter, an unresponsive engine, or a single-engine query appears to explain an empty result.

The URL reader performs lightweight HTTP retrieval and converts supported content to Markdown without using a headless browser. For long pages, agents can first request headings, then retrieve a matching section. Paragraph ranges and character windows provide other ways to read a page incrementally.

## Setup and configuration

Run the searxng-deepdive MCP server through `npx` from an MCP client and set `SEARXNG_URL` to the base URL of the running SearXNG service. The documented default is `http://127.0.0.1:8080`; the quickstart example uses port `7979`.

The runtime requirement is Node.js 22 or newer. During development, the project can be built with TypeScript, tested with Vitest, or started directly from `src/` with `tsx`. When source code changes, the MCP client subprocess must be stopped and restarted before the changes are loaded.

## Tools and capabilities

- `search(query, ...)` searches across the enabled SearXNG engine pool and merges deduplicated results.
- `search_on_engines(query, engines, ...)` restricts a search to named engines, such as academic sources when those engines are enabled.
- `search_by_category(query, categories, ...)` searches every engine assigned to the selected categories.
- `web_url_read(url, ...)` converts HTML to Markdown and supports heading-only output, section extraction, paragraph ranges, and character-window pagination.

The `web_url_read` tool also accepts JSON, YAML, and TOML content types. Search options include `pageno`, `pages` from 1 to 5, `time_range`, BCP-47 `language` or `all`, `safe_search` values from 0 to 2, and `format` set to `compact` or `full`.

## Limitations and notes

The searxng-deepdive MCP server is intended to run locally alongside an MCP client within the user's trust boundary. The URL reader handles much static HTML, including documentation, blogs, news pages, GitHub README files, and Wikipedia, but it does not provide a browser-rendering environment.

JavaScript-rendered single-page applications and bot-protected sites may return little or no content. Use a Chromium-backed reader for those cases. Heading extraction can also produce no entries on structurally flat pages; paragraph-range retrieval is the fallback for those pages.

Not every SearXNG engine supports time filtering, and setting a time range can result in empty responses. The connected SearXNG configuration determines which engines and categories are available.

_Full upstream README: https://allmcps.com/mcp/searxng-deepdive/readme_

