SearXNG Model Context Protocol Server

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Provides containerization support for easy deployment of the MCP server with configurable environment variables for connecting to SearXNG instances.

  • Enables language models to perform web searches through SearXNG, allowing search queries with customizable parameters like categories, page numbers, time ranges, and result formatting.

SearXNG モデルコンテキストプロトコルサーバー

言語モデルを SearXNG 検索エンジンとインターフェースするためのモデル コンテキスト プロトコル (MCP) サーバー。

説明

このサーバーは、モデルコンテキストプロトコル標準を用いて、言語モデルがSearXNG経由でウェブ検索を実行できるようにします。言語モデルがSearXNGに検索クエリを送信し、フォーマットされた結果を受け取るための、簡潔なインターフェースを提供します。

インストール

# Clone the repository git clone https://github.com/aeon-seraph/searxng-mcp.git cd searxng-mcp # Install dependencies npm install # Build the project npm run build

要件

使用法

# Run the server node build/index.js

サーバーは stdio 上で実行されるため、MCP 互換言語モデルとの統合に適しています。

構成

サーバーは環境変数を使用して設定できます。

変数説明デフォルト
SEARXNG_プロトコル使用するプロトコル(http/https)http
検索ホストSearXNGホストローカルホスト
検索ポートSearXNGポート8888
キャッシュTTLキャッシュの有効期間(ミリ秒)600000(10分)
最大キャッシュサイズキャッシュされるクエリの最大数100

例:

SEARXNG_HOST=mysearx.example.com SEARXNG_PORT=443 SEARXNG_PROTOCOL=https node build/index.js

ドッカー

このプロジェクトには、簡単にデプロイできる Dockerfile が含まれています。

# Build the Docker image docker build -t searxng-mcp . # Run the container docker run -e SEARXNG_HOST=mysearx.example.com -e SEARXNG_PROTOCOL=https searxng-mcp

検索パラメータ

検索機能は次のパラメータをサポートしています。

  • query (必須): 検索クエリ文字列
  • categories : 検索カテゴリのカンマ区切りリスト
  • pageno : 検索ページ番号(デフォルト: 1)
  • time_range : 結果の時間範囲(「日」、「週」、「月」、「年」)
  • raw_json : フォーマットされたテキストの代わりに生の JSON レスポンスを返します (デフォルト: false)

ライセンス

マサチューセッツ工科大学

-
security - not tested
A
license - permissive license
-
quality - not tested

モデル コンテキスト プロトコル標準を使用して、言語モデルが SearXNG を通じて Web 検索を実行できるようにするサーバー。

  1. Description
    1. Installation
      1. Requirements
        1. Usage
          1. Configuration
            1. Docker
              1. Search Parameters
                1. License
                  ID: ddmcps77gn