SearXNG MCP 服务器
一个让 AI 助手使用隐私友好型搜索引擎 SearXNG 进行网页搜索的 Model Context Protocol (MCP) 服务器。
快速入门
安装
确保已安装 Node.js (v16+) 和 npm (v7+)。
# 克隆仓库
git clone https://github.com/tisDDM/searxng-mcp.git
cd searxng-mcp
# 安装依赖
npm install
# 构建项目
npm run build
配置
在项目根目录创建 .env
文件,设置以下环境变量:
SEARXNG_URL=https://searx.example.com # 可选
SEARXNG_USERNAME=your_username # 可选
SEARXNG_PASSWORD=your_password # 可选
启动
运行以下命令启动服务:
node build/index.js
使用
将服务器与支持 MCP 的工具(如 Claude Desktop 或 Smolagents)集成,通过 JSON 配置指定 command
和 env
参数即可开始使用。