YouTube MCP Server

by MCP-Mirror

302 downloads
Not rated
GitHub

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.

Details

Author
MCP-Mirror
Downloads
302
Categories
Media

- Search videos with advanced filtering options
- Get detailed information about videos and channels
- Compare statistics across multiple videos
- Discover trending videos by region and category
- Retrieve video comments and transcripts
- 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

Install Node.js v16+ and obtain a YouTube Data API key. Install manually by cloning the repository and running npm install, then building with npm run build and starting with npm start. Alternatively, install automatically via Smitherly with npx -y @smithery/cli install @coyaSONG/youtube-mcp-server --client claude. Set your API key in a .env file as YOUTUBE_API_KEY. Docker deployment is also supported.

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"
        ]
    }
}

YouTube MCP Server

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.