Back to MCP directory
publicPublicdnsLocal runtime

SearXNG Search

一个通过searXNG连接代理系统与搜索系统的MCP服务器

article

README

🚀 MCP - 搜索引擎

MCP - 搜索引擎是一个MCP服务器,它借助 searXNG 把代理系统与搜索系统连接起来,让用户能通过该服务进行网页搜索。

🚀 快速开始

✨ 主要特性

  • 使用 SearXNG 搜索网页,为用户提供搜索功能。

💻 使用示例

基础用法

search(query: str) -> f"正在使用searXNG搜索 {query}"

📦 安装指南

通过uvx

  1. 将你的客户端 JSON 配置如下:
{
  "mcpServers": {
    "searxng": {
      "command": "uvx", 
      "args": [
        "mcp-搜索引擎"
      ]
    }
  }
}

通过git克隆

  1. 将此服务器添加到 Claude 桌面(入口点为 main.py)。克隆仓库并在 Claude 桌面中添加以下 JSON 配置: 你可以使用 uvx mcp-搜索引擎 运行此服务器,或使用本地仓库的副本。
{
  "mcpServers": {
    "searxng": {
      "command": "uv", 
      "args": [
        "--project",
        "/绝对路径/to/MCP-searxng/",
        "run",
        "/绝对路径/to/MCP-searxng/mcp-搜索引擎/main.py"
      ]
    }
  }
}

请根据你的环境调整路径。

自定义 SearXNG URL

  1. 设置环境变量 SEARXNG_URL 为你使用的 searxng 服务器 URL(默认为 http://localhost:8080)。
  2. 运行你的 MCP 客户端,你应该能够使用 searxng 搜索网页。

🔧 重要提示

⚠️ 重要提示

如果你在使用 Claude 桌面,请确保先终止进程(任务管理器或类似工具)再运行服务器。

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