# VidCrawl MCP Server

Canonical URL: https://vidcrawl.com/mcp
Remote Endpoint: https://vidcrawl.com/mcp (and https://vidcrawl.com/v1/mcp)
Server Card: https://vidcrawl.com/.well-known/mcp/server-card.json
Agent Skill: https://vidcrawl.com/skill.md

Connect VidCrawl directly to Claude Code, OpenAI Codex, Cursor, Windsurf, or any MCP-compatible coding or research agent.

## Authentication & Getting an API Key

- **Instant keyless trial**: Connect `https://vidcrawl.com/mcp` with no API key to run `vidcrawl_scrape` for up to 3 free runs/UTC day per IP (100/day global trial pool; hosted/cloud connectors sharing an egress IP share this trial limit).
- **Full access with API key**: Signup is browser-only via Google or GitHub OAuth at https://vidcrawl.com/dashboard (100 free credits on signup, no card required).
- There is no programmatic CLI or device-code signup flow yet.
- If `VIDCRAWL_API_KEY` is missing, you can still connect keyless for `vidcrawl_scrape`; for `vidcrawl_frames`, `vidcrawl_search`, `vidcrawl_agent`, `vidcrawl_account`, or REST `/v1/*`, stop and ask the human user to sign in at https://vidcrawl.com/dashboard and set `VIDCRAWL_API_KEY` instead of probing website JS bundles.

## Prompt for Your AI Agent

```text
Read https://vidcrawl.com/skill.md and connect VidCrawl MCP at https://vidcrawl.com/mcp (works keyless for 3 free vidcrawl_scrape runs/day per IP, or use Authorization: Bearer $VIDCRAWL_API_KEY for 100 free credits and all 5 tools). Run a test scrape to verify.
```

## Quick Setup

### Keyless Instant Start (No API Key, `vidcrawl_scrape` 3/day)

```bash
# Claude Code (no key)
claude mcp add --transport http vidcrawl https://vidcrawl.com/mcp

# OpenAI Codex (no key)
codex mcp add vidcrawl --url https://vidcrawl.com/mcp
```

```json
{
  "mcpServers": {
    "vidcrawl": {
      "url": "https://vidcrawl.com/mcp"
    }
  }
}
```

### With API Key (100 free credits + all 5 tools)

#### Claude Code (Remote HTTP)

```bash
claude mcp add --transport http vidcrawl https://vidcrawl.com/mcp \
  --header "Authorization: Bearer $VIDCRAWL_API_KEY"
# Optional: pass -s user (before vidcrawl) for global user scope across projects
```

#### OpenAI Codex

```bash
codex mcp add vidcrawl --url https://vidcrawl.com/mcp --bearer-token-env-var VIDCRAWL_API_KEY
# Fallback: if your Codex version lacks --bearer-token-env-var, set
# bearer_token_env_var = "VIDCRAWL_API_KEY" under [mcp_servers.vidcrawl] in ~/.codex/config.toml
```

#### Cursor / Windsurf / VS Code

```json
{
  "mcpServers": {
    "vidcrawl": {
      "url": "https://vidcrawl.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_VIDCRAWL_API_KEY"
      }
    }
  }
}
```

#### Local Stdio (npx)

```bash
claude mcp add vidcrawl \
  -e VIDCRAWL_API_KEY="$VIDCRAWL_API_KEY" \
  -e VIDCRAWL_API_URL="https://vidcrawl.com" \
  -- npx -y @vidcrawl/mcp mcp
# Optional: pass -s user (before vidcrawl) for global user scope across projects
```

## Available MCP Tools (5)

| Tool | Purpose | Credits |
|---|---|---|
| `vidcrawl_scrape` | Extract metadata, chapters, timestamped transcript, storyboard sheets, and Markdown (supports `max_age_sec`) | 1 credit (or 3 free/UTC day keyless per IP; 0 on same-user 24h replay) |
| `vidcrawl_frames` | Slice 1 to 20 high-resolution JPEG frames at exact timestamps (320 to 1920px) | 1 credit (API key required) |
| `vidcrawl_search` | Search live YouTube (`live`) or indexed video transcripts and `description_links` (`index` + `domain`) | 1 credit (`live`) / 0 credits (`index`, 1,000/day), +1 per scraped result (API key required) |
| `vidcrawl_agent` | Grounded video agent across 1 to 10 URLs with [MM:SS] citations and JSON schema | 3 / 5 / 10 credits (low/medium/high, API key required) |
| `vidcrawl_account` | Check remaining credit balance and per-endpoint credit prices | 0 credits (API key required) |

## Example Agent Prompts

1. "Read https://www.youtube.com/watch?v=1E3tv_3D95g with VidCrawl, inspect sharp frames where UI changes appear, and summarize the takeaways with [MM:SS] timestamps."
2. "Search YouTube for 'MiniMax AI lab' using vidcrawl_search, scrape the top 3 results, and summarize the main technical points."
3. "Use vidcrawl_agent on this tutorial video with a JSON schema listing every CLI command shown on screen and its timestamp."
4. "Call vidcrawl_account to verify my remaining VidCrawl credit balance."
