A sound tool for MCP-compatible IDEs like Cursor. Plays sounds for events like completion, error, and notification.
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.
A server that enables access to Joplin notes and to-dos through the Model Context Protocol (MCP).
Control your Spotify music playback through conversations using the Spotify API.
Provides advanced search, reporting, and analytics for recruitment data via Recruitee.
An MCP server to execute Coze workflows locally via a Python script.
a macOS-only MCP server that enables AI agents to capture screenshots of applications, or the entire system.
Interact with your Obsidian vault using natural language.
Perform advanced CSV analysis and generate insights using Google's Gemini AI. Requires Gemini and Plotly API keys.
Interact with your local Obsidian vault using a REST API.
A tool for bold and unconventional problem-solving, generating unique solutions by branching and tracking thoughts.
An MCP server for interacting with a Paperless-NGX API server. This server provides tools for managing documents, tags, correspondents, and document types in your Paperless-NGX instance.