Back to MCP directory
publicPublicdnsLocal runtime

searxng-mcp-server

一个集成SearxNG API的MCP服务器实现,提供网页搜索功能,支持分页控制。

article

README

🚀 SearXNG MCP 服务器

一个集成 SearxNG API 的 MCP 服务器 实现,可提供强大的网络搜索功能。

🚀 快速开始

本项目是一个集成 SearxNG API 的 MCP 服务器 实现,能为用户提供网络搜索功能。你可以通过以下链接查看相关信息:点击此处。同时,项目也有对应的 Smithery 徽章:查看徽章

✨ 主要特性

  • 网络搜索:支持通用查询、新闻、文章搜索,并且具备分页功能。
  • 分页控制:可灵活控制每页结果数量和结果计数选项。

🛠️ 工具

searxng_web_search

  • 功能:带分页执行网络搜索。
  • 输入参数
    • query (字符串):搜索词。
    • count (数字,可选):每页结果数(默认 20)。
    • offset (数字,可选):分页偏移量(默认 0)。

📦 安装指南

设置 SEARXNG_URL

  1. 你可以从 公共实例列表 中挑选一个 SearxNG 实例,也可以使用本地环境。
  2. SEARXNG_URL 环境变量设置为所选实例的 URL。
  3. 默认的 SEARXNG_URL 值为 http://localhost:8080

与 Claude Desktop 配合使用

通过 Smithery 安装

若要自动为 Claude Desktop 安装 SearxNG 服务器,可使用 Smithery,执行以下命令:

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

NPX 方式

在配置文件中添加如下内容:

{
  "mcpServers": {
    "searxng": {
      "command": "npx",
      "args": [
        "-y",
        "<full path to mcp-searxng repo>/"
      ],
      "env": {
        "SEARXNG_URL": "YOUR_SEARXNG_INSTANCE_URL"
      }
    }
  }
}

Docker 方式

构建镜像
docker build -t mcp-server-searxng:latest -f Dockerfile .
使用镜像

将以下内容添加到 claude_desktop_config.json

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

📄 许可证

此 MCP 服务器依据 MIT 许可证发布。你可以自由地使用、修改和分发该软件,但需遵循 MIT 许可证的条款和条件。详细信息可查看项目仓库中的 LICENSE 文件。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client