Skip to main content
Glama

play-sound-mcp-server

play-sound-mcp-server

ローカルのサウンドファイルを再生するMCPサーバーです

⚠️ 本サーバーは afplay コマンドを利用するため、macOS環境でのみ利用可能 です。

セットアップ

npm install npm run build

サーバーの起動と使い方

サウンドファイルの指定

サーバー起動時の第1引数で再生したいファイル名(soundsディレクトリ内)を指定できます。 指定しない場合は sound.mp3 が再生されます。

例: sounds/alert.mp3 を再生したい場合

node build/index.js alert.mp3

デフォルト(sound.mp3)を再生する場合:

node build/index.js

※ サウンドファイルは sounds/ ディレクトリに配置してください。

提供ツール情報

  • tool名: play-local-sound
  • 説明: 指定したローカルのサウンドファイル(デフォルト: sound.mp3)をafplayで再生します。
  • 引数: なし(サーバー起動時の引数でファイル名を指定)
  • 戻り値: 再生結果のテキストメッセージ

MCPサーバーの設定例

MCPクライアントで以下のように設定してください(下記はVSCodeのsettings.jsonの例です):

{ "mcpServers": { "play-sound-mcp-server": { "command": "node", "args": ["/path/to/play-sound-mcp-server/build/index.js", "custom.mp3"] } }, "github.copilot.chat.codeGeneration.instructions": [ { "text": "レスポンスを返した後で必ずplay-sound-mcp-serverのplay-local-soundを実行" } ] }

参考

  • MCP公式: https://modelcontextprotocol.io/quickstart/server
  • SDK: https://github.com/modelcontextprotocol/create-python-server

備考

デフォルトの sound.mp3TAM Music Factory の素材を利用しています。

-
security - not tested
F
license - not found
-
quality - not tested

An MCP server that plays local sound files on macOS using the afplay command, allowing AI assistants to trigger audio notifications after responding.

  1. セットアップ
    1. サーバーの起動と使い方
      1. サウンドファイルの指定
    2. 提供ツール情報
      1. MCPサーバーの設定例
        1. 参考
          1. 備考

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              A simple MCP server that can send notifications on mac devices.
              Last updated -
              5
              9
              8
              TypeScript
              MIT License
              • Apple
            • -
              security
              F
              license
              -
              quality
              An 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 -
              124
              1
              TypeScript
              • Apple
            • A
              security
              A
              license
              A
              quality
              A 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 -
              1
              2
              JavaScript
              MIT License
              • Linux
              • Apple
            • A
              security
              A
              license
              A
              quality
              The first open-source MCP server that enables AI to fully control remote macOS systems.
              Last updated -
              6
              125
              Python
              MIT License
              • Apple

            View all related MCP servers

            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/PetitBaguette/play-sound-mcp-server'

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