# MCP setup

Connect Webcrawl to your AI coding assistant or chat client over the Model Context Protocol. Use hosted MCP with OAuth, or run a local MCP server with your API key.

## Hosted MCP (recommended)

Hosted MCP at `https://webcrawl.app/mcp` lets you sign in with email. No API key needed.

### Cursor

Add to your `.cursor/mcp_config.json`:

```json
{
  "mcpServers": {
    "webcrawl": {
      "url": "https://webcrawl.app/mcp"
    }
  }
}
```

One-click install: [cursor://mcp/install?name=webcrawl&url=https://webcrawl.app/mcp](cursor://mcp/install?name=webcrawl&url=https://webcrawl.app/mcp)

### Claude Desktop

Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):

```json
{
  "mcpServers": {
    "webcrawl": {
      "url": "https://webcrawl.app/mcp"
    }
  }
}
```

Restart Claude Desktop after editing. See [Claude MCP docs](https://modelcontextprotocol.io/quickstart/user) for details.

### Claude Code

```bash
claude mcp add --transport http webcrawl https://webcrawl.app/mcp
```

### VS Code

Install the Model Context Protocol extension from the marketplace, then add:

```json
{
  "mcpServers": {
    "webcrawl": {
      "url": "https://webcrawl.app/mcp"
    }
  }
}
```

One-click install: [vscode:extension/modelcontextprotocol.mcp?url=https://webcrawl.app/mcp](vscode:extension/modelcontextprotocol.mcp?url=https://webcrawl.app/mcp)

### Codex

Add hosted MCP in Codex settings under Integrations → MCP Servers:

```json
{
  "mcpServers": {
    "webcrawl": {
      "url": "https://webcrawl.app/mcp"
    }
  }
}
```

### Windsurf

Add to `~/.windsurf/mcp_settings.json`:

```json
{
  "mcpServers": {
    "webcrawl": {
      "url": "https://webcrawl.app/mcp"
    }
  }
}
```

### Zed

Add to your Zed MCP config:

```json
{
  "mcpServers": {
    "webcrawl": {
      "url": "https://webcrawl.app/mcp"
    }
  }
}
```

### ChatGPT

1. Go to Settings → Connectors
2. Enable developer mode
3. Add `https://webcrawl.app/mcp` as a connector
4. Complete OAuth when prompted

## Local MCP with API key

Run the MCP server locally with your Webcrawl API key. Get a key from [webcrawl.app](https://webcrawl.app) after signing in.

### Cursor

```json
{
  "mcpServers": {
    "webcrawl": {
      "command": "npx",
      "args": ["-y", "@webcrawl/mcp"],
      "env": {
        "WEBCRAWL_API_KEY": "your_api_key_here"
      }
    }
  }
}
```

### Claude Desktop

```json
{
  "mcpServers": {
    "webcrawl": {
      "command": "npx",
      "args": ["-y", "@webcrawl/mcp"],
      "env": {
        "WEBCRAWL_API_KEY": "your_api_key_here"
      }
    }
  }
}
```

### VS Code

```json
{
  "mcpServers": {
    "webcrawl": {
      "command": "npx",
      "args": ["-y", "@webcrawl/mcp"],
      "env": {
        "WEBCRAWL_API_KEY": "your_api_key_here"
      }
    }
  }
}
```

### Codex

```json
{
  "mcpServers": {
    "webcrawl": {
      "command": "npx",
      "args": ["-y", "@webcrawl/mcp"],
      "env": {
        "WEBCRAWL_API_KEY": "your_api_key_here"
      }
    }
  }
}
```

### Windsurf

```json
{
  "mcpServers": {
    "webcrawl": {
      "command": "npx",
      "args": ["-y", "@webcrawl/mcp"],
      "env": {
        "WEBCRAWL_API_KEY": "your_api_key_here"
      }
    }
  }
}
```

### Zed

```json
{
  "mcpServers": {
    "webcrawl": {
      "command": "npx",
      "args": ["-y", "@webcrawl/mcp"],
      "env": {
        "WEBCRAWL_API_KEY": "your_api_key_here"
      }
    }
  }
}
```

## Automated setup

Use the Webcrawl CLI to set up MCP automatically:

```bash
npx webcrawl setup
```

This registers the MCP server for Claude Code, Cursor, Codex and other supported IDEs.

## Available tools

Once connected, your assistant can:

- **Search the web**: `search` tool with optional categories (news, shopping, CVEs)
- **Scrape pages**: `scrape` tool for clean Markdown from any URL
- **Crawl sites**: `crawl` tool for multi-page reads
- **Map URLs**: `map` tool to list a site's pages
- **Extract data**: `extract` tool for structured data with prompts or schemas
- **Parse files**: `parse` tool for PDFs, Office docs, YouTube transcripts
- **Rerank results**: `rerank` tool for relevance scoring

Every call uses credits from your Webcrawl account. See [/pricing](/pricing) for credit costs.

## Related

- [MCP server](/docs/mcp): MCP server overview
- [Quickstart](/docs): first scrape and search requests
- [API reference](/docs/api): REST endpoints and credit costs
- [Integrations](/integrations): setup guides for all supported platforms

## Docs index

- [Overview](https://webcrawl.app/docs)
- [Scrape](https://webcrawl.app/docs/scrape)
- [Crawl](https://webcrawl.app/docs/crawl)
- [Map](https://webcrawl.app/docs/map)
- [Search](https://webcrawl.app/docs/search)
- [Extract](https://webcrawl.app/docs/extract)
- [MCP server](https://webcrawl.app/docs/mcp)
- [MCP setup](https://webcrawl.app/docs/mcp-setup)
- [Self-hosting](https://webcrawl.app/docs/self-hosting)
- [SDKs and CLI](https://webcrawl.app/docs/sdks)
- [API reference](https://webcrawl.app/docs/api)

HTML: https://webcrawl.app/docs/mcp-setup
