YouTube MCP Server logo

YouTube MCP Server

by Tisik79

A Media Control Protocol (MCP) server for YouTube integration that allows you to control YouTube playback across multiple devices. It synchronizes playback across multiple clients.

View on GitHub

Last updated: N/A

What is YouTube MCP Server?

The YouTube MCP Server is a central control point for YouTube playback across multiple devices. It uses Express.js, Socket.io, YouTube Data API, and YouTube IFrame API to provide synchronized playback control.

How to use YouTube MCP Server?

To use the server, clone the repository, install dependencies using npm install, create a .env file with your YouTube API key, and start the server using npm start or npm run dev. Then, open your browser and navigate to http://localhost:3000.

Key features of YouTube MCP Server

  • Play/Pause control

  • Synchronized playback

  • YouTube video search

  • Volume and playback position control

  • Real-time updates via WebSockets

  • Simple user interface

Use cases of YouTube MCP Server

  • Controlling YouTube playback in a classroom

  • Synchronizing music playback across multiple devices at a party

  • Creating a shared YouTube viewing experience for remote teams

  • Managing YouTube content in a digital signage setup

FAQ from YouTube MCP Server

How do I get a YouTube API key?

You can obtain a YouTube API key from the Google Cloud Console by creating a new project, enabling the YouTube Data API v3, and creating API credentials.

What are the system requirements?

The server requires Node.js (v14 or higher) and npm (v6 or higher).

How do I customize the server?

You can customize the UI in the public directory, add additional API endpoints in server.js, and extend the Socket.io event handlers.

What if I get an API key error?

Ensure your YouTube API key is correctly set in the .env file.

What if I have connection issues?

Make sure your firewall allows connections on the specified port.