YouTube MCP Server

YouTube MCP Server

Enables Claude to search YouTube for artists and manage playlists on your YouTube account.

Category
Visit Server

README

YouTube MCP Server — Setup Guide

A Python MCP server that lets Claude search YouTube for artists and manage playlists on your account.


Prerequisites

  • Python 3.11 or newer
  • A Google account with YouTube

Step 1 — Get Google API credentials

  1. Go to console.cloud.google.com
  2. Create a new project (or select an existing one)
  3. Navigate to APIs & Services → Library
  4. Search for YouTube Data API v3 and click Enable
  5. Go to APIs & Services → Credentials
  6. Click + Create Credentials → OAuth client ID
  7. Application type: Desktop app → give it a name → click Create
  8. Click Download JSON — save the file as client_secret.json in this folder

Step 2 — Install dependencies

Open a terminal in this folder and run:

pip install -r requirements.txt

Step 3 — Configure Claude Desktop

Open your Claude Desktop config file:

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

Add the following entry inside the "mcpServers" object (create the object if it doesn't exist):

{
  "mcpServers": {
    "youtube-playlist-manager": {
      "command": "python",
      "args": ["/FULL/PATH/TO/THIS/FOLDER/server.py"]
    }
  }
}

Replace /FULL/PATH/TO/THIS/FOLDER/ with the actual path where you saved these files.

Example on Mac:

{
  "mcpServers": {
    "youtube-playlist-manager": {
      "command": "python3",
      "args": ["/Users/yourname/youtube_mcp/server.py"]
    }
  }
}

Step 4 — First run (OAuth flow)

  1. Restart Claude Desktop after saving the config
  2. The first time you use a YouTube tool, a browser window will open asking you to sign in with Google and grant access
  3. After approval, a token.json file is saved locally — you won't need to log in again

Available Tools

Tool Description
search_artists Search for artist/musician channels by name + optional genre
search_videos Search for music videos, optionally within a specific channel
create_playlist Create a new playlist on your YouTube account
add_videos_to_playlist Add videos (by ID) to an existing playlist
list_my_playlists List all your YouTube playlists

Example prompts to try in Claude

  • "Search for jazz guitar artists on YouTube and create a playlist of their top videos"
  • "Find lo-fi hip hop channels and make a private playlist called 'Focus Music'"
  • "Search for videos by artist name 'Khruangbin' and add them to my existing playlist"
  • "List all my YouTube playlists"

Files in this folder

youtube_mcp/
├── server.py           ← The MCP server (main file)
├── requirements.txt    ← Python dependencies
├── client_secret.json  ← YOU ADD THIS (downloaded from Google Cloud)
├── token.json          ← Auto-created after first login
└── README.md           ← This file

Troubleshooting

"client_secret.json not found" → Make sure you downloaded and renamed the file correctly and placed it in the same folder as server.py.

"Access blocked" in browser → Your OAuth app may be in "testing" mode. Go to Google Cloud Console → OAuth consent screen → Add your Google account as a test user.

Tool not appearing in Claude → Double-check the path in claude_desktop_config.json and restart Claude Desktop fully.

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
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

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
Qdrant Server

Qdrant Server

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

Official
Featured