Provides a tool for playing local sound files on macOS systems using the afplay command, allowing for audio notifications to be triggered by AI responses.
play-sound-mcp-server
ローカルのサウンドファイルを再生するMCPサーバーです
⚠️ 本サーバーは
afplay
コマンドを利用するため、macOS環境でのみ利用可能 です。
セットアップ
サーバーの起動と使い方
サウンドファイルの指定
サーバー起動時の第1引数で再生したいファイル名(soundsディレクトリ内)を指定できます。
指定しない場合は sound.mp3
が再生されます。
例: sounds/alert.mp3
を再生したい場合
デフォルト(sound.mp3)を再生する場合:
※ サウンドファイルは
sounds/
ディレクトリに配置してください。
提供ツール情報
- tool名:
play-local-sound
- 説明: 指定したローカルのサウンドファイル(デフォルト: sound.mp3)をafplayで再生します。
- 引数: なし(サーバー起動時の引数でファイル名を指定)
- 戻り値: 再生結果のテキストメッセージ
MCPサーバーの設定例
MCPクライアントで以下のように設定してください(下記はVSCodeのsettings.jsonの例です):
参考
- MCP公式: https://modelcontextprotocol.io/quickstart/server
- SDK: https://github.com/modelcontextprotocol/create-python-server
備考
デフォルトの sound.mp3
は TAM Music Factory の素材を利用しています。
This server cannot be installed
An MCP server that plays local sound files on macOS using the afplay command, allowing AI assistants to trigger audio notifications after responding.
Related MCP Servers
- AsecurityAlicenseAqualityA simple MCP server that can send notifications on mac devices.Last updated -598TypeScriptMIT License
- -securityFlicense-qualityAn MCP server that plays notification sounds when AI coding assistants like Windsurf or Cursor require user attention, such as when coding is complete or when user approval is needed.Last updated -1241TypeScript
- AsecurityAlicenseAqualityA MCP server that enables transcription of audio files using OpenAI's Speech-to-Text API, with support for multiple languages and file saving options.Last updated -12JavaScriptMIT License
- AsecurityAlicenseAqualityThe first open-source MCP server that enables AI to fully control remote macOS systems.Last updated -6125PythonMIT License