Skip to content
Firecrawl Docs
Firecrawl Docs
代理工具集

在 Claude Code 中使用 MCP 进行网页搜索和抓取

两分钟内为 Claude Code 添加网页抓取和搜索功能

使用 Firecrawl MCP 为 Claude Code 添加网页抓取和搜索能力。

firecrawl.dev/app 注册并复制你的 API 密钥。

选项 A:远程托管 URL (推荐)

claude mcp add --transport http firecrawl https://mcp.firecrawl.dev/v2/mcp-oauth

添加服务器后,在 Claude Code 中使用 /mcp 完成 Firecrawl 登录流程。

选项 B:本地 (npx)

claude mcp add firecrawl -e FIRECRAWL_API_KEY=your-api-key -- npx -y [email protected]

your-api-key 替换为你的实际 Firecrawl API 密钥。

完成!现在你可以在 Claude Code 中搜索并抓取网页了。

在 Claude Code 中试试这些:

搜索网页:

Search for the latest Next.js 15 features

抓取网页:

Scrape firecrawl.dev and tell me what it does

查看文档:

Find and scrape the Stripe API docs for payment intents

Claude 会自动使用 Firecrawl 的搜索和抓取工具来获取相关信息。

Was this page helpful?Suggest editsRaise issue