YouTube Music MCP Server
YouTube 音乐 MCP 服务器
概述
该项目实现了一个模型上下文协议 (MCP) 服务器,使 AI 模型能够通过 Google Chrome 控制 YouTube Music 的播放。它弥合了 AI 助手与音乐播放之间的差距,使 AI 能够根据歌曲名称和艺术家姓名搜索和播放歌曲。
Related MCP server: social-video-mcp
什么是 MCP?
模型上下文协议 (MCP) 是 AI 模型与外部工具和服务交互的标准化方式。它提供了一种结构化的通信协议,允许 AI 助手:
发现可用的工具
了解工具功能
通过这些工具执行操作
一致地处理响应和错误
了解有关 MCP 的更多信息:
特征
在 YouTube Music 中搜索歌曲
直接在 Google Chrome 中播放歌曲
支持歌曲名称和艺术家姓名搜索
错误处理和日志记录
跨平台支持(专注于 macOS 的 Chrome 自动化)
建筑学
高层概述
youtube-music-server MCP 服务器
模型上下文协议服务器
这是一个基于 TypeScript 的 MCP 服务器,实现了一个简单的笔记系统。它通过提供以下内容来演示 MCP 的核心概念:
用 URI 和元数据表示文本注释的资源
创建新笔记的工具
生成笔记摘要的提示
特征
资源
通过
note://URI 列出并访问笔记每个笔记都有标题、内容和元数据
用于简单内容访问的纯文本 MIME 类型
工具
create_note创建新的文本注释将标题和内容作为必需参数
将注释存储在服务器状态中
提示
summarize_notes- 生成所有存储笔记的摘要包含所有笔记内容作为嵌入资源
返回 LLM 摘要的结构化提示
发展
安装依赖项:
npm install构建服务器:
npm run build对于使用自动重建的开发:
npm run watch安装
要与 Claude Desktop 一起使用,请添加服务器配置:
在 MacOS 上: ~/Library/Application Support/Claude/claude_desktop_config.json在 Windows 上: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"youtube-music-server": {
"command": "/path/to/youtube-music-server/build/index.js"
}
}
}调试
由于 MCP 服务器通过 stdio 进行通信,调试起来可能比较困难。我们推荐使用MCP Inspector ,它以包脚本的形式提供:
npm run inspector检查器将提供一个 URL 来访问浏览器中的调试工具。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
MCP server for Suno AI music generation, lyrics, and covers
MCP server for Producer/Riffusion AI music generation
An MCP server that integrates with Discord to provide AI-powered features.
MCP server for Google Veo AI video generation
Related MCP Servers
- AlicenseBqualityDmaintenanceA simple MCP server that allows AI assistants like Cursor or Claude Desktop to search for and play tracks on YouTube Music through natural language commands.28412MIT
- AlicenseAqualityDmaintenanceAn MCP server that enables AI agents to play and control YouTube and TikTok videos through a native mpv player window. It supports browsing subscriptions, searching content, managing playlists, and fetching video metadata using authenticated browser cookies.23104MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server for YouTube automation using Playwright and Gemini AI agent. Enables browser control for YouTube operations like searching, playing videos, skipping ads, and managing playback through natural language commands.
- FlicenseNot gradedqualityDmaintenanceA full-featured YouTube Music MCP server that lets AI assistants control playback, browse history, download songs, and manage playlists via natural language.1
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mondweep/youtube-music-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server