一个强大的无头浏览器MCP服务器,使AI代理能够获取网页内容并执行Google搜索,而无需任何API密钥。基于现代网络标准构建,并设计为与AI平台无缝集成。
无需API密钥:使用高级无头浏览器方法直接获取内容
智能Google搜索:
通用内容获取:
格式转换:
google_search)执行Google搜索并获取结果的完整内容:
{
query: "你的搜索查询",
responseType: "markdown", // 或 "json", "html", "text"
maxResults: 10, // 1-100个结果
topic: "web" // 或 "news"
}
fetch_url)从任何URL抓取内容:
{
url: "https://example.com",
responseType: "markdown", // 或 "json", "html", "text"
timeout: 30000 // 可选,以毫秒为单位
}
# 对于Claude
npx -y @smithery/cli install @TheSethRose/fetch-browser --client claude
# 对于Cursor
npx -y @smithery/cli install @TheSethRose/fetch-browser --client cursor
# 对于TypeScript
npx -y @smithery/cli install @TheSethRose/fetch-browser --client typescript
# 克隆仓库
git clone https://github.com/TheSethRose/fetch-browser.git
cd fetch-browser
# 安装依赖
npm install
# 构建项目
npm run build
# 启动服务器
npm start
# 监控模式自动重建
npm run watch
# 使用检查器运行
npm run inspector
# 调试模式
npm run debug
# 调试模式带监控
npm run debug:watch
## [页面标题](https://example.com)
转换为干净的Markdown内容,包括:
- 列表
- **粗体文本**
- *斜体文本*
- [链接](https://example.com)
{
"url": "https://example.com",
"content": "提取的内容...",
"error": null
}
<div class="search-result">
<h2><a href="https://example.com">页面标题</a></h2>
<div class="content">
原始HTML内容
</div>
</div>
### https://example.com
保留格式的纯文本内容
==========
由Seth Rose创建:
MIT许可证 - 查看LICENSE以获取详细信息