xiaozhi-local-music-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@xiaozhi-local-music-mcp播放我电脑上的《一路生花》"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
xiaozhi-local-music-mcp
面向小智 AI 的本地音乐播放器 MCP Server,基于 Windows Media Player,支持播放控制、播放列表、随机播放和系统音量控制。
功能
本地音乐播放:支持 MP3、FLAC、WAV、M4A、AAC、OGG、WMA、OPUS
播放控制:播放、暂停、恢复、停止、上一首、下一首
普通播放自动连播
随机播放指定数量歌曲,支持自动连播和手动切换
本地音乐库扫描与歌曲列表
查询当前歌曲、播放进度和播放状态
调节 Windows 系统音量
Related MCP server: Spotify MCP Server
MCP Tools
Tool | 功能 | 示例 |
| 播放歌曲 | "播放《一路生花》" |
| 播放文件夹 | "播放我的音乐文件夹" |
| 随机播放 | "随机播放 10 首歌" |
| 停止随机播放 | "停止随机播放" |
| 随机播放一首 | "随机放一首歌" |
| 暂停 | "暂停音乐" |
| 恢复 | "继续播放" |
| 停止 | "停止音乐" |
| 下一首 | "播放下一首" |
| 上一首 | "播放上一首" |
| 获取播放信息 | "现在播放的是什么歌?" |
| 列出歌曲 | "有哪些歌曲?" |
| 扫描音乐目录 | "扫描我的音乐" |
| 设置系统音量 | "把音量调到 50" |
为避免与自带音乐mcp冲突,可以强调本地电脑
项目结构
xiaozhi-local-music-mcp/
├── mcp_pipe.py
├── music_player.py
├── mcp_config.json
├── README.md
└── requirements.txt环境要求
Python 3.11+
安装依赖:
pip install -r requirements.txt默认音乐目录:
修改DEFAULT_MUSIC_DIRECTORY为你本地电脑的音乐目录
DEFAULT_MUSIC_DIRECTORY = r"<YOUR_MUSIC_DIRECTORY>"运行
python mcp_pipe.pyThis server cannot be deployed
Maintenance
Related MCP Connectors
Control Sonos from any MCP client: play, search, group rooms, volume, announcements, reminders.
Drive WhatsApp from any MCP client: pair devices, send text and media, manage contacts and groups.
Create, inspect, and manage Wubble music, speech, voice, and sound-effect requests through MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables control of Kodi media center through MCP protocol, supporting playback control, library management, navigation, and smart downloads search with automatic file playback.5MIT
- FlicenseBqualityDmaintenanceEnables control of Spotify playback, search, and playlist management through MCP tools and Apple Shortcuts/Siri integration via HTTP bridge.12-
- AlicenseNot gradedqualityCmaintenanceApple Music playback control, library search, playlist management, and queue operations via MCP.2MIT
- FlicenseAqualityDmaintenanceExposes Spotify controls as MCP tools for playback, playlist management, and AI playlist generation; includes a web app and supports multi-user profiles.14-