SearXNG Server

by ihor-sokoliuk
Verified
MIT License
165
55
  • Linux
  • Apple

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Integrations

  • Integrates the SearXNG API to provide web search capabilities with pagination support, allowing for general queries, news, and article searches.

SearXNG MCP 服务器

集成SearXNG API 的MCP 服务器实现,提供网络搜索功能。

特征

  • 网络搜索:一般查询、新闻、文章,带分页。
  • 分页:控制检索哪一页结果。
  • 时间过滤:按时间范围(日、月、年)过滤结果。
  • 语言选择:按首选语言过滤结果。
  • 安全搜索:控制搜索结果的内容过滤级别。

工具

  • searxng_web_search
    • 使用分页执行网页搜索
    • 输入:
      • query (字符串):搜索查询。此字符串将传递给外部搜索服务。
      • pageno (数字,可选):搜索页码,从 1 开始(默认 1)
      • time_range (字符串,可选):按时间范围过滤结果 - 其中之一:“日”、“月”、“年”(默认值:无)
      • language (字符串,可选):结果的语言代码(例如“en”,“fr”,“de”)或“all”(默认值:“all”)
      • safesearch (数字,可选):安全搜索过滤级别(0:无,1:中等,2:严格)(默认:实例设置)

配置

设置 SEARXNG_URL

  1. 公共实例列表中选择一个 SearxNG 实例或使用您的本地环境。
  2. SEARXNG_URL环境变量设置为实例 URL。
  3. 默认的SEARXNG_URL值是http://localhost:8080

与 Claude Desktop 一起使用

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 SearxNG 服务器:

npx -y @smithery/cli install @ihor-sokoliuk/server-searxng --client claude

NPX

{ "mcpServers": { "searxng": { "command": "npx", "args": [ "-y", "mcp-searxng" ], "env": { "SEARXNG_URL": "YOUR_SEARXNG_INSTANCE_URL" } } } }

新公共管理

npm install -g mcp-searxng

然后在你的 MCP 配置文件中:

{ "mcpServers": { "searxng": { "command": "mcp-searxng", "env": { "SEARXNG_URL": "YOUR_SEARXNG_INSTANCE_URL" } } } }

Docker

使用 Docker Hub 预构建的镜像

docker pull isokoliuk/mcp-searxng:latest

将其添加到您的claude_desktop_config.json中:

{ "mcpServers": { "searxng": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "SEARXNG_URL", "isokoliuk/mcp-searxng:latest" ], "env": { "SEARXNG_URL": "YOUR_SEARXNG_INSTANCE_URL" } } } }

本地构建

docker build -t mcp-searxng:latest -f Dockerfile .

使用

将其添加到您的claude_desktop_config.json中:

{ "mcpServers": { "searxng": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "SEARXNG_URL", "mcp-searxng:latest" ], "env": { "SEARXNG_URL": "YOUR_SEARXNG_INSTANCE_URL" } } } }

执照

此 MCP 服务器采用 MIT 许可证。这意味着您可以自由使用、修改和分发该软件,但须遵守 MIT 许可证的条款和条件。更多详情,请参阅项目仓库中的 LICENSE 文件。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

集成 SearXNG API 的 MCP 服务器实现,提供网络搜索功能。

  1. Features
    1. Tools
      1. Configuration
        1. Setting the SEARXNG_URL
        2. Usage with Claude Desktop
        3. Installing via Smithery
        4. NPX
        5. NPM
        6. Docker
      2. License
        ID: 0j7jjyt7m9