SearXNG Model Context Protocol Server
SearXNG モデルコンテキストプロトコルサーバー
言語モデルを SearXNG 検索エンジンとインターフェースするためのモデル コンテキスト プロトコル (MCP) サーバー。
説明
このサーバーは、モデルコンテキストプロトコル標準を用いて、言語モデルがSearXNG経由でウェブ検索を実行できるようにします。言語モデルがSearXNGに検索クエリを送信し、フォーマットされた結果を受け取るための、簡潔なインターフェースを提供します。
Related MCP server: OneSearch MCP Server
インストール
# 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要件
Node.js 16以上
実行中の SearXNG インスタンス (デフォルトではhttp://localhost:8888 )
使用法
# 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)
ライセンス
マサチューセッツ工科大学
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Web search API and MCP server for developers building AI agents.
Free web search for AI agents. No API key required. Hosted MCP in active development.
MCP server for Google search results via SERP API
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables LLMs to perform web searches using Google's Custom Search API through a standardized interface.147MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol server that enables web search, scraping, crawling, and content extraction through multiple engines including SearXNG, Firecrawl, and Tavily.4230 npm148MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables AI assistants to perform web searches using SearXNG, a privacy-respecting metasearch engine.143MIT
- FlicenseCqualityDmaintenanceA Model Context Protocol server that enables LLMs to perform Google searches via the Serper API, allowing models to retrieve current information from the web.1339-