# Video to Context

> Video to Context is an open-source MCP server for design and media. MCP server that turns short videos into timestamped text for LLMs and AI tools. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted, API
- **Repository:** https://github.com/wani-ham/youtube-shorts-to-text-context
- **MCP Registry name:** io.github.wani-ham/video-to-context
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media), [mcp data access](https://ai-powered.com/categories/mcp-data-access)
- **Listing updated:** 2026-11-23

## About

Language models cannot watch video, so this server produces a text version of a clip. It transcribes speech with a local Whisper model, reads on-screen text with OCR, and can add scene descriptions from an optional vision model. Every item is labelled by source and timestamp, which makes the output easy to feed into summaries, search or fact-checking.

It runs as a stdio MCP server that AI clients such as Claude Code and Cursor can call. Analysis of a YouTube link or an allowed local file runs as a background job, and clients check status and fetch the finished record as Markdown or JSON. Vision analysis can use Claude, Gemini, OpenAI, OpenRouter or a local Ollama model, and the Ollama route keeps frames on the machine.

The project suits developers building RAG or moderation pipelines and people who want an assistant to discuss a short video. Processing is slow on CPU, and the tool only accepts YouTube URLs for remote sources.

## Features

- **Timestamped speech transcript:** Spoken audio is transcribed locally with Whisper and each segment is tagged with its time range.
- **On-screen text extraction:** Captions, headlines, watermarks and logos are read from frames and labelled by type.
- **Optional visual descriptions:** A vision model can describe scenes, settings and editing, using Claude or any OpenAI-compatible endpoint.
- **Background job workflow:** Long analyses run asynchronously, with tools to check status and retrieve finished results.
- **Local file support:** Local videos can be processed when their folders are explicitly allowed in settings.
- **Structured output:** Results are saved as record.md for language models and record.json for code.

## Good for

- Give an AI assistant the speech and on-screen text of a YouTube Short to summarise
- Check what claims a short video makes in its captions for fact-checking
- Build a retrieval pipeline over short-form video content
- Moderate short videos by reviewing transcript and on-screen text
- Analyse ads or social clips with source and time labels attached

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add video-to-context --env ANTHROPIC_API_KEY='<ANTHROPIC_API_KEY>' --env VISION_API_KEY='<VISION_API_KEY>' -- uvx video-to-context
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "video-to-context": {
      "command": "uvx",
      "args": [
        "video-to-context"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
        "VISION_API_KEY": "<VISION_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "video-to-context": {
      "command": "uvx",
      "args": [
        "video-to-context"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
        "VISION_API_KEY": "<VISION_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "video-to-context": {
      "command": "uvx",
      "args": [
        "video-to-context"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
        "VISION_API_KEY": "<VISION_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "video-to-context": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "video-to-context"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
        "VISION_API_KEY": "<VISION_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add video-to-context --env ANTHROPIC_API_KEY='<ANTHROPIC_API_KEY>' --env VISION_API_KEY='<VISION_API_KEY>' -- uvx video-to-context
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.video-to-context]
command = "uvx"
args = ["video-to-context"]
env = { ANTHROPIC_API_KEY = "<ANTHROPIC_API_KEY>", VISION_API_KEY = "<VISION_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "video-to-context": {
      "command": "uvx",
      "args": [
        "video-to-context"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
        "VISION_API_KEY": "<VISION_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e ANTHROPIC_API_KEY='<ANTHROPIC_API_KEY>' -e VISION_API_KEY='<VISION_API_KEY>' video-to-context uvx -- video-to-context

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "video-to-context": {
      "command": "uvx",
      "args": [
        "video-to-context"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
        "VISION_API_KEY": "<VISION_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "video-to-context": {
      "command": "uvx",
      "args": [
        "video-to-context"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
        "VISION_API_KEY": "<VISION_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "video-to-context": {
      "command": "uvx",
      "args": [
        "video-to-context"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
        "VISION_API_KEY": "<VISION_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "video-to-context": {
      "command": "uvx",
      "args": [
        "video-to-context"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
        "VISION_API_KEY": "<VISION_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "video-to-context": {
      "command": "uvx",
      "args": [
        "video-to-context"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
        "VISION_API_KEY": "<VISION_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "video-to-context": {
      "command": "uvx",
      "args": [
        "video-to-context"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
        "VISION_API_KEY": "<VISION_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "video-to-context": {
      "command": "uvx",
      "args": [
        "video-to-context"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
        "VISION_API_KEY": "<VISION_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "video-to-context": {
      "command": "uvx",
      "args": [
        "video-to-context"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
        "VISION_API_KEY": "<VISION_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 5 tools changes data. From the server's own tool labels and tool names; not verified by us.

- `start_video_analysis` (name suggests: changes): Starts a background job for a YouTube link or allowed local file
- `get_analysis_status` (name suggests: reads): Reports whether the job is queued, running, or finished
- `get_video_text` (name suggests: reads): Returns the finished result as Markdown or JSON
- `list_analyzed_videos` (name suggests: reads): Lists videos that already have results
- `check_setup` (name suggests: reads): Checks ffmpeg, the vision model, and file access

## FAQ

### Do I need a paid vision model to use Video to Context?

No. Without a vision model it still produces the transcript and reads on-screen text locally, though it skips visual analysis. Ollama is also free and runs locally.

### Which video sources are supported?

YouTube links and video files on your computer. Remote URLs are limited to YouTube, and local files are only read from folders you allow.

### Are video frames sent to a third party?

Only if you choose a hosted vision provider. Using Ollama or no vision model keeps frames on your machine.

### What are the length limits?

Videos can be up to 5 minutes and 200 MB by default, and these limits can be changed in the source config.

### How do I add Video to Context to Claude Code?

Run this command in your terminal: claude mcp add video-to-context --env ANTHROPIC_API_KEY='<ANTHROPIC_API_KEY>' --env VISION_API_KEY='<VISION_API_KEY>' -- uvx video-to-context

### What are the best alternatives to Video to Context?

The closest alternatives to Video to Context are Claude Real Video, Ocular Audio MCP, Media Context MCP, Video Vision MCP and Watch Video.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Claude Real Video](https://ai-powered.com/mcp/claude-real-video): Claude Real Video is an open-source MCP server for design and media.
- [Ocular Audio MCP](https://ai-powered.com/mcp/ocular-audio-mcp): Ocular Audio MCP is an open-source MCP server for design and media.
- [Media Context MCP](https://ai-powered.com/mcp/media-context-mcp): Media Context MCP is an open-source MCP server for design and media.
- [Video Vision MCP](https://ai-powered.com/mcp/video-vision-mcp): Video Vision MCP is an open-source MCP server for design and media.
- [Watch Video](https://ai-powered.com/mcp/watch-video): Watch Video is an open-source MCP server for design and media.
- [YouTube Research MCP](https://ai-powered.com/mcp/youtube-research-mcp): YouTube Research MCP is an open-source MCP server for design and media.
- [Ollos MCP](https://ai-powered.com/mcp/ollos-mcp): Ollos MCP is an open-source MCP server for design and media.
- [Vidlens MCP](https://ai-powered.com/mcp/vidlens-mcp-2): Vidlens MCP is an open-source MCP server for design and media.

---
Source: https://ai-powered.com/mcp/video-to-context
