Skip to main content
Glama
pwilkin

SearXNG MCP Server

by pwilkin

mcp-searxng-public

公開されているSearXNGインスタンスをクエリし、HTMLコンテンツをJSON結果に解析するMCPサーバー

根拠

私が見たSearXNG用のMCPサーバーはすべて、出力形式として「json」を使用しています。確かにこれはSearXNG MCPサーバーをコーディングする上でより高速な方法ですが、JSON形式を公開していないパブリックサーバーでは、事実上すべて失敗してしまいます。

このサーバーは、最大 3 つのパブリック SearXNG サーバー (1 つをメインとして使用し、その他をフォールバックとして使用) から読み取り、結果を JSON に解析します。

Related MCP server: SearXNG Server

インストール

npm install mcp-serxng-publicでインストールします。

サーバーがインストールされている場合、実行構成は次のようになります。

{
      "name": "SearXNGScraper",
      "type": "stdio",
      "command": "npx",
      "args": ["mcp-searxng-public"],
      "capabilities": {
        "tool-calls": true
      },
      "env": {
        "SEARXNG_BASE_URL": "https://searx.be;https://searx.tiekoetter.com;https://opnxng.com;https://searxng.world;https://searx.oloke.xyz;https://seek.fyi",
      }
}

(選択したサーバーとして、 https://searx.space/の任意のサーバーを使用できます)

使用法

サーバーは1つのエンドポイントsearchを公開します。このエンドポイントは2つの引数を取ります。1つは検索クエリであるquery 、もう1つはオプションのtime_rangeです。time_range は、 https://docs.searxng.org/dev/search \_api.html の仕様に従った時間範囲パラメータ( daymonth 、またはyear )を受け取ります。

返されるのはオブジェクトの配列です:

[
      {
        "url": "https://github.com/searxng/searxng",
        "summary": "You can start SearXNG using make run in the terminal or by pressing Ctrl+Shift+B"
      },
      {
        "url": "https://searx.bndkt.io/",
        "summary": "Powered by searxng - 2025.3.22+5986629c6 — a privacy-respecting, open metasearch engine Source code | Issue tracker | Engine stats | Public instances | Contact instance maintainer"
      },
      {
        "url": "https://docs.searxng.org/"
        "summary": "SearXNG is a free internet metasearch engine which aggregates results from up to 243 search services. Users are neither tracked nor profiled. Additionally, SearXNG can be used over Tor …"
      }
      {
        "url": "https://en.wikipedia.org/wiki/SearXNG",
        "summary": "SearXNG is federated, and as such is hosted by several instances, public and private. Private instances are hosted on a local network, or run on the user's desktop computer itself, and are …"
      }
]
Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pwilkin/mcp-searxng-public'

If you have feedback or need assistance with the MCP directory API, please join our Discord server