MCP-searxng
通过searXNG将代理系统连接到搜索系统的MCP Server。
MCP-搜索是一个通过searXNG将代理系统连接到搜索系统的服务器,让您能够执行网络搜索。
核心功能
search(query: str) -> f"使用searXNG搜索{query}"
安装选项
选项1:通过 uvx(推荐)
添加以下配置到您的客户端JSON:
{
"mcpServers": {
"searxng": {
"command": "uvx",
"args": [
"mcp-searxng"
]
}
}
}
选项2:通过 git 克隆
- 克隆仓库
- 添加以下配置到您的客户端JSON (更新路径为您的本地路径):
{
"mcpServers": {
"searxng": {
"command": "uv",
"args": [
"--project",
"/绝对路径/MCP-searxng/",
"run",
"/绝对路径/MCP-searxng/mcp-searxng/main.py"
]
}
}
}
配置
默认情况下,服务器连接到 http://localhost:8080
。要使用自定义 SearXNG 实例:
- 设置环境变量
SEARXNG_URL
为您的 searXNG 服务器URL
注意事项
使用 Claude 桌面时,请确保在重新运行服务器前终止现有进程。
现在您可以使用 MCP-搜索通过 searXNG 进行网络搜索了!