如何将 Firecrawl Web Scraper 远程 MCP 连接到 Gemini CLI
约 1 分钟即可把 Firecrawl 的远程 MCP 服务端接入 Gemini CLI。如需排查 OAuth / 401 问题,可先用 OAuth 2.1 调试器体检端点。
🔒 Client-side only — never leaves your browser.
Or add to ~/.cursor/mcp.json:
{
"mcpServers": {
"firecrawl": {
"url": "https://mcp.firecrawl.dev/v2/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}claude mcp add --transport http firecrawl https://mcp.firecrawl.dev/v2/mcp
With credential header:
claude mcp add --transport http firecrawl https://mcp.firecrawl.dev/v2/mcp --header "Authorization: Bearer YOUR_API_KEY"
Or add to .vscode/mcp.json:
{
"servers": {
"firecrawl": {
"type": "http",
"url": "https://mcp.firecrawl.dev/v2/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}- Open Settings → Connectors (Integrations) → Add Custom Connector.
- Paste the endpoint URL:
https://mcp.firecrawl.dev/v2/mcp - Provide your API key / Bearer token when prompted.
Bridge the remote endpoint into stdio with mcp-remote in claude_desktop_config.json:
{
"mcpServers": {
"firecrawl": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.firecrawl.dev/v2/mcp",
"--header",
"Authorization: Bearer YOUR_API_KEY"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"firecrawl": {
"serverUrl": "https://mcp.firecrawl.dev/v2/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}Add to ~/.kiro/settings/mcp.json (or .kiro/settings/mcp.json in your workspace), then reopen Kiro's Agent panel to pick up the server:
{
"mcpServers": {
"firecrawl": {
"url": "https://mcp.firecrawl.dev/v2/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}Add to ~/.codex/config.toml — Codex reads remote HTTP servers from [mcp_servers.*] tables:
[mcp_servers.firecrawl] url = "https://mcp.firecrawl.dev/v2/mcp" bearer_token_env_var = "FIRECRAWL_TOKEN"
Add to cline_mcp_settings.json (Cline → MCP Servers → Configure), or paste it via Cline's MCP marketplace file:
{
"mcpServers": {
"firecrawl": {
"type": "streamableHttp",
"url": "https://mcp.firecrawl.dev/v2/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}Add to ~/.gemini/settings.json under mcpServers — httpUrl for Streamable HTTP, url for legacy SSE:
{
"mcpServers": {
"firecrawl": {
"httpUrl": "https://mcp.firecrawl.dev/v2/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}接入步骤
- 编辑设置文件 — 打开
~/.gemini/settings.json。 - 添加服务端 — 在
mcpServers中加入"firecrawl": { "httpUrl":https://mcp.firecrawl.dev/v2/mcp}。 - 完成认证 — 在 Firecrawl 控制台获取凭据,并将其作为
Authorization: Bearer <密钥>请求头加入配置。 - 验证 — 在 在线 Inspector 中粘贴
https://mcp.firecrawl.dev/v2/mcp并运行 initialize + tools/list 验证连通性。
🧰 工具预览(10)
| Tool | Safety | Description | Parameters |
|---|---|---|---|
| firecrawl_scrape ~32 tok | 🟢 Read | Scrape a URL into clean markdown. | — |
| firecrawl_map ~30 tok | 🟢 Read | Map a website's URL structure. | — |
| firecrawl_crawl ~32 tok | 🟠 Write | Start an async crawl of a website. | — |
| firecrawl_check_crawl_status ~33 tok | 🟢 Read | Check status of a crawl job. | — |
| firecrawl_search ~32 tok | 🟢 Read | Search the web and scrape results. | — |
| firecrawl_extract ~32 tok | 🟢 Read | Extract structured data from URLs. | — |
| firecrawl_deep_research ~33 tok | 🟠 Write | Run deep research across the web. | — |
| firecrawl_generate_llmstxt ~33 tok | 🟢 Read | Generate llms.txt for a site. | — |
| firecrawl_batch_scrape ~32 tok | 🟢 Read | Batch-scrape multiple URLs. | — |
| firecrawl_extract_status ~33 tok | 🟢 Read | Get status of an extract job. | — |