A Model Context Protocol implementation that plays sound effects (completion, error, notification) for Cursor AI and other MCP-compatible environments, providing audio feedback for a more interactive coding experience.
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.
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.
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-tool
This method ensures that the tool has its own isolated environment, avoiding conflicts with other packages.
You can also install directly with pip:
pip install mcp-sound-tool
Clone this repository:
git clone https://github.com/yourusername/mcp-sound-tool cd mcp-sound-tool
Install with pipx directly from the source directory:
pipx install .
Or with pip:
pip install -e .
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 notificationsYou can find free sound effects on websites like freesound.org.
Run the MCP server:
mcp-sound-tool
The server will start and listen for events from Cursor or other MCP-compatible clients through the stdio transport.
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.
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.
AI agents should use the sound tools proactively at appropriate moments:
Success Sounds (completion
):
Error Sounds (error
):
Notification Sounds (notification
):
# 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}"
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 directoryFor more details, connect to the MCP server and check the tool descriptions.
For development:
# Install development dependencies pip install -e ".[dev]" # Run tests pytest
This project is licensed under the MIT License - see the LICENSE file for details.
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!