MCP.so
登录

YouTube Music MCP Server

@instructa

基本信息

分类

媒体与设计

传输方式

stdio

作者

instructa

关于 YouTube Music MCP Server

🎶 A simple MCP Server that search & plays youtube music tracks

YouTube Music MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "youtube-music-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@instructa/mcp-youtube-music"
      ],
      "env": {
        "YOUTUBE_API_KEY": "<INSERT_API_KEY_HERE>"
      }
    }
  }
}

YouTube Music MCP Server 工具

2

Search for tracks on YouTube Music by name.

Play tracks directly by searching and opening them in your default browser.

概览

What is YouTube Music MCP 🎵?

YouTube Music MCP 🎵 is a simple MCP server that allows you to search for and play tracks on YouTube Music directly from an AI assistant such as Cursor or Claude Desktop. It was built using the YouTube Music platform and the Anthropic MCP protocol.

How to use YouTube Music MCP 🎵?

Obtain a valid Google YouTube API Key from the Google Cloud Console. Then add the provided MCP configuration to your Cursor .cursor/mcp.json file, inserting your API key. Run the server via npx using the @instructa/mcp-youtube-music package; no local installation or building is required unless you intend to modify the source code.

Key features of YouTube Music MCP 🎵

  • Search for tracks on YouTube Music by name.
  • Play tracks directly by opening them in your default browser.
  • Integrates with AI assistants like Cursor and Claude Desktop.
  • Simple npx‑based setup, no manual installation needed.
  • Uses the YouTube Music platform and MCP protocol.
  • Requires a valid Google YouTube API key.

Use cases of YouTube Music MCP 🎵

  • Quickly search for a song while writing code in Cursor.
  • Ask Claude Desktop to play a specific track from YouTube Music.
  • Integrate music playback into AI‑powered workflows or automation.
  • Provide music recommendations through a conversational interface.

常见问题

1

What tools does YouTube Music MCP 🎵 provide?

The server exposes two tools: `searchTrack` (search by name) and `playTrack` (open the track in your browser).

2

Do I need a YouTube API key to use this server?

Yes. A valid Google YouTube API Key from the Google Cloud Console is required for the server to work.

3

How do I install YouTube Music MCP 🎵?

Add the MCP configuration block to your Cursor `.cursor/mcp.json` file, with the `command` set to `npx` and `args` including `-y @instructa/mcp-youtube-music`. Then define the `YOUTUBE_API_KEY` environment variable.

4

Which AI assistants are supported?

The README mentions Cursor and Claude Desktop as supported AI assistants.

5

How does the playTrack tool work?

`playTrack` searches for the requested track and opens it in your default browser, allowing you to listen on YouTube Music.

评论

媒体与设计 分类下的更多 MCP 服务器