YouTube MCP Server

by MCP-Mirror

544 downloads Not rated yet

About

A Model Context Protocol (MCP) server for interacting with YouTube data. It provides resources and tools to query YouTube videos, channels, comments, and transcripts through a stdio interface, enabling AI assistants to access YouTube content.

Explore

- Search for YouTube videos with advanced filtering options
- Get detailed information about specific videos and channels
- Compare statistics across multiple videos
- Discover trending videos by region and category
- Analyze channel performance and video statistics
- Retrieve video comments and transcripts/captions
- Generate video analysis and transcript summaries

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name YouTube MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

- Node.js (v16+)
- YouTube Data API key

To install YouTube MCP Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @coyaSONG/youtube-mcp-server --client claude

1. Clone this repository:

   git clone https://github.com/coyaSONG/youtube-mcp-server.git
cd youtube-mcp-server

2. Install dependencies:

   npm install

3. Create a .env file in the root directory:

   YOUTUBE_API_KEY=your_youtube_api_key_here
PORT=3000

1. Build the project:

   npm run build

2. Run the server:

   npm start

3. Run in development mode:

   npm run dev

4. Clean build artifacts:

   npm run clean

The project includes a Dockerfile for containerized deployment:


youtube://transcript/dQw4w9WgXcQ?language=en ```

search-videos

Search for YouTube videos with advanced filtering options

get-video-comments

Get comments for a specific video

get-video-transcript

Get transcript for a specific video with optional language

get-video-stats

Get statistical information for a specific video

get-channel-stats

Get subscriber count, view count, and other channel statistics

compare-videos

Compare statistics across multiple videos

get-trending-videos

Retrieve trending videos by region and category

get-video-categories

Get available video categories for a specific region

analyze-channel-videos

Analyze performance trends of videos from a specific channel

- search-videos - Search for YouTube videos with advanced filtering options
- get-video-comments - Get comments for a specific video
- get-video-transcript - Get transcript for a specific video with optional language

- get-video-stats - Get statistical information for a specific video
- get-channel-stats - Get subscriber count, view count, and other channel statistics
- compare-videos - Compare statistics across multiple videos

- get-trending-videos - Retrieve trending videos by region and category
- get-video-categories - Get available video categories for a specific region

- analyze-channel-videos - Analyze performance trends of videos from a specific channel

// Get video statistics
{
  "type": "tool",
  "name": "get-video-stats",
  "parameters": {
    "videoId": "dQw4w9WgXcQ"
  }
}

// Compare multiple videos
{
"type": "tool",
"name": "compare-videos",
"parameters": {
"videoIds": ["dQw4w9WgXcQ", "9bZkp7q19f0"]
}
}

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "youtube mcp server": {
            "coyaSONG_youtube-mcp-server": {
                "command": "npx",
                "args": [
                    "-y",
                    "@smithery/cli",
                    "install",
                    "@coyaSONG/youtube-mcp-server",
                    "--client",
                    "claude"
                ]
            }
        }
    }
}

McpServers

{
    "coyaSONG_youtube-mcp-server": {
        "command": "npx",
        "args": [
            "-y",
            "@smithery/cli",
            "install",
            "@coyaSONG/youtube-mcp-server",
            "--client",
            "claude"
        ]
    }
}

smithery badge

A Model Context Protocol (MCP) server for interacting with YouTube data. This server provides resources and tools to query YouTube videos, channels, comments, and transcripts through a stdio interface.

Features

- Search for YouTube videos with advanced filtering options
- Get detailed information about specific videos and channels
- Compare statistics across multiple videos
- Discover trending videos by region and category
- Analyze channel performance and video statistics
- Retrieve video comments and transcripts/captions
- Generate video analysis and transcript summaries

Prerequisites

- Node.js (v16+)
- YouTube Data API key

Installation

Installing via Smithery

To install YouTube MCP Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @coyaSONG/youtube-mcp-server --client claude

Installing Manually

1. Clone this repository:
   git clone https://github.com/coyaSONG/youtube-mcp-server.git
   cd youtube-mcp-server
   

2. Install dependencies:

   npm install

3. Create a .env file in the root directory:

   YOUTUBE_API_KEY=your_youtube_api_key_here
PORT=3000

Usage

Building and Running

1. Build the project:

   npm run build

2. Run the server:

   npm start

3. Run in development mode:

   npm run dev

4. Clean build artifacts:

   npm run clean

Docker Deployment

The project includes a Dockerfile for containerized deployment:

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.