名称: firecrawl-scrape 描述: 通过Firecrawl MCP抓取网页并提取内容 允许工具: [Bash, Read]
Firecrawl Scrape技能
何时使用
- 从任何URL抓取内容
- 从网页提取结构化数据
- 搜索网络并获取内容
指令
uv run python -m runtime.harness scripts/mcp/firecrawl_scrape.py \
--url "https://example.com" \
--format "markdown"
参数
--url: 要抓取的URL--format: 输出格式 -markdown、html、text(默认:markdown)--search: (替代方案)搜索查询而不是直接URL
示例
# 抓取页面
uv run python -m runtime.harness scripts/mcp/firecrawl_scrape.py \
--url "https://docs.python.org/3/library/asyncio.html"
# 搜索并抓取
uv run python -m runtime.harness scripts/mcp/firecrawl_scrape.py \
--search "Python asyncio最佳实践 2024"
所需MCP服务器
需要在mcp_config.json中配置firecrawl服务器,并提供FIRECRAWL_API_KEY。