YouTube MCP Server

YouTube MCP Server

A local MCP server that connects Claude to your YouTube channel, enabling video analysis, performance tracking, comment reading, and niche suggestions.

Category
Visit Server

README

YouTube MCP Server 🎬

A local MCP (Model Context Protocol) server that connects Claude to your YouTube channel. Analyze videos, track performance, read comments, and get AI-powered niche suggestions — all inside Claude.


Features

Tool What it does
get_channel_info Subscribers, total views, video count, keywords
list_videos Recent videos with views, likes, comments, duration
get_video_details Deep stats + engagement rate for one video
get_top_comments Audience sentiment from top comments
search_channel_videos Find videos on your channel by keyword
analyze_channel_performance Avg views, top/bottom performers, tag analysis

Setup

1. Get a YouTube Data API Key

  1. Go to Google Cloud Console
  2. Create a new project (or use an existing one)
  3. Go to APIs & Services → Library → search YouTube Data API v3 → Enable it
  4. Go to APIs & Services → Credentials → Create Credentials → API Key
  5. Copy the key

2. Find Your Channel ID

  • Go to your YouTube channel
  • The URL will be: https://www.youtube.com/channel/UCxxxxxxxxxxxxxxxx
  • The part after /channel/ is your Channel ID
  • Or: Go to https://www.youtube.com/account_advanced to find it directly

3. Configure the Server

# In the youtube-mcp folder:
cp .env.example .env

Edit .env and fill in:

YOUTUBE_API_KEY=AIzaSy...your key here...
YOUTUBE_CHANNEL_ID=UCxxxxxxxxxxxxxxxx

4. Build the Server

npm install
npm run build

Connect to Claude.ai

  1. Open Claude.ai → click your profile icon → Settings
  2. Go to Integrations (or MCP Servers)
  3. Click Add MCP Server
  4. Fill in:
    • Name: YouTube Channel
    • Type: stdio
    • Command: node
    • Args: /full/path/to/youtube-mcp/dist/index.js
    • Env: Add YOUTUBE_API_KEY and YOUTUBE_CHANNEL_ID from your .env

Alternative: claude_desktop_config.json

If you're using the Claude Desktop app, add this to your config file:

Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "youtube": {
      "command": "node",
      "args": ["/full/path/to/youtube-mcp/dist/index.js"],
      "env": {
        "YOUTUBE_API_KEY": "your_api_key_here",
        "YOUTUBE_CHANNEL_ID": "your_channel_id_here"
      }
    }
  }
}

Restart Claude after saving.


Usage Examples

Once connected, just ask Claude naturally:

"Show me my channel stats"

"List my last 20 videos sorted by views"

"Analyze my channel performance and suggest what niches are working"

"Get the top comments from video ID dQw4w9WgXcQ"

"Search my channel for videos about cooking"


Free Tier Limits

The YouTube Data API v3 gives you 10,000 units/day for free.
Approximate costs:

  • list_videos (20 videos) ≈ 102 units
  • get_video_details ≈ 3 units
  • analyze_channel_performance ≈ 102 units
  • get_top_comments ≈ 3 units

You can easily do dozens of analyses per day within the free quota.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured