Easy SearXNG MCP Server

io.github.sheldonrobinson由 GitHub 帳號 sheldonrobinson 發布v2026.11.22.0更新於 Nov 22, 2026

通過 SearXNG 搜尋網路,支援選填的重排序和文件處理。

AI 翻譯由 AI 模型根據下方的原文描述翻譯,可能有誤。

原文描述

Search the web through SearXNG with optional reranking and document processing.

已驗證STDIO僅桌面

概覽

Easy SearXNG 的本機 MCP 服務;無需登入;STDIO。

暫無 AI 概覽:以下資訊來自註冊中心條目和服務本身。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Easy SearXNG MCP Server,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Konnek SearXNG MCP Server

This project implements an MCP (Model Context Protocol) server for SearXNG integration, providing web search functionality for AI agents.

Purpose

This server is developed to serve as a dedicated, open, and reliable metasearch solution for AI agents. Its goal is to provide a strong, high-quality search backend that can replace or supplement commercial search APIs like Tavily, Bing Search, and Brave Search.

Features

  • MCP Compliance: Implements the MCP protocol for search operations.
  • SearXNG Integration: Uses the searxng Python library to interact with SearXNG instances.
  • Dual Search Methods:
    • search: Basic search via SearXNG client.
    • web_search: Full-featured web search with categories, engines, language, time range, safe search, and result limits.
  • Tavily-Compatible Adapter: Provides a Tavily-compatible interface (TavilyAdapter) that wraps SearXNG results in Tavily's response format.
  • Embedded SearXNG: Optional embedded local SearXNG MCP server via --embedded flag — starts searxng's MCP server in-process (background thread) and connects via HttpSearchAdapter on localhost. No separate Flask server required.
  • Dual Transport Support:
    • stdio: MCP over Standard Input/Output (default).
    • streamable-http: MCP over Streamable HTTP (Starlette + uvicorn).
  • PEP 8 compliant: Code follows Python's style guide.
  • RealPython Project Layout: Source code is organised under the src directory.

Directory Structure

easy-searxng-mcp-server/├── src/│   ├── __init__.py│   ├── main.py                 # Core server implementation│   ├── common/│   │   ├── __init__.py│   │   └── config.py           # Configuration and logging│   ├── shared/│   │   ├── __init__.py│   │   └── types.py            # Shared data types (TavilyResult, etc.)│   ├── tavily/│   │   ├── __init__.py│   │   ├── adapter.py          # Tavily-compatible adapter│   │   └── settings/│   │       ├── __init__.py│   │       └── tavily_defaults.yml│   ├── runner/│   │   ├── __init__.py│   │   ├── simplexng.py        # Embedded SearXNG server│   │   └── settings/│   │       ├── __init__.py│   │       └── settings_template.yml│   └── mcp_server/│       ├── __init__.py│       └── server.py           # MCP server with web_search tool├── pyproject.toml              # Project configuration and dependencies├── server_entry.sh             # Entry script└── README.md                   # This file

Usage

Via uvx (recommended)

bash
uvx --from easy-searxng-mcp-server easy-searxng-mcp-server [OPTIONS]

Direct execution from source

bash
cd <path-to-source>./server_entry.sh [OPTIONS]

Supported Options

FlagDescription
--transportMCP transport: stdio (default) or streamable-http.
--embeddedStart searxng MCP server in-process on localhost, then connect via HttpSearchAdapter. No separate Flask server required.
--httpConnect to a remote SearXNG instance via HTTP (requires --searxng-url or SEARXNG_URL env var).
--searxng-urlURL of the remote SearXNG instance (e.g., http://127.0.0.1:11888).
--hostHost to bind for streamable-http transport (default: 127.0.0.1).
--portPort to bind for streamable-http transport (default: 8000).
--sxng-portPort for embedded SearXNG server (default: 11888).
--sxng-hostHost for embedded SearXNG server (default: 127.0.0.1).
--embeddings-urlOpenAI-compatible embeddings endpoint URL for VectorRAG reranking.
--embeddings-modelEmbedding model name (omit for llama-server to use loaded model).
--embeddings-dimEmbedding dimension (omit for llama-server to use model's n_embd).

Note: --embedded is the recommended way to run locally. It starts the SearXNG MCP server in-process and connects automatically. Using --searxng-url=http://127.0.0.1:11888 achieves the same result but requires you to start the SearXNG server separately.

VectorRAG (Optional)

When the EMBEDDINGS_URL environment variable is set, the server uses VectorRAG to rerank search results by semantic similarity using LanceDB + OpenAI-compatible embeddings.

Env VarDefaultDescription
EMBEDDINGS_URL—OpenAI-compatible embeddings endpoint URL (required for VectorRAG)
EMBEDDINGS_MODEL—Embedding model name (omit for llama-server to use loaded model)
EMBEDDINGS_DIM—Embedding dimension (omit for llama-server to use model's n_embd)
RERANK_TOP_K5Number of top results after reranking

Example:

bash
export EMBEDDINGS_URL=http://localhost:8080/v1uvx --from easy-searxng-mcp-server easy-searxng-mcp-server --embedded

Examples

Embedded SearXNG with stdio transport (recommended for local use):

bash
./server_entry.sh --embedded --transport stdio

Then enter MCP requests in JSON format:

json
{"method": "search", "query": "python programming"}

Embedded SearXNG with streamable-http transport:

bash
./server_entry.sh --embedded --transport streamable-http --host 127.0.0.1 --port 8000

MCP endpoint: http://127.0.0.1:8000/mcp

Web Search with parameters:

json
{  "method": "web_search",  "query": "artificial intelligence",  "categories": ["general", "news"],  "engines": ["google", "bing", "duckduckgo"],  "language": "en",  "max_results": 10,  "time_range": "week",  "safe_search": 1}

Remote Mode with streamable-http:

bash
export SEARXNG_URL="http://your-searxng-instance:8080"./server_entry.sh --transport streamable-http --host 0.0.0.0 --port 8000

Or with explicit URL:

bash
./server_entry.sh --searxng-url "http://your-searxng-instance:8080" --transport streamable-http

Environment Variables

VariableDescription
SEARXNG_URLURL of the remote SearXNG instance.
TAVILY_TIMEOUTTavily adapter HTTP timeout (default: 10).
TAVILY_USER_AGENTUser agent for Tavily adapter.
TAVILY_MAX_RESULTSMax results for Tavily adapter (default: 10).
TAVILY_CONTENT_LENGTHContent length for Tavily adapter (default: 2500).

Supported File Formats

The server uses markitdown for converting various file formats to text. When enabled, the following formats are supported:

FormatInstallationDescription
[pptx]pip install 'easy-searxng-mcp-server[pptx]'PowerPoint files
[docx]pip install 'easy-searxng-mcp-server[docx]'Word files
[xlsx]pip install 'easy-searxng-mcp-server[xlsx]'Excel files (newer)
[xls]pip install 'easy-searxng-mcp-server[xls]'Excel files (older)
[pdf]pip install 'easy-searxng-mcp-server[pdf]'PDF files
[outlook]pip install 'easy-searxng-mcp-server[outlook]'Outlook messages
[audio-transcription]pip install 'easy-searxng-mcp-server[audio-transcription]'Audio transcription (wav, mp3) using FasterWhisper
[youtube-transcription]pip install 'easy-searxng-mcp-server[youtube-transcription]'YouTube video transcription

To install all optional dependencies:

bash
pip install 'easy-searxng-mcp-server[all-formats]'

Or via uvx:

bash
uvx --from 'easy-searxng-mcp-server[all-formats]' easy-searxng-mcp-server

Audio transcription uses FasterWhisper for high-performance speech recognition. The Whisper base model is bundled with the package, so no internet download is required. The model size can be configured via the WHISPER_MODEL environment variable (default: base, falls back to downloaded model if bundled not found).

Dependencies

  • Python 3.8+
  • searxng - Core SearXNG client and MCP server
  • uvicorn, starlette, sse-starlette, anyio - Streamable HTTP transport
  • flask, waitress - Web server for embedded mode
  • aiohttp, beautifulsoup4 - Web scraping for Tavily adapter
  • pydantic - Data validation
  • pyyaml, platformdirs - Configuration
  • mcp-utils, strif, queuelib - MCP and queue utilities

Install with:

bash
pip install -r requirements.txt

MCP Tools

web_search

Performs a web search using SearXNG with customizable parameters.

Parameters:

  • query (required): Search query string
  • categories: Search categories (e.g., ["general", "news"])
  • engines: Search engines (e.g., ["google", "bing", "duckduckgo"])
  • language: Language code (default: "auto")
  • max_results: Maximum results (default: 5, range: 1-50)
  • time_range: Time filter (day, week, month, year, all)
  • safe_search: Safe search level (0=normal, 1=moderate, 2=strict)

Development

The project follows PEP 8 guidelines and the RealPython project layout with source code in the src directory.

來源:README.md,提交 2ca9959

工具

0
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:伺服器未能啟動。

版本歷史

1
  1. v2026.11.22.0最新Nov 22, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分