I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

YouTube-MCP-Server
Un serveur de protocole de contrôle multimédia pour l'intégration YouTube
3 years
Works with Finder
1
Github Watches
0
Github Forks
0
Github Stars
YouTube MCP Server
A Media Control Protocol (MCP) server for YouTube integration that allows you to control YouTube playback across multiple devices.
Features
- Play, pause, and control YouTube videos from any device
- Synchronize playback across multiple clients
- Search YouTube videos directly from the interface
- Control volume and playback position
- Real-time updates using WebSockets
- Simple and intuitive user interface
Installation
-
Clone this repository:
git clone https://github.com/Tisik79/youtube-mcp-server.git cd youtube-mcp-server
-
Install dependencies:
npm install
-
Create a
.env
file based on the.env.example
template:cp .env.example .env
-
Edit the
.env
file and add your YouTube API key:YOUTUBE_API_KEY=your_youtube_api_key_here
You can obtain a YouTube API key from the Google Cloud Console:
- Create a new project
- Enable the YouTube Data API v3
- Create API credentials (API Key)
Usage
-
Start the server:
npm start
-
For development with automatic restart:
npm run dev
-
Open your browser and navigate to:
http://localhost:3000
How it Works
The YouTube MCP Server provides a central control point for YouTube playback across multiple devices. It uses:
- Express.js for the HTTP server and API endpoints
- Socket.io for real-time communication between clients
- YouTube Data API for searching videos and fetching video information
- YouTube IFrame API for controlling video playback
When a client connects to the server:
- They can search for videos using the search function
- Play videos on their device
- Control playback (play, pause, seek, volume)
- All commands are broadcasted to other connected clients
- Clients can sync with the current playback state
API Endpoints
-
GET /api/video/:videoId
- Get video information -
GET /api/search?q=query
- Search for YouTube videos -
GET /api/clients
- Get a list of connected clients
WebSocket Events
Client to Server
-
play
- Play a video -
pause
- Pause the current video -
stop
- Stop playback -
seek
- Seek to a specific position -
volume
- Change volume -
mute
- Mute/unmute audio -
updateTimestamp
- Update the current playback position
Server to Client
-
playerStateUpdate
- Broadcast player state updates to all clients
Project Structure
youtube-mcp-server/
├── public/ # Client-side files
│ ├── index.html # Main HTML file
│ ├── app.js # Client-side JavaScript
│ └── styles.css # CSS styles
├── server.js # Main server file
├── package.json # Dependencies and scripts
└── .env # Environment variables (create from .env.example)
Requirements
- Node.js (v14 or higher)
- npm (v6 or higher)
- A YouTube Data API key
Customization
You can customize the server by:
- Modifying the UI in the
public
directory - Adding additional API endpoints in
server.js
- Extending the Socket.io event handlers for more functionality
Troubleshooting
Common issues:
-
API Key Error: Ensure your YouTube API key is correctly set in the
.env
file - Connection Issues: Make sure your firewall allows connections on the specified port
- Video Playback Issues: Some videos may have embedding disabled by the owner
License
This project is licensed under the MIT License - see the LICENSE file for details.
相关推荐
Confidential guide on numerology and astrology, based of GG33 Public information
Advanced software engineer GPT that excels through nailing the basics.
A world class elite tech co-founder entrepreneur, expert in software development, entrepreneurship, marketing, coaching style leadership and aligned with ambition for excellence, global market penetration and worldy perspectives.
A medical specialist offering assistance grounded in clinical guidelines. Disclaimer: This is intended for research and is NOT safe for clinical use!
Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.
Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX
Une passerelle API unifiée pour intégrer plusieurs API d'explorateur de blockchain de type étherscan avec la prise en charge du protocole de contexte modèle (MCP) pour les assistants d'IA.
Miroir dehttps: //github.com/suhail-ak-s/mcp-typeseense-server
本项目是一个钉钉 MCP (Protocole de connecteur de message) 服务 , 提供了与钉钉企业应用交互的 API 接口。项目基于 Go 语言开发 , 支持员工信息查询和消息发送等功能。
La communauté du curseur et de la planche à voile, recherchez des règles et des MCP
Reviews

user_ANHhMVNT
I've been using the youtube-mcp-server by Tisik79 and I'm impressed by its seamless integration with YouTube. The server handles requests efficiently and the setup was straightforward. The documentation provided was clear and the community support is excellent. It really streamlines YouTube-related tasks for MCP applications! Highly recommended.