High-performance audio, music, and voice generation MCP server for Gemini 2.5 and Lyria 3.
Gemini Audio MCP is a high-performance Model Context Protocol (MCP) server engineered for professional-grade audio synthesis. It leverages the Gemini 2.5 Multimodal Live API and Google DeepMind's Lyria 3 models to deliver high-fidelity environmental soundscapes, musical compositions, and expressive narration on-demand.
Before deploying the server, ensure your environment meets the following technical requirements:
Required for high-performance audio encoding, decoding, and transcoding.
brew install ffmpegwinget install ffmpeg or download from ffmpeg.org.sudo apt update && sudo apt install ffmpegRequired to build the server from source.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shRequired if using the pre-compiled NPM package.
node >= 18.0.0The fastest way to integrate the server into your MCP client (e.g., Claude Desktop).
{
"mcpServers": {
"gemini-audio": {
"command": "npx",
"args": ["-y", "gemini-audio-mcp"],
"env": {
"GEMINI_API_KEY": "YOUR_SECURE_API_KEY"
}
}
}
}
For maximum performance, build the Rust binary locally:
git clone https://github.com/mcp-servers/gemini-audio-mcp.git
cd gemini-audio-mcp
cargo build --release
./target/release/gemini-audio-mcp.The server requires a valid Google AI Studio API key.
GEMINI_API_KEY environment variable.generate_soundscape)Synthesizes immersive, vocal-free ambient textures.
{
"name": "generate_soundscape",
"arguments": {
"prompt": "Deep underwater abyss, low-frequency whale songs, rhythmic air bubbles rising, muffled aquatic pressure.",
"duration": 60,
"quality": "high",
"auto_play": true
}
}
generate_music)Generates structural compositions with optional vocal control.
{
"name": "generate_music",
"arguments": {
"prompt": "Melancholic solo cello in a vast cathedral with 5-second decay reverb.",
"bpm": 72,
"song_key": "D minor",
"intensity": 4
}
}
generate_voice)Narration and character dialogue using Gemini 2.5 Native Audio.
{
"name": "generate_voice",
"arguments": {
"text": "The artifacts are stable, but the rift remains open.",
"voice_direction": "Gravelly, urgent, whispered"
}
}
transition_soundscape)Crossfades two distinct environments for seamless scene transitions.
{
"name": "transition_soundscape",
"arguments": {
"from_prompt": "Quiet library silence.",
"to_prompt": "Sudden heavy rain on a tin roof.",
"transition_duration": 8
}
}
| Parameter | Type | Description |
|---|---|---|
seed | Integer | Ensures deterministic, reproducible audio outputs. |
image_path | String | Multimodal: Uses a local image to guide the acoustic mood (e.g., resonance). |
bpm | Number | Explicitly sets the rhythmic tempo (essential for music). |
intensity | Number | 1-10 scale controlling dynamic range and complexity. |
guidance | Number | 0.0-6.0 scale for prompt adherence (Lyria models). |
duration | Number | Target length in seconds. Triggers the Seamless Looping Engine. |
Gemini Audio MCP employs a unique Hybrid Engine Strategy:
decode -> crossfade -> loop -> encode) ensures that short clips are transformed into seamless, infinite soundscapes without audible clicks.ffmpeg is in your system PATH. Run ffmpeg -version in your terminal to verify.libmp3lame for MP3). Most standard FFmpeg installations include these.GEMINI_API_KEY is correct and that your account has access to the requested model (especially lyria-3-pro-preview).Licensed under the MIT License. Engineered with precision by the MCP community.
Source-derived launch command. Check the maintainer’s required arguments and credentials before running:
docker run -i --rm ghcr.io/jxoesneon/gemini-audio-mcp:0.1.0Merge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-jxoesneon-gemini-audio-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/jxoesneon/gemini-audio-mcp:0.1.0"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup referenceghcr.io/jxoesneon/gemini-audio-mcp:0.1.0dockerio.github.jxoesneon/gemini-audio-mcp works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.