EM

erhwenkuo/mcp-searxng

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

11 stars 7 forks 品質 69 トレンド 8MIT

一個用 About AI エージェント 可透明 SearXNG 服務尋外部網站内包化 MCP サーバー 。

概要

AIエージェントが使用するMCP Serverの例は、AIエージェントがSearXNGのオープンソースメタ・サーチエンジンで新しい外部情報を検索できるようにするように設計されています。 現在、Google以外の多くの検索エンジンが市場で登場し、Googleが不足している地域で市場シェアをキャプチャしようとしています。 たとえば、DuckDuckGoは、ユーザーの追跡、すべての検索でEcosia植物の木を強調し、Brave Searchは、無料の検索エンジンを構築するための集団努力を活用することを目指しています。 しかし、これらのエンジンによって返された結果は、しばしば満足していない。 まず、Googleは多くのWebページをクロールしません。 第二に、中国語のサポートは悪いです。 Googleが表示されない興味深いページにアクセスすることができますが、Google以外の検索エンジンは、まだ使用が困難です。 そのため、複数の検索エンジンから結果を結合しません!? メタ・サーチエンジンが何をしているかはまさにそのことです.

概要(AI 翻訳)

AIエージェントが使用するMCP Serverの例は、AIエージェントがSearXNGのオープンソースメタ・サーチエンジンで新しい外部情報を検索できるようにするように設計されています。

現在、Google以外の多くの検索エンジンが市場で登場し、Googleが不足している地域で市場シェアをキャプチャしようとしています。 たとえば、DuckDuckGoは、ユーザーの追跡、すべての検索でEcosia植物の木を強調し、Brave Searchは、無料の検索エンジンを構築するための集団努力を活用することを目指しています。

しかし、これらのエンジンによって返された結果は、しばしば満足していない。 まず、Googleは多くのWebページをクロールしません。 第二に、中国語のサポートは悪いです。 Googleが表示されない興味深いページにアクセスすることができますが、Google以外の検索エンジンは、まだ使用が困難です。

そのため、複数の検索エンジンから結果を結合しません!? メタ・サーチエンジンが何をしているかはまさにそのことです。 オープンソースのメタ・リサーチ・エンジンソフトウェアであるSearXNGは、熱心なコミュニティ・メンバーが提供するサイトを通じて、セルフホストまたは使用することができます.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

mcp-searxng

An example of an MCP Server for use by an AI Agent, designed to allow the AI Agent to search for new external information through SearXNG’s open-source meta-search engine.

Currently, many search engines other than Google have emerged in the market, attempting to capture market share in areas where Google falls short. For instance, DuckDuckGo emphasizes not tracking users, Ecosia plants trees with every search, and Brave Search aims to harness collective efforts to build a free search engine.

However, the results returned by these engines are often unsatisfactory. Firstly, they don’t crawl as many web pages as Google does; secondly, their support for Chinese is poor. Although they can access some interesting pages that Google doesn’t display, search engines other than Google are still quite difficult to use.

So why not combine the results from multiple search engines!? That’s exactly what a meta-search engine does. SearXNG, an open-source meta-search engine software, can be self-hosted or used via sites provided by enthusiastic community members. For businesses, SearXNG offers a way to maintain privacy and security control while enabling AI Agents to effectively search for the external data they need.

References:

Purpose

This MCP server demonstrates an SSE-based MCP server (integrated with SearXNG and Microsoft’s markdownify to extract web pages into Markdown-formatted text) and its operational mode using the MCP Inspector (MCP client).

Runtime Environment

This project uses uv to manage dependencies and the Python runtime environment. If uv is not yet installed, you can follow the installation instructions on the official website.

The following commands are executed in an Ubuntu 24.04 environment. For operations on other operating systems, please adjust accordingly:

$ curl -LsSf https://astral.sh/uv/install.sh | sh

Download source code:

$ git clone https://github.com/erhwenkuo/mcp-searxng.git

$ cd mcp-searxng

$ uv sync

Running the Service

Running Both Services with Docker Compose

For a simplified setup, you can use the root-level docker-compose.yaml file to run both the SearXNG service and the MCP-SEARXNG service together. This approach automatically handles the network configuration between the two services. This is the fastest way to set up mcp-searxng.

First, ensure you are in the project root directory:

GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "searxng": { "url": "http://localhost:5488/sse" } } }