MCP Sound Tool
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Sound Tool play a notification sound"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Sound Tool
A Model Context Protocol (MCP) implementation that plays sound effects for Cursor AI and other MCP-compatible environments. This Python implementation provides audio feedback for a more interactive coding experience.
Features
Plays sound effects for various events (completion, error, notification)
Uses the Model Context Protocol (MCP) for standardized integration with Cursor and other IDEs
Cross-platform support (Windows, macOS, Linux)
Configurable sound effects
Related MCP server: MCP Notify Server
Installation
Python Version Compatibility
This package is tested with Python 3.8-3.11. If you encounter errors with Python 3.12+ (particularly BrokenResourceError or TaskGroup exceptions), please try using an earlier Python version.
Recommended: Install with pipx
The recommended way to install mcp-sound-tool is with pipx, which installs the package in an isolated environment while making the commands available globally:
# Install pipx if you don't have it
python -m pip install --user pipx
python -m pipx ensurepath
# Install mcp-sound-tool
pipx install mcp-sound-toolThis method ensures that the tool has its own isolated environment, avoiding conflicts with other packages.
Alternative: Install with pip
You can also install directly with pip:
pip install mcp-sound-toolFrom Source
Clone this repository:
git clone https://github.com/yourusername/mcp-sound-tool cd mcp-sound-toolInstall with pipx directly from the source directory:
pipx install .Or with pip:
pip install -e .
Usage
Adding Sound Files
Place your sound files in the sounds directory. The following sound files are expected:
completion.mp3- Played after code generationerror.mp3- Played when an error occursnotification.mp3- Used for general notifications
You can find free sound effects on websites like freesound.org.
Running the MCP Server
Run the MCP server:
mcp-sound-toolThe server will start and listen for events from Cursor or other MCP-compatible clients through the stdio transport.
Configuration in Cursor
To use this server with Cursor, add it to your MCP configuration file:
On macOS:
// ~/Library/Application Support/Cursor/mcp.json
{
"mcpServers": {
"sound": {
"command": "mcp-sound-tool",
"args": [],
"type": "stdio",
"pollingInterval": 5000,
"startupTimeout": 10000,
"restartOnFailure": true
}
}
}On Windows:
// %APPDATA%/Cursor/mcp.json
{
"mcpServers": {
"sound": {
"command": "mcp-sound-tool",
"args": [],
"type": "stdio",
"pollingInterval": 5000,
"startupTimeout": 10000,
"restartOnFailure": true
}
}
}When installed with pipx, the mcp-sound-tool command will be available in your PATH, so Cursor will be able to find and execute it without specifying the full path.
Sound MCP Usage Guidelines for AI Models
This MCP server provides audio feedback capabilities for AI interactions. It's designed to enhance the user experience by providing clear audio cues that indicate the status of operations without requiring the user to read text.
When to Use Sound Feedback
AI agents should use the sound tools proactively at appropriate moments:
Success Sounds (
completion):After a task or command has successfully completed
When a significant operation has finished successfully
When confirming a user's request has been fulfilled
Error Sounds (
error):When a command has failed or encountered an error
When warning the user about a problem
When an operation couldn't be completed as requested
Notification Sounds (
notification):When alerting the user to important information
When prompting for user attention or input
For status updates on long-running operations
Example Usage
# When a command completes successfully
@mcp.tool()
def execute_command(command):
result = run_command(command)
if result.success:
play_sound("completion") # Indicate success with audio
return "Command executed successfully"
else:
play_sound("error") # Indicate failure with audio
return f"Error: {result.error_message}"Available Tools
play_sound(sound_type="completion", custom_sound_path=None): Play a sound effectlist_available_sounds(): List all available sound filesinstall_to_user_dir(): Install sound files to user's config directory
For more details, connect to the MCP server and check the tool descriptions.
Development
For development:
# Install development dependencies
pip install -e ".[dev]"
# Run tests
pytestAcknowledgments
SIAM-TheLegend for creating the original sound-mcp JavaScript implementation that inspired this Python version
The MCP protocol developers for creating a powerful standard for AI tool interactions
Contributors to the testing and documentation
License
This project is licensed under the MIT License - see the LICENSE file for details.
Available Tools
3 toolsinstall_to_user_dirA
Install sound files to user's config directory.
WHEN TO USE THIS TOOL:
- When the user wants to customize the sound files
- When setting up the sound tool for the first time
- When troubleshooting missing sound files
This tool copies the default sound files to the user's configuration directory
where they can be modified or replaced with custom sounds.
Inputs: no named parameters. Returns: result
list_available_soundsA
List all available notification sounds.
WHEN TO USE THIS TOOL:
- When you need to check what sound options are available
- When determining if a specific sound file exists
- Before using a custom sound to verify available options
This tool helps you discover what sounds are available for providing audio feedback.
Inputs: no named parameters. Returns: result
play_soundA
Play a notification sound on the user's device.
WHEN TO USE THIS TOOL:
- Use 'completion' sound when a task or command has SUCCESSFULLY completed
- Use 'error' sound when a command has FAILED or an error has occurred
- Use 'notification' sound for important alerts or information that needs attention
- Use 'custom' sound only when you need a specific sound not covered by the standard types
AI agents SHOULD proactively use these sounds to provide audio feedback based on
the outcome of commands or operations, enhancing the user experience with
non-visual status indicators.
Example usage: After executing a terminal command, play a 'completion' sound if
successful or an 'error' sound if it failed.
Inputs: sound_type, custom_sound_path. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a distinct purpose: installing, listing, and playing sounds, with no overlap in functionality.
All tools use a consistent verb_noun pattern in snake_case, with clear and descriptive names.
Three tools is a reasonable number for a sound tool, covering setup, exploration, and core usage.
The tool set covers basic lifecycle: install, list, play. Minor gap: no tool for direct volume control or custom sound management beyond defaults.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
CC0 sound effects API for AI agents — search, preview, and download via MCP.
Synth, sampler and music tracker for AI assistants: sound effects, UI sounds and songs as audio.
Audio for your agent: transcribe, speak, translate, summarise, plus sound effects and music.
Related MCP Servers
- AlicenseDqualityDmaintenanceProvides audio feedback by playing sound effects when Cursor AI completes code generation, creating a more interactive coding experience.119ISC
- AlicenseBqualityDmaintenanceA Model Context Protocol service that sends desktop notifications and alert sounds when AI agent tasks are completed, integrating with various LLM clients like Claude Desktop and Cursor.154MIT
- AlicenseBqualityDmaintenancePlays sound effects when Cursor AI completes code generation, providing audio feedback for a more interactive coding experience.12ISC
- AlicenseBqualityDmaintenanceA Model Context Protocol server that allows AI agents to play notification sounds when tasks are completed.127 npm14Apache 2.0