Skip to main content
Glama
vasjabrevno-dev

Windows System Sounds MCP Server

Windows System Sounds MCP Server

Windows の組み込みシステムサウンドまたは既存の WAV ファイルを再生する Windows 用 MCP サーバー。

LM Studio やその他の MCP 互換クライアントで使用して、ローカルモデルがステージを完了したとき、注意が必要なとき、許可を要求したとき、またはタスク全体を完了したときに、ユーザーに通知できます。

このサーバーは標準の Windows winsound モジュールを使用するため、追加のオーディオファイルをダウンロードする必要はありません。


機能

  • 1 つの MCP ツール: play_sound

  • 組み込みプリセットは 2 つ:

    • attention — ステージ完了、ユーザーの注意が必要、または許可が要求されたとき。

    • done — ジョブ全体が完了したとき。

  • Windows Media フォルダーから WAV ファイルを再生:

    • %SystemRoot%\Media

  • フルパスで WAV ファイルを再生:

    • C:/my-sounds/my_sound.wav

  • サウンドを複数回繰り返します。

  • 繰り返しの間の一時停止: 3 秒。

    • デフォルトでは最小限の診断 stderr 出力。

  • SOUND_MCP_DEBUG によるオプションのデバッグログ。


要件

  • Windows

  • Python 3.10 以降

  • LM Studio または別の MCP クライアント

  • mcp Python パッケージ


インストール

MCP SDK をインストールします:

python -m pip install --upgrade pip
python -m pip install "mcp[cli]"

sound_mcp_server.py をフォルダーに保存します。例:

C:\mcp\sound_mcp_server.py

LM Studio の設定

MCP サーバー設定の例:

{
  "mcpServers": {
    "windows-system-sounds": {
      "command": "C:\\Users\\YOUR_USERNAME\\AppData\\Local\\Programs\\Python\\Python312\\python.exe",
      "args": [
        "C:\\mcp\\sound_mcp_server.py"
      ]
    }
  }
}

Python のパスとスクリプトのパスを、実際のパスに置き換えてください。

Python 実行ファイルのパスを確認するには、次を実行します:

python -c "import sys; print(sys.executable)"

サーバーを追加した後、LM Studio を再起動してください。


ツール: play_sound

サーバーは 1 つのツールを公開します:

play_sound

パラメーター

パラメーター

必須

デフォルト

説明

sound_type

"attention" | "done"

いいえ

null

組み込みプリセット。system_file または full_path が指定されている場合は不要です。

system_file

string

いいえ

null

%SystemRoot%\Media 内の WAV ファイル名。

full_path

string

いいえ

null

WAV ファイルへのフルパス。

repeat

integer

いいえ

1

再生の繰り返し回数。繰り返しの間の一時停止は 3 秒です。

サウンドソースを少なくとも 1 つ指定する必要があります:

  • sound_type

  • または system_file

  • または full_path

system_filefull_path の両方が指定された場合、サーバーはエラーを返します。


attention プリセット

{
  "name": "play_sound",
  "arguments": {
    "sound_type": "attention"
  }
}

done プリセット

{
  "name": "play_sound",
  "arguments": {
    "sound_type": "done"
  }
}

Windows Media フォルダーからファイルを再生する

{
  "name": "play_sound",
  "arguments": {
    "system_file": "Windows Notify Calendar.wav"
  }
}

フルパスでファイルを再生する

{
  "name": "play_sound",
  "arguments": {
    "full_path": "C:/my-sounds/my_sound.wav"
  }
}

サウンドを 3 回繰り返す

{
  "name": "play_sound",
  "arguments": {
    "system_file": "Windows Notify Calendar.wav",
    "repeat": 3
  }
}

再生順序:

play
pause 3 seconds
play
pause 3 seconds
play

最後の繰り返しの後に余分な一時停止は追加されません。


ロギング

サーバーはデフォルトで最小限の診断 stderr 出力を生成します。

デバッグログは、次の環境変数で有効にできます:

SOUND_MCP_DEBUG=1

デバッグログを使用した LM Studio 設定の例:

{
  "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"
      }
    }
  }
}

LM Studio を含む一部の MCP クライアントは、メッセージが単なる診断情報であっても、MCP サーバーの stderr 出力を [ERROR] として表示する場合があります。


セキュリティに関する注意事項

full_path パラメーターは、ローカルマシン上の任意の WAV ファイルを再生できます。

ローカルでの個人使用では、通常これで問題ありません。

サーバーが信頼できないクライアントに公開されている場合は、以下を検討してください:

  • full_path のサポートを削除する。

  • または特定のディレクトリのみを許可する。

  • または system_file のみを使用する。


制限事項

  • Windows のみ。

  • .wav ファイルのみサポートされています。

  • system_file はファイル名のみを受け付け、フォルダーパスは受け付けません。

  • full_path は既存のファイルへの絶対パスである必要があります。


推奨システムプロンプト

ローカルモデルがツールを自動的に使用するようにするには、LM Studio のシステムプロンプトに次の指示を追加してください:

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")

(このプロンプトは examples/prompts.md にも記載されています)。


ライセンス

MIT。LICENSE を参照してください。

-
license - not tested
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • Let your AI agent notify you by email, Slack, Discord, or webhook. One tool: send_notification.

  • Send quick greetings, scrape website content, and generate text or images on demand. Perform web s…

  • Schedule tasks for later from your AI agent: reminders, delayed webhooks, recurring jobs.

View all MCP Connectors

Latest Blog Posts

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/vasjabrevno-dev/windows-system-sounds-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server