Gemini Audio MCP
A dedicated Model Context Protocol (MCP) server that provides high-quality audio and video transcription, summarization, and reasoning using Google's native multimodal Gemini models (gemini-1.5-flash).
Why this exists?
Most AI assistants (like Claude Code, Cursor, or local agents) rely on text inputs. If you want them to transcribe or process audio, you usually have to run local STT (Speech-to-Text) models like Whisper, which can be inaccurate, slow, or resource-heavy.
This MCP server connects your AI assistant directly to Google's Gemini 1.5 Flash multimodal API. Instead of just transcribing text, the file is processed natively by Gemini, allowing you to ask complex queries about the audio or video content (e.g., "Transcribe this", "Extract the action items", "Translate this Polish audio to an English summary").
Features
- Native Multimodal Support: Uses
gemini-1.5-flashto process the audio/video file directly. - Fast and Cheap:
gemini-1.5-flashprovides exceptional transcription quality without burning through API limits or hallucinating wildly. - Custom Prompts: Don't just transcribe – tell the model exactly what to extract from the audio.
Installation & Usage
You can use this MCP server with any compatible client (Claude Code, Cursor, Windsurf, etc.) using uvx.
1. Claude Code
Run the following command to add the server to Claude Code globally:
claude mcp add gemini-audio uvx gemini-audio-mcp
2. Cursor / Windsurf / Generic MCP Client
Add the following configuration to your client's MCP settings file (usually settings.json or claude.json):
{
"mcpServers": {
"gemini-audio": {
"command": "uvx",
"args": ["gemini-audio-mcp"],
"env": {
"GEMINI_API_KEY": "your_gemini_api_key_here"
}
}
}
}
Environment Variables
The server requires a Google Gemini API key to function.
Set the GEMINI_API_KEY environment variable in your terminal before launching your agent, or define it in your MCP configuration file.
Multi-Key Fallback: You can provide a single key or a comma-separated list of keys. If one key encounters a rate limit or quota issue (e.g., 429 Resource Exhausted), the server will automatically retry the request using the next key in the list.
{
"env": {
"GEMINI_API_KEY": "key1,key2,key3"
}
}
Provided Tools
process_audio
Processes an audio or video file using Google's Gemini models.
Parameters:
file_path(string, required): The absolute path to the local audio or video file.prompt(string, optional): Instructions for the model. Default is "Please transcribe this audio exactly as spoken."model_name(string, optional): The Gemini model to use. Default is"models/gemini-1.5-flash". Supported models includemodels/gemini-1.5-flash,models/gemini-1.5-pro,models/gemini-1.5-flash-8b, andmodels/gemini-2.0-flash-exp.
Supported File Formats
Gemini 1.5 Flash natively supports a wide range of audio and video formats via the File API.
Audio formats:
- WAV (
audio/wav) - MP3 (
audio/mp3) - AIFF (
audio/aiff) - AAC (
audio/aac) - OGG Vorbis (
audio/ogg) - FLAC (
audio/flac)
Video formats:
- MP4 (
video/mp4) - MPEG (
video/mpeg) - MOV (
video/quicktime) - AVI (
video/x-msvideo) - FLV (
video/x-flv) - MPG (
video/mpeg) - WEBM (
video/webm) - WMV (
video/x-ms-wmv) - 3GPP (
video/3gpp)
For more details, refer to the official Google Gemini API documentation for Audio understanding and Video understanding.
Release Notes
v0.1.4
- Documentation: Fixed badges and added supported models to the tool description.
v0.1.3
- Documentation: Added a comprehensive list of supported audio and video formats.
v0.1.2
- Initial Release: Core processing via
gemini-1.5-flash. - Automatic Fallback: Added support for multiple API keys in
GEMINI_API_KEY(comma-separated) to prevent interruptions during rate limits. - Native execution: Works securely out-of-the-box via
uvx.
License
Open Source (MIT)
Metadata
Release files for gemini-audio-mcp 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gemini_audio_mcp-0.1.4.tar.gz | 4.7 kB | Without provenance | Details for gemini_audio_mcp-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gemini_audio_mcp-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for gemini_audio_mcp-0.1.4-py3-none-any.whl |
Total release size: 10.4 kB
Release files / gemini_audio_mcp-0.1.4.tar.gz
| Download URL | gemini_audio_mcp-0.1.4.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7b718aec5603f2fdd761898c43826f6e9143cf1c7304280145cbd5839bcf1229
|
|
BLAKE2b-256 checksum How to use checksums |
53fef55630d267bf8acf94657b0bc49cecc6ff420ff3e2c01b70842a2160c50c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / gemini_audio_mcp-0.1.4-py3-none-any.whl
| Download URL | gemini_audio_mcp-0.1.4-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d0816091e45b1b66115789f40c2f38de855f97a996720d3f32ec553ab9331c9b
|
|
BLAKE2b-256 checksum How to use checksums |
6e95a1c122773aa007ffdab551abe7fdd3050a82bcd9ddae6e4b6715fe0fed81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for gemini-audio-mcp 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.