Skip to main content
Glama
play-sound-mcp-server

play-sound-mcp-server

play-sound-mcp-server

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

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

セットアップ

npm install
npm run build

Related MCP server: Notifications MCP Server

サーバーの起動と使い方

サウンドファイルの指定

サーバー起動時の第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を実行"
    }
  ]
}

参考

備考

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

ライセンス

本リポジトリのソースコードは MIT ライセンスで提供します。

デフォルト音源(sound.mp3)は TAM Music Factory の利用規約に従ってご利用ください。

Available Tools

1 tool
play-local-soundB

ローカルのサウンドファイル(sound.mp3)をafplayで再生します。

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or confusion between tools. The single tool 'play-local-sound' has a clearly defined and distinct purpose.

    Naming Consistency5/5

    A single tool inherently exhibits perfect naming consistency, as there are no other tools to compare against. The name 'play-local-sound' follows a clear verb_noun pattern.

    Tool Count2/5

    A single tool is generally too few for a meaningful server scope, as it offers minimal functionality and limits agent capabilities. For a sound-playing server, basic operations like stop, pause, or list sounds might be expected.

    Completeness2/5

    The server is severely incomplete for a sound-playing domain. It only provides playback of a specific local file ('sound.mp3') with no ability to handle different files, control playback (e.g., stop, volume), or manage sound resources, creating significant gaps for agent workflows.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers