TS

tisddm/searxng-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

43 stars 8 forks 质量 73 趋势 0MIT

tisddm/searxng-mcp 是从 https://github.com/tisddm/searxng-mcp. 导入的 MCP 服务器候选

概览

tisddm/searxng-mcp 是从 https://github.com/tisddm/searxng-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

一款模型上下文协议(MCP)服务器,使AI助手能够使用尊重隐私的元搜索引擎SearXNG进行网页搜索。开箱即用,无需额外部署,通过自动从 SearX.space 中随机选择实例,同时支持带有基础认证的私有实例。

本项目已被弃用。其继任者是 searxNcrawl,位于 https://github.com/DasDigitaleMomentum/searxNcrawl

已弃用

该仓库已被弃用,取而代之的是 searxNcrawl。继任者目前不支持轮询实例选择(通常不可靠)。如果你提交了合适的缺陷报告,可以添加它。

特色

  • 零配置设置:通过使用 SearX.space 中的随机公共实例立即生效
  • 私有实例支持:通过可选的基础认证连接你自己的SearXNG实例
  • 进行可自定义参数的网页搜索
  • 支持多个搜索引擎
  • 注重隐私的搜索结果
  • Markdown 格式的搜索结果
  • 所有参数的合理默认值

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

SearXNG MCP Server

A Model Context Protocol (MCP) server that enables AI assistants to perform web searches using SearXNG, a privacy-respecting metasearch engine. Works out-of-the-box with zero additional deployment by automatically selecting a random instance from SearX.space, while also supporting private instances with basic authentication.

This project is deprecated. Its successor is searxNcrawl at https://github.com/DasDigitaleMomentum/searxNcrawl

Deprecated

This repository is deprecated in favor of searxNcrawl. The successor currently does not include round-robin instance selection (it is usually unreliable). If you file a suitable defect report, it can be added.

Features

  • Zero-configuration setup: Works immediately by using a random public instance from SearX.space
  • Private instance support: Connect to your own SearXNG instance with optional basic authentication
  • Perform web searches with customizable parameters
  • Support for multiple search engines
  • Privacy-focused search results
  • Markdown-formatted search results
  • Sensible default values for all parameters

CAVEAT - Public Instances might be unavailabe for this purpose and return “Request failed with status code 429”

Installation

Prerequisites

  • Node.js (v16 or higher)
  • npm (v7 or higher)
  • Access to a SearXNG instance (self-hosted or public)

Install from source

# Clone the repository
git clone https://github.com/tisDDM/searxng-mcp.git
cd searxng-mcp

# Install dependencies
npm install

# Build the project
npm run build

Configuration

The SearXNG MCP server can be configured with the following environment variables:

  • SEARXNG_URL (optional): The URL of your SearXNG instance (e.g., https://searx.example.com). If not provided, a random public instance from SearX.space will be automatically selected, making the server usable with zero additional deployment.
  • USE_RANDOM_INSTANCE (optional): Set to “false” to disable random instance selection when no URL is provided. Default is “true”.
  • SEARXNG_USERNAME (optional): Username for basic authentication when connecting to a private instance
  • SEARXNG_PASSWORD (optional): Password for basic authentication when connecting to a private instance

You can set these environment variables in a .env file in the root directory of the project:

SEARXNG_URL=https://searx.example.com
SEARXNG_USERNAME=your_username
SEARXNG_PASSWORD=your_password

Usage

Running the server

# If installed globally
searxngmcp

# If installed from source
node build/index.js

Integrating with Claude Desktop

  1. Open Claude Desktop
  2. Go to Settings > MCP Servers
  3. Add a new MCP server with the following configuration:
    {
在 GitHub 查看完整 README

安装

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

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "searxngmcp": { "command": "searxngmcp", "env": { // Optional: If not provided, a random public instance will be used "SEARXNG_URL": "https://searx.example.com", // Optional: Only needed for private instances with authentication "SEARXNG_USERNAME": "your_username", "SEARXNG_PASSWORD": "your_password" }, "disabled": false, "autoApprove": [] } } }