Audio MCP Server
Enables Claude and other AI assistants to interact with your computer's audio system, allowing for recording from microphones and playing audio through speakers.
Enables Claude and other AI assistants to interact with your computer's audio system, allowing for recording from microphones and playing audio through speakers.
An MCP (Model Context Protocol) server that provides audio input/output capabilities for AI assistants like Claude. This server enables Claude to interact with your computer's audio system, including recording from microphones and playing audio through speakers.
git clone https://github.com/GongRzhe/Audio-MCP-Server.git
cd Audio-MCP-Server
# Windows
python -m venv .venv
.venvScriptsactivate
pip install -r requirements.txt
# macOS/Linux
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python setup_mcp.py
To use this server with Claude Desktop, add the following to your Claude Desktop configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%Claudeclaude_desktop_config.json
{
"mcpServers": {
"audio-interface": {
"command": "/path/to/your/.venv/bin/python",
"args": [
"/path/to/your/audio_server.py"
],
"env": {
"PYTHONPATH": "/path/to/your/audio-mcp-server"
}
}
}
}
Replace the paths with the actual paths on your system. The setup script will generate this configuration for you.
After setting up the server, restart Claude Desktop. You should see a hammer icon in the input box, indicating that tools are available.
Try asking Claude:
Lists all available audio input and output devices on your system.
Records audio from your microphone.
Parameters:
- duration
: Recording duration in seconds (default: 5)
- sample_rate
: Sample rate in Hz (default: 44100)
- channels
: Number of audio channels (default: 1)
- device_index
: Specific input device index to use (default: system default)
Plays back the most recently recorded audio.
Placeholder for text-to-speech functionality.
Parameters:
- text
: The text to convert to speech
- voice
: The voice to use (default: "default")
Plays an audio file through your speakers.
Parameters:
- file_path
: Path to the audio file
- device_index
: Specific output device index to use (default: system default)
If no audio devices are found, check: - Your microphone and speakers are properly connected - Your operating system recognizes the devices - You have the necessary permissions to access audio devices
If audio playback isn't working: - Check your volume settings - Ensure the correct output device is selected - Try restarting the Claude Desktop application
If Claude can't connect to the server: - Verify your configuration paths are correct - Ensure Python and all dependencies are installed - Check Claude's logs for error messages
MIT
Note: This server provides tools that can access your microphone and speakers. Always review and approve tool actions before they execute.