Windows System Sounds MCP Server
Plays built-in Windows system sounds or WAV files to notify users when tasks finish or need attention, using the winsound module. Provides a single play_sound tool with presets and customizable file paths, repeats, and intervals.
README
Windows System Sounds MCP Server
An MCP server for Windows that plays built-in Windows system sounds or existing WAV files.
It can be used with LM Studio or any other MCP-compatible client to notify the user when a local model finishes a stage, needs attention, requests permission, or completes the whole task.
The server uses the standard Windows winsound module and does not require downloading additional audio files.
Features
- One MCP tool:
play_sound. - Two built-in presets:
attention— stage finished, user attention needed, or permission requested.done— whole job finished.
- Plays WAV files from the Windows Media folder:
%SystemRoot%\Media
- Plays WAV files by full path:
C:/my-sounds/my_sound.wav
- Repeats a sound multiple times.
- Pause between repeats: 3 seconds.
-
- Minimal diagnostic
stderroutput by default.
- Minimal diagnostic
- Optional debug logging via
SOUND_MCP_DEBUG.
Requirements
- Windows
- Python 3.10 or newer
- LM Studio or another MCP client
mcpPython package
Installation
Install the MCP SDK:
python -m pip install --upgrade pip
python -m pip install "mcp[cli]"
Save sound_mcp_server.py to a folder, for example:
C:\mcp\sound_mcp_server.py
LM Studio configuration
Example MCP server configuration:
{
"mcpServers": {
"windows-system-sounds": {
"command": "C:\\Users\\YOUR_USERNAME\\AppData\\Local\\Programs\\Python\\Python312\\python.exe",
"args": [
"C:\\mcp\\sound_mcp_server.py"
]
}
}
}
Replace the Python path and script path with your actual paths.
To find your Python executable path, run:
python -c "import sys; print(sys.executable)"
Restart LM Studio after adding the server.
Tool: play_sound
The server exposes one tool:
play_sound
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
sound_type |
"attention" | "done" |
No | null |
Built-in preset. Not required if system_file or full_path is provided. |
system_file |
string |
No | null |
WAV file name from %SystemRoot%\Media. |
full_path |
string |
No | null |
Full path to a WAV file. |
repeat |
integer |
No | 1 |
Number of playback repeats. Pause between repeats is 3 seconds. |
At least one sound source must be specified:
sound_type- or
system_file - or
full_path
If both system_file and full_path are provided, the server returns an error.
Examples
Attention preset
{
"name": "play_sound",
"arguments": {
"sound_type": "attention"
}
}
Done preset
{
"name": "play_sound",
"arguments": {
"sound_type": "done"
}
}
Play a file from the Windows Media folder
{
"name": "play_sound",
"arguments": {
"system_file": "Windows Notify Calendar.wav"
}
}
Play a file by full path
{
"name": "play_sound",
"arguments": {
"full_path": "C:/my-sounds/my_sound.wav"
}
}
Repeat a sound three times
{
"name": "play_sound",
"arguments": {
"system_file": "Windows Notify Calendar.wav",
"repeat": 3
}
}
Playback order:
play
pause 3 seconds
play
pause 3 seconds
play
No extra pause is added after the last repeat.
Logging
The server produces minimal diagnostic stderr output by default.
Debug logging can be enabled with the environment variable:
SOUND_MCP_DEBUG=1
Example LM Studio configuration with debug logging:
{
"mcpServers": {
"windows-system-sounds": {
"command": "C:\\Users\\YOUR_USERNAME\\AppData\\Local\\Programs\\Python\\Python312\\python.exe",
"args": [
"C:\\mcp\\sound_mcp_server.py"
],
"env": {
"SOUND_MCP_DEBUG": "1"
}
}
}
}
Some MCP clients, including LM Studio, may display MCP server stderr output as [ERROR] even when the message is only diagnostic.
Security notes
The full_path parameter can play arbitrary WAV files on the local machine.
For local personal use this is usually fine.
If the server is exposed to untrusted clients, consider:
- removing
full_pathsupport; - or allowing only specific directories;
- or using only
system_file.
Limitations
- Windows only.
- Only
.wavfiles are supported. system_fileaccepts only a file name, not a folder path.full_pathmust be an absolute path to an existing file.
Recommended System Prompt
To make the local model use the tool automatically, add the following instructions to your LM Studio system prompt:
When an important stage is finished or user permission is required, call:
play_sound(sound_type="attention")
When the whole job is fully finished, call:
play_sound(sound_type="done")
(You can also find this prompt in the examples/prompts.md).
License
MIT. See LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。