Enable AI control of YouTube Music playback via a Model Context Protocol server with search and play features
The YouTube Music MCP Server implements a Model Context Protocol (MCP) server designed to enable AI models to control YouTube Music playback through Google Chrome. This server acts as a bridge, allowing advanced AI assistants like Claude Desktop, Continue, Cursor, and others to interact with and manipulate music playback in real-time based on song names and artist names.
This MCP server offers a robust set of features that cater to various aspects of music control through AI. It allows:
The server adheres to the MCP protocol, enabling seamless communication between AI applications and music playback functionalities. This integration enhances the functionality of AI assistants by allowing them to perform tasks such as searching for and playing specific songs with precision.
This project is implemented in TypeScript, leveraging modern web technologies to ensure efficient and reliable performance. The architecture focuses on:
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[YouTube Music API]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
graph TD
Note((Note)) -->|URI| Note_URI
API[YouTube Music API] -->|Retrieve Data| Note_URI
Note_URI --> Summarize[(Summarized Note)]
style Note fill:#d6daeb
style Note_URI fill:#fbb4ae
To deploy and configure this server, follow these steps:
npm install
to download all necessary packages.npm run build
to compile the TypeScript code into a production-ready version.npm run watch
.Imagine an AI application using this server to assist users in discovering new music based on their preferences. The user might request songs by a specific artist or genre, and the server uses the MCP protocol to interact with YouTube Music, providing relevant song suggestions directly within the Google Chrome browser.
In another scenario, an AI tool could leverage this server to create playlists based on user preferences. By interacting with the server using the MCP protocol, the tool can search for songs and add them to a playlist seamlessly, enhancing the user's experience through automation.
These use cases showcase the versatility of the YouTube Music MCP Server in facilitating interactive and intelligent experiences for users.
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ | ✅ | ❌ | Tools Only |
This matrix highlights the compatibility of different MCP clients with the server. While all clients support resources and tools, some may have limited support for certain features depending on their specific functionalities.
The server is designed to offer robust performance across various platforms and environments. A compatibility matrix helps ensure that it works seamlessly with a wide range of AI applications:
Scenario: A user asks their AI assistant (e.g., Continue) to play "Bohemian Rhapsody" by Freddie Mercury.
{
"mcpServers": {
"youtube-music-server": {
"command": "/path/to/youtube-music-server/build/index.js",
"args": [],
"env": {
"API_KEY": "your-api-key"
}
}
}
}
This configuration ensures that the server is properly set up and can be integrated into various AI workflows.
To contribute to or modify this project:
git clone https://github.com/your-repo
npm install
.For further information and resources on Model Context Protocol (MCP), visit the official documentation and SDKs:
These resources provide comprehensive guidance for building and integrating MCP servers with AI applications.
By using this YouTube Music MCP Server, developers can enhance their AI applications with powerful music control capabilities, making the integration of real-world data sources more seamless and user-friendly.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods