mcp-gemini-media
Sends local audio and video files to Google Gemini (gemini-2.5-flash) for analysis, with tools to ask arbitrary questions about a file's content — transcription, speaker/instrument identification, language detection, visual style description, and on-screen text/logos. Small files (<20 MB) are sent inline as base64, while larger files are uploaded via the Gemini File API with polling until processing completes; responses include token usage, model name, file size, and upload method.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-gemini-media transcribe the speech in /Users/me/Videos/team-standup.mp4"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-gemini-media
An MCP server that gives Claude Desktop the ability to analyze audio and video files by routing them through Google Gemini.
Claude Desktop cannot natively process media files. This server bridges that gap — point it at a local audio or video file, ask a question, and get Gemini's analysis back inside Claude.
Features
Two tools:
ask_question_about_videoandask_question_about_audioSmart upload: Files under 20 MB are sent inline as base64; larger files use Gemini's File API with automatic upload polling
Token usage reporting: Every response includes prompt/response token counts, model name, file size, and upload method
Broad format support: See Supported Formats below
Related MCP server: MCP Gemini Server
Prerequisites
Node.js 18+
Installation
Option 1: Direct install (no clone needed)
No need to clone the repo. Just point your MCP config at the GitHub URL and npx handles the rest.
Option 2: Clone and build locally
git clone https://github.com/lawriec/mcp-gemini-media.git
cd mcp-gemini-media
npm install
npm run buildConfiguration
Add this to your Claude Desktop config file:
Windows (Store): %LOCALAPPDATA%\Packages\Claude_*\LocalCache\Roaming\Claude\claude_desktop_config.json
Windows (standalone): %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Using npx (recommended)
{
"mcpServers": {
"gemini-media": {
"command": "npx",
"args": ["-y", "github:lawriec/mcp-gemini-media"],
"env": {
"GEMINI_API_KEY": "your-api-key-here"
}
}
}
}Using a local clone
{
"mcpServers": {
"gemini-media": {
"command": "node",
"args": ["/absolute/path/to/mcp-gemini-media/build/index.js"],
"env": {
"GEMINI_API_KEY": "your-api-key-here"
}
}
}
}Then restart Claude Desktop. The two tools should appear in the tools menu.
Tools
ask_question_about_video
Send a video file to Gemini and ask a question about it.
Parameter | Type | Description |
| string | Absolute path to the video file |
| string | Question to ask about the video |
Example questions:
"What is happening in this video?"
"Transcribe any speech in this video"
"Describe the visual style and cinematography"
"Are there any text overlays or logos visible?"
ask_question_about_audio
Send an audio file to Gemini and ask a question about it.
Parameter | Type | Description |
| string | Absolute path to the audio file |
| string | Question to ask about the audio |
Example questions:
"Transcribe this audio"
"What instruments are playing?"
"What language is being spoken?"
"Describe the mood and genre of this music"
Supported Formats
Video
Extension | MIME Type |
| video/mp4 |
| video/quicktime |
| video/x-msvideo |
| video/mpeg |
| video/x-flv |
| video/webm |
| video/x-ms-wmv |
| video/3gpp |
Audio
Extension | MIME Type |
| audio/wav |
| audio/mpeg |
| audio/aiff |
| audio/aac |
| audio/ogg |
| audio/flac |
How It Works
Claude Desktop sends a tool call with a file path and question
The server reads the file and checks its extension against the supported MIME type map
Small files (<=20 MB): Base64-encoded and sent inline to Gemini
Large files (>20 MB): Uploaded via Gemini's File API, then polled every 2 seconds until processing completes (up to 5 minutes)
The question and file are sent to
gemini-2.5-flashThe response is returned to Claude along with usage metadata
Troubleshooting
"Fatal: GEMINI_API_KEY environment variable is not set"
Make sure your Claude Desktop config includes the env block with your API key.
"File not found" The path must be an absolute path on your local filesystem. Relative paths won't work.
"Unsupported video/audio format" Check the Supported Formats tables. The server checks the file extension, not the file contents.
"Response was blocked by Gemini safety filters" Gemini's content filters flagged the response. Try rephrasing your question.
Tool doesn't appear in Claude Desktop Restart Claude Desktop after editing the config. Check the MCP server logs — in Claude Desktop, go to Settings > Developer > gemini-media to see server output.
License
MIT
Available Tools
2 toolsask_question_about_audioA
Send an audio file to Google Gemini and ask a question about it. Supports: wav, mp3, aiff, aac, ogg, flac.
Inputs: question (required), file_path (required).
ask_question_about_videoB
Send a video file to Google Gemini and ask a question about it. Supports: mp4, mov, avi, mpeg, flv, webm, wmv, 3gpp.
Inputs: question (required), file_path (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools target clearly distinct media types (video vs. audio) with no overlap in inputs or intent. An agent can trivially select the correct one based on file type.
Both tools follow the identical ask_question_about_<media> pattern, with matching verbs and noun structure. Naming is fully predictable and self-documenting.
Two tools is on the thin side for a media-analysis server; the surface is minimal even though each tool is well-scoped. It feels like a partial implementation rather than a complete offering.
Video and audio querying are covered, but image files (a core Gemini media capability) and operations like transcription or summarization are absent. The single 'ask a question' primitive leaves notable gaps for a media-analysis domain.
Maintenance
Related MCP Connectors
Give Claude only the Google Drive files you choose. Every action logged.
Generate images and video from Claude with one API key.
Connect Claude to Fathom meeting recordings, transcripts, and summaries
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables Claude Desktop to generate text and analyze images using Google's Gemini Pro API. Provides seamless integration between Claude and Gemini's AI capabilities through natural language commands.2MIT
- FlicenseNot gradedqualityDmaintenanceEnables Claude Desktop to interact with Google's Gemini API, allowing users to query Gemini models directly or facilitate conversations between Claude and Gemini with conversation history management.-
- FlicenseNot gradedqualityDmaintenanceMCP server that connects Claude Desktop to Google Gemini, enabling multimodal analysis with file attachments (video, image, audio, PDF).-
- AlicenseNot gradedqualityCmaintenanceEnables Claude Desktop to fetch full YouTube video transcripts from any URL, so users can summarize, translate, or cite video content without API keys or downloads.MIT