gemini-audio-mcp MCP Server
High-performance audio, music, and voice generation MCP server for Gemini 2.5 and Lyria 3.
gemini-audio-mcp scores 66 (Good), licensed MIT and written in Rust. It installs as a local process. It declares 4 tools. Filed under Media, Version control. GitHub shows 0 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
66 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
86/100 for listing completeness. Lost points: short summary, no docs link.
How quality is graded
Where the 66 comes from
22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "jxoesneon-gemini-audio-mcp": { "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/jxoesneon/gemini-audio-mcp:0.1.0" ], "env": { "GEMINI_API_KEY": "YOUR_GEMINI_API_KEY" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
GEMINI_API_KEYSecret | Required | Your Google AI Studio API Key |
Tools4Tool docs quality grade F
All capabilitiesgenerate_musictool2. Professional Music ( )
1. Environmental Generation ( )
generate_voicetool3. Expressive Voice ( )
4. Dynamic Evolution ( )
About
๐ต Gemini Audio MCP
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.
๐ Prerequisites
Before deploying the server, ensure your environment meets the following technical requirements:
1. FFmpeg (Core Processing Engine)
Required for high-performance audio encoding, decoding, and transcoding.
- macOS:
brew install ffmpeg - Windows:
winget install ffmpegor download from ffmpeg.org. - Linux (Ubuntu/Debian):
sudo apt update && sudo apt install ffmpeg
2. Rust Toolchain (Compilation)
Required to build the server from source.
- Install via rustup.rs:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
3. Node.js & NPM (Runtime)
Required if using the pre-compiled NPM package.
- Version:
node >= 18.0.0
๐ Installation & Deployment
Global Installation (via NPX)
The 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"
}
}
}
}
Manual Build (Optimized)
For maximum performance, build the Rust binary locally:
- Clone & Build:
git clone https://github.com/mcp-servers/gemini-audio-mcp.git cd gemini-audio-mcp cargo build --release - Locate Binary: The optimized binary will be in
./target/release/gemini-audio-mcp.
๐ API Key Management
The server requires a valid Google AI Studio API key.
- Obtain your key from Google AI Studio.
- Security Best Practice: Never hardcode keys. Inject the key via the
GEMINI_API_KEYenvironment variable. - Tier Note: Access to Lyria 3 (Pro/Clip) models typically requires a Paid Tier or specific preview access in Google AI Studio.
๐ฎ Tool Usage Guide
1. Environmental Generation (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
}
}
2. Professional Music (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
}
}
3. Expressive Voice (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"
}
}
4. Dynamic Evolution (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
}
}
โ๏ธ Advanced Parameters
| 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. |
๐ฌ Architecture Overview
Gemini Audio MCP employs a unique Hybrid Engine Strategy:
- WebSocket Loop: Connects to Gemini 2.5 Live for low-latency, interactive voice and foley tasks.
- REST Pipeline: Interfaces with Lyria 3 Pro for high-fidelity musical synthesis.
- PCM Processing: An internal Rust-based loop (
decode -> crossfade -> loop -> encode) ensures that short clips are transformed into seamless, infinite soundscapes without audible clicks.
๐งช Troubleshooting
FFmpeg Errors
- "FFmpeg not found": Ensure
ffmpegis in your system PATH. Runffmpeg -versionin your terminal to verify. - Transcoding Failures: Check if you have the necessary codecs (e.g.,
libmp3lamefor MP3). Most standard FFmpeg installations include these.
API Issues
- 429 Rate Limit: The server implements a semaphore to limit concurrency, but ensure your API tier supports the requested model.
- Empty Audio Output: Verify your
GEMINI_API_KEYis correct and that your account has access to the requested model (especiallylyria-3-pro-preview).
๐ License
Licensed under the MIT License. Engineered with precision by the MCP community.
Frequently asked questions
What is gemini-audio-mcp MCP Server?
High-performance audio, music, and voice generation MCP server for Gemini 2.5 and Lyria 3.
How do I install gemini-audio-mcp MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. gemini-audio-mcp MCP Server runs locally from the Docker image ghcr.io/jxoesneon/gemini-audio-mcp:0.1.0 with the command docker run -i --rm ghcr.io/jxoesneon/gemini-audio-mcp:0.1.0.
Is gemini-audio-mcp MCP Server free and open source?
Yes. gemini-audio-mcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does gemini-audio-mcp MCP Server support remote (HTTP) connections?
No remote endpoint is listed for gemini-audio-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does gemini-audio-mcp MCP Server provide?
gemini-audio-mcp MCP Server provides 4 tools: generate_music, generate_soundscape, generate_voice, and transition_soundscape. See the full tool list for descriptions and parameters.
How is gemini-audio-mcp MCP Server's trust score calculated?
gemini-audio-mcp MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yetโBe the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.