> ## Documentation Index
> Fetch the complete documentation index at: https://docs.firecrawl.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Cursor での MCP のウェブ検索とスクレイピング

> 2分で Cursor にウェブスクレイピングと検索を追加

Firecrawl の MCP を使って、Cursor にウェブスクレイピングと検索機能を追加します。

<div id="quick-setup">
  ## かんたんセットアップ
</div>

<div id="1-get-your-api-key">
  ### 1. APIキーを取得
</div>

[firecrawl.dev/app](https://firecrawl.dev/app) にサインアップして、APIキーをコピーします。

<div id="2-add-to-cursor">
  ### 2. Cursor に追加
</div>

設定（`Cmd+,`）を開き、「MCP」を検索して、以下を追加します：

```json theme={null}
{
  "mcpServers": {
    "firecrawl": {
      "command": "npx",
      "args": ["-y", "firecrawl-mcp"],
      "env": {
        "FIRECRAWL_API_KEY": "your_api_key_here"
      }
    }
  }
}
```

`your_api_key_here` を実際の Firecrawl API キーに置き換えてください。

<div id="3-restart-cursor">
  ### 3. Cursor を再起動する
</div>

完了です！これで Cursor から Web を検索してスクレイピングできるようになりました。

<div id="quick-demo">
  ## クイックデモ
</div>

Cursor Chat（`Cmd+K`）で試してみてください：

**検索：**

```
TypeScript ベストプラクティス 2025 を検索
```

**スクレイピング：**

```
firecrawl.devをスクレイピングして、その機能を教えて
```

**ドキュメントを取得:**

```
React hooksのドキュメントをスクレイピングし、useEffectについて説明してください
```

Cursor は Firecrawl のツールを自動で使用します。

<div id="windows-troubleshooting">
  ## Windows でのトラブルシューティング
</div>

Windows で `spawn npx ENOENT` または "No server info found" エラーが表示される場合、Cursor が PATH 内の `npx` を見つけられていません。次のいずれかの方法を試してください:

**オプション A: `npx.cmd` のフルパスを使う**

コマンド プロンプトで `where npx` を実行してフルパスを取得し、そのパスで設定を更新します:

```json theme={null}
{
  "mcpServers": {
    "firecrawl": {
      "command": "C:\\Program Files\\nodejs\\npx.cmd",
      "args": ["-y", "firecrawl-mcp"],
      "env": {
        "FIRECRAWL_API_KEY": "your_api_key_here"
      }
    }
  }
}
```

`command` のパスを、`where npx` の出力結果に置き換えてください。

**オプション B: リモートホストされた URL を使用する（Node.js は不要）**

```json theme={null}
{
  "mcpServers": {
    "firecrawl": {
      "url": "https://mcp.firecrawl.dev/YOUR-API-KEY/v2/mcp"
    }
  }
}
```

`YOUR-API-KEY` を Firecrawl の API キーに置き換えてください。
