Skip to content
MCP server

YouTube for AI Agents

MCP server giving AI agents YouTube search, transcripts, frames, comments and clipping

Runs locally

YouTube for AI Agents is an open-source MCP server for design and media. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, API, Self-hosted
Runs
Locally
Version
0.3.5
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.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.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.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.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add youtube-for-ai-agents -- npx -y @jcodesmore/youtube-for-ai-agents

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "youtube-for-ai-agents": {
      "command": "npx",
      "args": [
        "-y",
        "@jcodesmore/youtube-for-ai-agents"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.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.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.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.

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.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.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.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.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About YouTube for AI Agents

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.

Tools this server provides (11)

Taken from the project documentation; the running server may differ.

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_searchName suggests: reads
Find videos, channels or playlists, with date, length and sort filters
youtube_get_transcriptName suggests: reads
Read what was said, with timestamps, in the spoken language or translated
youtube_get_video_infoName suggests: reads
Title, channel, views, description, chapters and tags
youtube_get_framesName suggests: reads
See what's on screen at given moments
youtube_get_commentsName suggests: reads
Read the top or newest comments
youtube_get_channel_infoName suggests: reads
A channel's details
youtube_get_channel_videosName suggests: reads
A channel's newest, most popular or oldest uploads
youtube_get_playlistName suggests: reads
A playlist's videos
youtube_downloadName 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

What it does

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

Pricing

Open source

Free and open source under Apache 2.0; run locally via npm.

More servers for the same service

YouTube for AI Agents 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.

How AIPoweredBot checks servers