# YouTube for AI Agents

> YouTube for AI Agents is an open-source MCP server for design and media. MCP server giving AI agents YouTube search, transcripts, frames, comments and clipping. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted, macOS, Windows, Linux
- **Repository:** https://github.com/jcodesmore/youtube-for-ai-agents
- **MCP Registry name:** io.github.JCodesMore/youtube-for-ai-agents
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media), [video processing](https://ai-powered.com/categories/video-processing)
- **Listing updated:** 2026-11-28

## About

Lets an AI assistant pull the substance out of YouTube videos on your behalf. Instead of watching a long talk or podcast yourself, the agent can read the timestamped transcript, look at frames to see what is on screen, check comments and video metadata, and summarise the parts that matter.

The server runs locally over stdio through npm and exposes a set of tools for searching videos, channels and playlists, reading channel and playlist contents, downloading video or audio, and cutting clips that can be joined into a reel. It accepts standard YouTube links or bare video IDs. It is built on an InnerTube client, so no YouTube Data API key or account is needed for the core tools.

It suits researchers, students, content producers and developers who want an agent to work with video material in chat. Sign-in is optional and only helps with rate limits, age-restricted videos and personalised search. Clipping and downloads rely on yt-dlp and ffmpeg, which the server fetches when they are missing.

## Features

- **Keyless YouTube search:** Find videos, channels or playlists with date, length and sort filters without setting up a Google API key.
- **Timestamped transcripts:** Read what was said in a video, in the spoken language or translated, with timestamps for each passage.
- **On-screen frame capture:** Retrieve images of what is shown at specific moments, such as code or slides on screen.
- **Comments and metadata:** Read top or newest comments alongside titles, chapters, tags, views and channel details.
- **Clip and reel building:** Cut moments by timestamp, downloading only those segments, and join clips from different videos into one reel.
- **Works across MCP clients:** Runs as a standard MCP server with install guides for Claude Code, Codex, Cursor, OpenCode, Gemini CLI and others.

## Good for

- Get the key takeaways and timestamps from a long podcast or interview
- Compare the top uploads from a channel before choosing what to watch
- Read the comment section of a product review to gauge reception
- Check what code or slides appear on screen at a given moment in a tutorial
- Cut short highlight reels from several talks for a presentation

## Install

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

```sh
claude mcp add youtube-for-ai-agents -- npx -y @jcodesmore/youtube-for-ai-agents
```

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": {
    "youtube-for-ai-agents": {
      "command": "npx",
      "args": [
        "-y",
        "@jcodesmore/youtube-for-ai-agents"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "youtube-for-ai-agents": {
      "command": "npx",
      "args": [
        "-y",
        "@jcodesmore/youtube-for-ai-agents"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "youtube-for-ai-agents": {
      "command": "npx",
      "args": [
        "-y",
        "@jcodesmore/youtube-for-ai-agents"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "youtube-for-ai-agents": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@jcodesmore/youtube-for-ai-agents"
      ]
    }
  }
}
```

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 youtube-for-ai-agents -- npx -y @jcodesmore/youtube-for-ai-agents
```

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

```toml
[mcp_servers.youtube-for-ai-agents]
command = "npx"
args = ["-y", "@jcodesmore/youtube-for-ai-agents"]
```

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

```json
{
  "mcpServers": {
    "youtube-for-ai-agents": {
      "command": "npx",
      "args": [
        "-y",
        "@jcodesmore/youtube-for-ai-agents"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user youtube-for-ai-agents npx -- -y @jcodesmore/youtube-for-ai-agents

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

```json
{
  "mcpServers": {
    "youtube-for-ai-agents": {
      "command": "npx",
      "args": [
        "-y",
        "@jcodesmore/youtube-for-ai-agents"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "youtube-for-ai-agents": {
      "command": "npx",
      "args": [
        "-y",
        "@jcodesmore/youtube-for-ai-agents"
      ]
    }
  }
}
```

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": {
    "youtube-for-ai-agents": {
      "command": "npx",
      "args": [
        "-y",
        "@jcodesmore/youtube-for-ai-agents"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "youtube-for-ai-agents": {
      "command": "npx",
      "args": [
        "-y",
        "@jcodesmore/youtube-for-ai-agents"
      ]
    }
  }
}
```

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": {
    "youtube-for-ai-agents": {
      "command": "npx",
      "args": [
        "-y",
        "@jcodesmore/youtube-for-ai-agents"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "youtube-for-ai-agents": {
      "command": "npx",
      "args": [
        "-y",
        "@jcodesmore/youtube-for-ai-agents"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "youtube-for-ai-agents": {
      "command": "npx",
      "args": [
        "-y",
        "@jcodesmore/youtube-for-ai-agents"
      ]
    }
  }
}
```

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": {
    "youtube-for-ai-agents": {
      "command": "npx",
      "args": [
        "-y",
        "@jcodesmore/youtube-for-ai-agents"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 9 of 11 tools read data; 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `youtube_search` (name suggests: reads): Find videos, channels or playlists, with date, length and sort filters
- `youtube_get_transcript` (name suggests: reads): Read what was said, with timestamps, in the spoken language or translated
- `youtube_get_video_info` (name suggests: reads): Title, channel, views, description, chapters and tags
- `youtube_get_frames` (name suggests: reads): See what's on screen at given moments
- `youtube_get_comments` (name suggests: reads): Read the top or newest comments
- `youtube_get_channel_info` (name suggests: reads): A channel's details
- `youtube_get_channel_videos` (name suggests: reads): A channel's newest, most popular or oldest uploads
- `youtube_get_playlist` (name suggests: reads): A playlist's videos
- `youtube_download` (name suggests: reads): Save a video (MP4) or its audio (M4A)
- `youtube_clip`: Cut moments by timestamp, downloading only those parts, and join them into a reel
- `youtube_highlight_reel`: Join clips from different videos into one reel

## FAQ

### Do I need a YouTube API key?

No. The tools work without an API key or account. Signing in is optional and helps with rate limits and age-restricted videos.

### Which agents can use YouTube for AI Agents?

Any MCP client can connect to it. The project provides setup guides for Claude Code, Codex, Cursor, OpenCode, Gemini CLI and VS Code, plus a generic JSON configuration.

### What do I need installed?

Node.js 22 or newer. Downloads and clips use yt-dlp and ffmpeg, which the plugin fetches the first time they are needed if they are not already on the computer.

### What is the licence?

The project is released under the Apache License 2.0.

### Is YouTube for AI Agents free?

Yes. YouTube for AI Agents is open source, so you can use and self-host it for free.

### How do I add YouTube for AI Agents to Claude Code?

Run this command in your terminal: claude mcp add youtube-for-ai-agents -- npx -y @jcodesmore/youtube-for-ai-agents

### What are the best alternatives to YouTube for AI Agents?

The closest alternatives to YouTube for AI Agents are YouTube Research MCP, Vidlens MCP, YouTube Data, YouTube Transcript + YouTube Search MCP and BulkTranscripts YouTube.

## 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

- [YouTube Research MCP](https://ai-powered.com/mcp/youtube-research-mcp): YouTube Research 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.
- [YouTube Data](https://ai-powered.com/mcp/youtube-data-3): YouTube Data is a paid MCP server for design and media.
- [YouTube Transcript + YouTube Search MCP](https://ai-powered.com/mcp/youtube-transcript-youtube-search-mcp): YouTube Transcript + YouTube Search MCP is a freemium MCP server for design and media.
- [BulkTranscripts YouTube](https://ai-powered.com/mcp/bulktranscripts-youtube): BulkTranscripts YouTube is a freemium MCP server for design and media.
- [YouTube MCP](https://ai-powered.com/mcp/youtube-mcp-5): YouTube MCP is an open-source MCP server for design and media.
- [YouTube Transcript Downloader](https://ai-powered.com/mcp/youtube-transcript-downloader): YouTube Transcript Downloader is a freemium MCP server for design and media.
- [YouTube Transcript for AI Agents](https://ai-powered.com/mcp/youtube-transcript-for-ai-agents): YouTube Transcript for AI Agents is an MCP server for design and media.

---
Source: https://ai-powered.com/mcp/youtube-for-ai-agents
