UseScraper MCP 服务器
这是一个基于 TypeScript 的 MCP 服务器,使用 UseScraper API 提供网页抓取功能。它提供了一个名为“scrape”的工具,可以从各种格式的网页中提取内容。
特征
工具
scrape
从网页中提取内容- 参数:
url
(必填):要抓取的网页的 URLformat
(可选):保存内容的格式(text、html、markdown)。默认值:markdownadvanced_proxy
(可选):使用高级代理来规避机器人检测。默认值:falseextract_object
(可选):指定要提取的数据的对象
- 参数:
安装
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 UseScraper:
手动安装
- 克隆存储库:
- 安装依赖项:
- 构建服务器:
配置
要与 Claude Desktop 一起使用,请添加服务器配置:
在 MacOS 上: ~/Library/Application Support/Claude/claude_desktop_config.json
在 Windows 上: %APPDATA%/Claude/claude_desktop_config.json
将/path/to/usescraper-server
替换为服务器的实际路径,并将your-api-key-here
替换为您的 UseScraper API 密钥。
用法
配置完成后,您可以通过 MCP 界面使用“scrape”工具。示例用法:
发展
对于使用自动重建的开发:
调试
由于 MCP 服务器通过 stdio 进行通信,调试起来可能比较困难。我们推荐使用MCP Inspector ,它以包脚本的形式提供:
检查器将提供一个 URL 来访问浏览器中的调试工具。
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
基于 TypeScript 的 MCP 服务器利用 UseScraper API 提供网页抓取功能,允许用户从各种格式的网页中提取内容。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA powerful MCP server for fetching and transforming web content into various formats (HTML, JSON, Markdown, Plain Text) with ease.Last updated -41,89334TypeScriptMIT License
- AsecurityAlicenseAqualityMCP Server enabling integration with Scrapezy to retrieve structured data from websites.Last updated -16736JavaScriptMIT License
- -securityAlicense-qualityA Python-based MCP server that crawls websites to extract and save content as markdown files, with features for mapping website structure and links.Last updated -3PythonMIT License
- -securityFlicense-qualityAn MCP Server for Web scraping and Crawling, built using Crawl4AILast updated -24Python