xiaozhi-local-music-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
xiaozhi-local-music-mcp
面向小智 AI 的本地音乐播放器 MCP Server,基于 Windows Media Player,支持播放控制、播放列表、随机播放和系统音量控制。
功能
本地音乐播放:支持 MP3、FLAC、WAV、M4A、AAC、OGG、WMA、OPUS
播放控制:播放、暂停、恢复、停止、上一首、下一首
普通播放自动连播
随机播放指定数量歌曲,支持自动连播和手动切换
本地音乐库扫描与歌曲列表
查询当前歌曲、播放进度和播放状态
调节 Windows 系统音量
Related MCP server: Raspberry Pi MCP Audio Control System
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.pyRelated MCP Connectors
Sonos MCP server: control your Sonos speakers from any MCP client. Play songs, artists and playlists, set volume, group rooms, move music to another room, switch to TV, spoken announcements and reminders. 27 tools, English and Chinese. Works through the official Sonos cloud, so there is no home bridge to install; sign in with OAuth. Requires the free ZoneFoundry iOS app.
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
- FlicenseAqualityDmaintenanceExposes Spotify controls as MCP tools for playback, playlist management, and AI playlist generation; includes a web app and supports multi-user profiles.14-
- FlicenseNot gradedqualityBmaintenanceEnables remote control of audio playback and system volume on a Raspberry Pi via the Model Context Protocol (MCP).-
- AlicenseAqualityCmaintenanceEnables controlling a Lyrion Music Server through MCP tools for playback control, library search, and queue management.1211 npmMIT
- FlicenseNot gradedqualityAmaintenanceEnables MCP clients to control playlists, library, catalog, discovery, playback, and the Up Next queue across macOS, Windows, and Linux.-