MCP-searXNG桥
用于通过 searXNG 将代理系统连接到搜索系统的 MCP 服务器。
MCP 服务配置
复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用
{
"mcpServers": {
"searxng": {
"args": [
"mcp-searxng"
],
"command": "uvx"
}
}
}
该服务需要配置环境变量:SEARXNG_URL
可用工具 (1 个)
该服务在 MCP 协议中暴露的工具,AI 可按需调用
search 1 个参数 需填 1 项
search the web using searXNG. This will aggregate the results from google, bing, brave, duckduckgo and many others. Use this to find information on the web. Even if you do not have access to the internet, you can still use this tool to search the web.
必填参数:query
服务介绍
MCP-searxng
一个用于通过 searXNG 将代理系统连接到搜索系统的MCP服务器。
工具
使用SearXNG搜索网络
提示
search(query: str) -> f"Searching for {query} using searXNG"
使用方法
通过 uvx
- 配置您的客户端JSON,如下所示
{
"mcpServers": {
"searxng": {
"command": "uvx",
"args": [
"mcp-searxng"
]
}
}
}
通过 git 克隆
- 将服务器添加到Claude桌面(入口点是main.py)
克隆仓库并将此JSON添加到Claude桌面
你可以通过运行uvx mcp-searxng来启动这个服务器,或者使用本地的仓库副本
{
"mcpServers": {
"searxng": {
"command": "uv",
"args": [
"--project",
"/absoloute/path/to/MCP-searxng/",
"run",
"/absoloute/path/to/MCP-searxng/mcp-searxng/main.py"
]
}
}
}
你需要根据你的环境更改路径
自定义SearXNG URL
-
设置环境变量
SEARXNG_URL为你所使用的searxng服务器的URL(默认为http://localhost:8080) -
运行你的MCP客户端,你应该能够使用searxng进行网络搜索
注意:如果你正在使用Claude桌面,请确保在重新运行服务器前终止进程(任务管理器或类似工具)