drio
Open app

YouTube MCP Server

Source

Catalog onlyCatalog onlySTDIO

Overview

YouTube MCP Server is a Flask-based server that interacts with the YouTube Data API to search for songs and retrieve video links.

To use the server, clone the repository, set up a virtual environment, install dependencies, configure your YouTube API key, and run the server. You can then send POST requests to the /search endpoint to find songs.

  • Search for songs using the YouTube Data API. - Retrieve video titles and URLs. - Free to use without requiring a Premium subscription.
  1. Finding music videos by song title.
  2. Integrating song search functionality into applications.
  3. Creating a music discovery tool for users.

Add to your AI client

Use these steps to connect YouTube 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-mcp-server-rakeshjayanna": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-youtube-mcp-server-rakeshjayanna"
      ]
    }
  }
}

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-mcp-server-rakeshjayanna": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-youtube-mcp-server-rakeshjayanna"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "youtube-mcp-server-rakeshjayanna": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-youtube-mcp-server-rakeshjayanna"
      ]
    }
  }
}

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-mcp-server-rakeshjayanna": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-youtube-mcp-server-rakeshjayanna"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "youtube-mcp-server-rakeshjayanna": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-youtube-mcp-server-rakeshjayanna"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "youtube-mcp-server-rakeshjayanna": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-youtube-mcp-server-rakeshjayanna"
      ]
    }
  }
}

FAQ

Is YouTube MCP Server free to use?

Yes! It is free to use without any premium subscription.

What do I need to run the server?

You need Python 3.x and a YouTube Data API key.

How do I search for a song?

Send a POST request to the /search endpoint with the song name in the JSON body.