
Gemini Audio Mcp
io.github.jxoesneon由 GitHub 账号 jxoesneon 发布v0.1.0更新于 Oct 24, 2026
High-performance audio, music, and voice generation MCP server for Gemini 2.5 and Lyria 3.
概览
一个本地 MCP 服务器,让助手借助 Google Gemini 2.5 与 Lyria 3 音频模型生成环境音、音乐和语音旁白。
- 可以做什么
- 根据文字提示生成无人声的环境音景,可设置时长、质量与自动播放,并支持无缝循环。创作音乐,可控制速度、调性与强度,也可用本地图片引导氛围。生成富有表现力的旁白与角色对白,并可指定语气方向。将两段音景交叉淡入淡出,形成平滑的场景过渡。通过种子、引导强度和时长等参数调整输出。
- 适用场景
- 适合需要助手按需产出环境音、配乐或语音旁白的场景,例如场景演示、原型或媒体项目,且已具备 Google AI Studio 访问权限时使用。
- 运行要求
- 以本地进程运行,通常通过 npx 启动(需 Node.js 18 或更高版本),或用 Rust 工具链从源码构建。需安装 FFmpeg 并在 PATH 中可用,用于音频编码与转码。需要 Google AI Studio API 密钥,通过 GEMINI_API_KEY 环境变量提供,并需联网访问 Google 的 Gemini 与 Lyria 服务。
安装
在 SourceWeft 中
- 打开 控制台中的 Gemini Audio Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
🎵 Gemini Audio MCP
[Institutional Grade] [Gemini 2.5] [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.
🛠 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).
Manual Build (Optimized)
For maximum performance, build the Rust binary locally:
- Clone & Build:
- 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.
2. Professional Music (generate_music)
Generates structural compositions with optional vocal control.
3. Expressive Voice (generate_voice)
Narration and character dialogue using Gemini 2.5 Native Audio.
4. Dynamic Evolution (transition_soundscape)
Crossfades two distinct environments for seamless scene transitions.
⚙️ Advanced Parameters
🔬 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.
来源:README.md,提交 516a1f7
工具
0版本历史
1- v0.1.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分