Search-Scrape 是一款专为 AI 助手打造的免费网络搜索与数据抓取 MCP 工具。无需 API 密钥,不产生费用,无使用限制。
以下是展示 MCP 工具在 Vscode、Cursor、Trae 中运行的截图:
# 1. 启动 SearXNG 搜索引擎
docker-compose up searxng -d
# 2. 构建 MCP 服务器
cd mcp-server && cargo build --release
# 3. 添加到你的 AI 助手的 MCP 配置中:
{
"mcpServers": {
"search-scrape": {
"command": "/path/to/mcp-server/target/release/mcp-stdio",
"env": { "SEARXNG_URL": "http://localhost:8888" }
}
}
}
search_web
- 高级网页搜索支持完整的 SearXNG 参数:
google
、bing
、duckduckgo
等general
、news
、it
、science
等en
、es
、fr
、de
等0
(关闭)、1
(适中)、2
(严格)day
、week
、month
、year
{
"query": "rust programming",
"engines": "google,bing",
"categories": "it,general",
"language": "en",
"safesearch": 1,
"time_range": "month"
}
scrape_url
- 优化内容提取智能抓取并进行高级清理:
{
"url": "https://doc.rust-lang.org/book/ch01-00-getting-started.html"
}
# 测试带参数的搜索
curl -X POST "http://localhost:5000/search" \
-H "Content-Type: application/json" \
-d '{"query": "AI", "engines": "google", "language": "en"}'
# 测试优化抓取
curl -X POST "http://localhost:5000/scrape" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}'
├── mcp-server/ # 原生 Rust MCP 服务器
│ ├── src/
│ │ ├── search.rs # 支持全参数的 SearXNG 集成
│ │ ├── scrape.rs # 优化内容提取
│ │ └── rust_scraper.rs # 高级清理与噪音过滤
│ └── target/release/ # MCP 二进制文件
├── searxng/ # SearXNG 配置
└── docker-compose.yml # 容器编排