YouTube Player
БесплатноНе проверенIntegrates with YouTube Data API v3 to search for videos and play them in the browser, enabling music discovery and entertainment recommendations through conver
Описание
Integrates with YouTube Data API v3 to search for videos and play them in the browser, enabling music discovery and entertainment recommendations through conversational interfaces.
README
A Model Context Protocol (MCP) server that enables AI agents to search and play YouTube videos through natural language commands.
Features
- searchVideos: Search YouTube for videos matching any query
- playPlaylist: Open videos in your default browser as a playlist
Prerequisites
- Node.js 18+ installed
- YouTube Data API v3 key from Google Cloud Console
Getting a YouTube API Key
- Go to Google Cloud Console
- Create a new project (or select existing)
- Navigate to APIs & Services > Library
- Search for "YouTube Data API v3" and enable it
- Go to APIs & Services > Credentials
- Click Create Credentials > API Key
- Copy your API key
Installation
- Clone the repository
- Install dependencies:
npm install - Configure Environment Variables:
Create a
.envfile in the root directory (copy from.env.example):
Editcp .env.example .env.envand add yourYOUTUBE_API_KEY. - Build the project:
npm run build
Add the following to your MCP configuration (e.g., .cursor/mcp.json or Claude Desktop config):
{
"mcpServers": {
"youtube-mcp": {
"command": "node",
"args": ["/path/to/your/project/youtubeMCP/dist/index.js"]
}
}
}
Note: The server will automatically load the
YOUTUBE_API_KEYfrom the.envfile in the project directory. Alternatively, you can pass it directly in theenvobject in the JSON config above.
Usage Examples
Once configured, you can ask your AI agent:
- "Search for 10 best English songs on YouTube"
- "Play 5 relaxing piano music videos"
- "Find Taylor Swift songs and play them"
- "Search for coding tutorials"
Available Tools
searchVideos
Search YouTube for videos by query.
Parameters:
query(string, required): Search querymaxResults(number, optional): Number of results (1-50, default: 10)
playPlaylist
Play videos in the browser.
Parameters:
videoIds(string[], optional): Array of video IDs to playquery(string, optional): Search and play videos matching this querymaxResults(number, optional): Number of videos when using query (default: 10)
Development
# Watch mode for development
npm run dev
# Build
npm run build
# Start
npm start
Project Structure
YouTubeMCP/
├── package.json
├── tsconfig.json
├── README.md
├── src/
│ ├── index.ts # MCP server entry point
│ ├── youtube-client.ts # YouTube API wrapper
│ └── tools/
│ ├── search.ts # searchVideos tool
│ └── play.ts # playPlaylist tool
└── dist/ # Compiled JavaScript
License
MIT
Установка YouTube Player
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/hitendrapal3/youtubemcpFAQ
YouTube Player MCP бесплатный?
Да, YouTube Player MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для YouTube Player?
Нет, YouTube Player работает без API-ключей и переменных окружения.
YouTube Player — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить YouTube Player в Claude Desktop, Claude Code или Cursor?
Открой YouTube Player на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Playwright
Browser automation, scraping, screenshots
автор: MicrosoftPuppeteer
Browser automation and web scraping.
автор: modelcontextprotocolopentabs-dev/opentabs
Plugin-based MCP server + Chrome extension that gives AI agents access to web applications through the user's authenticated browser session. 100+ plugins with a
автор: opentabs-devrobhunter/agentdeals
1,500+ developer infrastructure deals, free tiers, and startup programs across 54 categories. Search deals, compare vendors, plan stacks, and track pricing chan
автор: robhunterCompare YouTube Player with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории browse
