Audio MCP Server

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.

GongRzhe

Developer Tools
Visit Server

README

Audio MCP Server

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.

Features

  • List Audio Devices: View all available microphones and speakers on your system
  • Record Audio: Capture audio from any microphone with customizable duration and quality
  • Playback Recordings: Play back your most recent recording
  • Audio File Playback: Play audio files through your speakers
  • Text-to-Speech: (Placeholder for future implementation)

Requirements

  • Python 3.8 or higher
  • Audio input/output devices on your system

Installation

  1. Clone this repository or download the files to your computer:
git clone https://github.com/GongRzhe/Audio-MCP-Server.git
cd Audio-MCP-Server
  1. Create a virtual environment and install dependencies:
# Windows
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt

# macOS/Linux
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
  1. Or use the included setup script to automate installation:
python setup_mcp.py

Configuration

Claude Desktop Configuration

To use this server with Claude Desktop, add the following to your Claude Desktop configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_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.

Usage

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:

  • "What microphones and speakers are available on my system?"
  • "Record 5 seconds of audio from my microphone."
  • "Play back the audio recording."
  • "Play an audio file from my computer."

Available Tools

list_audio_devices

Lists all available audio input and output devices on your system.

record_audio

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)

play_latest_recording

Plays back the most recently recorded audio.

play_audio

Placeholder for text-to-speech functionality.

Parameters:

  • text: The text to convert to speech
  • voice: The voice to use (default: "default")

play_audio_file

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)

Troubleshooting

No devices found

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

Playback issues

If audio playback isn't working:

  • Check your volume settings
  • Ensure the correct output device is selected
  • Try restarting the Claude Desktop application

Server connectivity

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

License

MIT

Acknowledgments


Note: This server provides tools that can access your microphone and speakers. Always review and approve tool actions before they execute.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
MCP Package Docs Server

MCP Package Docs Server

Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.

Featured
Local
TypeScript
Claude Code MCP

Claude Code MCP

An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.

Featured
Local
JavaScript
@kazuph/mcp-taskmanager

@kazuph/mcp-taskmanager

Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.

Featured
Local
JavaScript
Linear MCP Server

Linear MCP Server

Enables interaction with Linear's API for managing issues, teams, and projects programmatically through the Model Context Protocol.

Featured
JavaScript
mermaid-mcp-server

mermaid-mcp-server

A Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images.

Featured
JavaScript
Jira-Context-MCP

Jira-Context-MCP

MCP server to provide Jira Tickets information to AI coding agents like Cursor

Featured
TypeScript
Linear MCP Server

Linear MCP Server

A Model Context Protocol server that integrates with Linear's issue tracking system, allowing LLMs to create, update, search, and comment on Linear issues through natural language interactions.

Featured
JavaScript
Sequential Thinking MCP Server

Sequential Thinking MCP Server

This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.

Featured
Python