YouTube Music MCP Server
This is a MCP (Model Context Protocol) server that you can use with Cline through Visual Studio Code and ask songs to be played using Youtube Music
Overview
The YouTube Music MCP Server is a Model Context Protocol (MCP) server that allows AI models to control YouTube Music playback through Google Chrome, enabling users to search for and play songs using AI assistants.
To use the server, install the necessary dependencies, build the server, and configure it with your AI assistant. You can then search for songs by name or artist and play them directly in Google Chrome.
- Search for songs on YouTube Music - Play songs directly in Google Chrome - Support for searching by song name and artist name - Error handling and logging - Cross-platform support, primarily for macOS
- Integrating AI assistants with YouTube Music for seamless playback.
- Automating music playback based on user queries.
- Enhancing user experience by allowing voice commands to control music.
Add to your AI client
Use these steps to connect YouTube Music MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"youtube-music-mcp-server-mondweep": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-youtube-music-mcp-server-mondweep"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"youtube-music-mcp-server-mondweep": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-youtube-music-mcp-server-mondweep"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"youtube-music-mcp-server-mondweep": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-youtube-music-mcp-server-mondweep"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"youtube-music-mcp-server-mondweep": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-youtube-music-mcp-server-mondweep"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"youtube-music-mcp-server-mondweep": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-youtube-music-mcp-server-mondweep"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"youtube-music-mcp-server-mondweep": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-youtube-music-mcp-server-mondweep"
]
}
}
}FAQ
Can I use this server on Windows?
Yes! The server supports cross-platform usage, including Windows.
Is there a specific browser required?
The server is designed to work with Google Chrome.
How do I debug the server?
You can use the MCP Inspector for debugging, which provides tools accessible via a browser.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1518,"uuid":"2bfa8f0e-acf7-4f2e-a8ad-3c18fb4729fc","name":"youtube-music-mcp-server","title":"YouTube Music MCP Server","description":"This is a MCP (Model Context Protocol) server that you can use with Cline through Visual Studio Code and ask songs to be played using Youtube Music","avatar_url":"https://avatars.githubusercontent.com/u/9681875?v=4","created_at":"2025-02-20T16:10:16.453Z","updated_at":"2025-02-23T07:22:07.290Z","status":"created","author_name":"mondweep","author_avatar_url":"https://avatars.githubusercontent.com/u/9681875?v=4","tags":"youtube-music,mcp-server,music-assistant","category":"entertainment-and-media","is_featured":false,"sort":1,"url":"https://github.com/mondweep/youtube-music-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]