SearXNG MCP Bridge logo

SearXNG MCP Bridge

Searches the web through a self-hosted SearXNG instance and exposes health checks over MCP.

Install SearXNG MCP Bridge

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "bocklabs-searxng-mcp-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "@bocklabs/searxng-mcp-bridge"
      ],
      "env": {
        "SEARXNG_INSTANCE_URL": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

SearXNG MCP Bridge connects MCP-compatible clients to a self-hosted SearXNG metasearch instance. It provides a configurable search tool and a health check for monitoring bridge and SearXNG connectivity. The bridge runs over stdio by default, with an HTTP streaming mode for web or remote clients. Use it when agents need web search through an instance you control.

Use cases

  • Run web searches through a self-hosted SearXNG instance
  • Filter search results by language, category, date range, or safe-search level
  • Connect remote MCP clients to SearXNG over HTTP
  • Check bridge connectivity and SearXNG response health

Key features

  • SearXNG-backed web search
  • Configurable search filters and result limits
  • Health and connectivity inspection
  • Stdio and Streamable HTTP transports
  • Five-minute response caching
  • Retry handling for transient failures

Tools2

What SearXNG MCP Bridge lets your agent do. Expand a tool for its parameters.

Verified live~276 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

5/5 checks healthy over the last 16d

What it can do

From the 2 tools this server returned when we ran it.

Read-only tools · 2
Network at startup3 connections
Files written at startupNone
Install scriptsprepare
npm provenanceSigned build
Package age63 days
Maintainers1

Observed 2026-11-02 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev · @bocklabs/searxng-mcp-bridge (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads1.4kPackage downloads in the last 30 days.
Last commit5d agoMost recent push to the default branch.
Tools exposed2Callable tools this server registers over MCP.

How SearXNG MCP Bridge works

What SearXNG MCP Bridge MCP server does

SearXNG MCP Bridge MCP server connects an MCP client to a running SearXNG instance with its JSON API enabled. It places SearXNG search behind MCP tools, allowing clients such as Claude Desktop, Cursor, and VS Code to submit searches through a self-hosted metasearch engine.

The bridge is suited to agents that need web search while keeping the search backend under the operator's control. It requires Node.js 25.x and a reachable SearXNG service.

How it works

The default transport is stdio, which is appropriate for desktop MCP clients that launch a local process. An HTTP mode is also available for web or remote clients. HTTP mode implements the MCP Streamable HTTP specification and uses /mcp for JSON-RPC requests, an event stream, and session termination. Sessions are tracked with mcp-session-id headers.

HTTP deployments expose /healthz for a basic service response. They can also use CORS origin controls, bearer-token authentication, per-IP rate limiting, and DNS rebinding protection. The HTTP server binds to 127.0.0.1 by default; container deployments should set the host to 0.0.0.0 when external access is needed.

Search requests are sent to the configured SearXNG instance. The bridge includes a five-minute response cache, retries transient failures up to three times with exponential backoff, and validates the SearXNG connection during startup. It performs cleanup when receiving SIGINT or SIGTERM.

Setup and configuration

Set SEARXNG_INSTANCE_URL to the full URL of the SearXNG service, then run the package with npx -y @bocklabs/searxng-mcp-bridge. The package can be added to an MCP client's stdio configuration with npx as the command and the instance URL supplied in the environment.

Set TRANSPORT=http to use HTTP mode, and optionally configure PORT and HOST. The default HTTP port is 3002. CORS_ORIGIN accepts a comma-separated origin allowlist, while MCP_HTTP_BEARER enables bearer authentication. Set SEARXNG_BRIDGE_DEBUG=true for debug logging. The --transport CLI flag can select stdio or HTTP and overrides the corresponding environment setting.

A Dockerfile is included and is based on Node.js 25 Alpine. When running the container with HTTP access, publish the selected port and set the bind host appropriately.

Tools and capabilities

  • search accepts a required query and optional language, category list, time range, safe-search level, output format, and maximum result count. Supported time ranges are day, week, month, and year; JSON is the default result format, with HTML also available.
  • health_check takes no parameters and reports the bridge and SearXNG connectivity state. Its response can include response time, cache size, debug status, SearXNG version, and a timestamp.
  • HTTP mode supports MCP initialization, tool listing, tool calls, server-sent event notifications, and session deletion through /mcp.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about SearXNG MCP Bridge

SearXNG MCP Bridge is an MCP server that connects compatible clients to a self-hosted SearXNG metasearch instance. Its main tools are search, with language, category, time, safe-search, format, and result-limit controls, and health_check, which reports bridge and SearXNG connectivity status.

Run `npx -y @bocklabs/searxng-mcp-bridge` after starting a SearXNG instance with its JSON API enabled. Set `SEARXNG_INSTANCE_URL` to the instance URL, and configure the command in your MCP client for stdio use.

Yes, SearXNG MCP Bridge works with Cursor through an `mcp_settings.json` stdio configuration. Set the command to `npx`, pass `-y @bocklabs/searxng-mcp-bridge` as arguments, and provide `SEARXNG_INSTANCE_URL` in the environment.

Set `TRANSPORT=http`, provide `SEARXNG_INSTANCE_URL`, and optionally choose `PORT` and `HOST` before starting the package. The MCP endpoint is `/mcp`; HTTP mode also provides `/healthz` and supports session headers.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSearXNG MCP Bridge AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/bocklabs-searxng-mcp-bridge?style=directory)](https://allmcps.com/mcp/bocklabs-searxng-mcp-bridge)
HTML Embed
<a href="https://allmcps.com/mcp/bocklabs-searxng-mcp-bridge"><img src="https://allmcps.com/api/badge/bocklabs-searxng-mcp-bridge?style=directory" alt="SearXNG MCP Bridge on AllMCPs" /></a>