> ## Documentation Index
> Fetch the complete documentation index at: https://firecrawl-claude-eager-dijkstra-27eiio.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 在 OpenCode 中通过 MCP 使用网页搜索与抓取

> 为 OpenCode 添加 Firecrawl 的网页抓取与搜索功能

通过远程托管的 MCP 服务器，为 [OpenCode](https://opencode.ai) 添加 Firecrawl 的免密钥 Search、Scrape 和 Parse 工具。

<div id="quick-setup">
  ## 快速设置
</div>

将以下内容添加到 `~/.config/opencode/opencode.json` 或项目的 `opencode.json`：

```json theme={null}
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "firecrawl": {
      "type": "remote",
      "url": "https://mcp.firecrawl.dev/v2/mcp",
      "enabled": true
    }
  }
}
```

重启 OpenCode，输入 `/mcp`，确认 `firecrawl_search`、`firecrawl_scrape` 和 `firecrawl_parse` 可用。

免密钥访问的限额由同一公共 IP 的用户共享。需要交互式访问账户时，请使用 [OAuth](/zh/mcp-server/oauth)；无人值守使用时，请参阅 [API 密钥指南](/zh/mcp-server/keyless-api-key#add-an-api-key)。

<div id="try-it">
  ## 试用
</div>

```text theme={null}
进行网页搜索，查找最新的 Bun 版本发布说明并总结这些来源。
```

```text theme={null}
抓取 https://docs.firecrawl.dev/introduction and list the code examples.
```

<div id="troubleshooting">
  ## 故障排除
</div>

* \*\*服务器未附加：\*\*运行 `opencode doctor`，并确认远程 URL。
* \*\*缺少 Crawl 或其他工具：\*\*免密钥模式仅提供 Search、Scrape 和 Parse。请通过 OAuth 或 API 密钥连接，以使用更完整的工具集。
