这是一个实现了模型上下文协议(MCP)的服务器,它集成了Searxng/Tavily/DuckDuckGo/Bing等搜索引擎,以及本地浏览器搜索和网页抓取功能,使用Firecrawl进行网页爬取。
puppeteer-core从网站抓取内容。Chromium,Google Chrome,Google Chrome Canary等。one_search,one_scrape,one_map要通过Smithery自动安装OneSearch for Claude Desktop:
npx -y @smithery/cli install @yokingma/one-search --client claude
# 手动安装(可选)
npm install -g one-search-mcp
# 使用npx
env SEARCH_API_URL=http://127.0.0.1:8080 FIRECRAWL_API_URL=http://127.0.0.1:3002 npx -y one-search-mcp
搜索引擎:
searxng,duckduckgo,bing,tavily,local,默认是local。searxng是必需的。tavily,bing是必需的。// 支持的搜索引擎提供商
export type SearchProvider = 'searxng' | 'duckduckgo' | 'bing' | 'tavily' | 'local';
Firecrawl:
firecrawl是必需的。firecrawl是必需的。你的mcp.json文件看起来像这样:
{
"mcpServers": {
"one-search-mcp": {
"command": "npx",
"args": ["-y", "one-search-mcp"],
"env": {
"SEARCH_PROVIDER": "searxng",
"SEARCH_API_URL": "http://127.0.0.1:8080",
"SEARCH_API_KEY": "YOUR_API_KEY",
"FIRECRAWL_API_URL": "http://127.0.0.1:3002",
"FIRECRAWL_API_KEY": "YOUR_API_KEY"
}
}
}
}
在你的./codeium/windsurf/model_config.json文件中添加以下内容:
{
"mcpServers": {
"one-search-mcp": {
"command": "npx",
"args": ["-y", "one-search-mcp"],
"env": {
"SEARCH_PROVIDER": "searxng",
"SEARCH_API_URL": "http://127.0.0.1:8080",
"SEARCH_API_KEY": "YOUR_API_KEY",
"FIRECRAWL_API_URL": "http://127.0.0.1:3002",
"FIRECRAWL_API_KEY": "YOUR_API_KEY"
}
}
}
}
本地部署SearXNG和Firecrawl,请参阅部署
tsx存在问题,esbuild#1031MIT许可证 - 详情请参阅LICENSE文件。