Google AI Studio MCP Server
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., "@Google AI Studio MCP Server analyze this YouTube video and summarize the main points"
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.
# Google AI Studio MCP Server (google-ai-studio-mcp)
Model Context Protocol (MCP) server connecting Claude Code, Claude Desktop, and other MCP clients to Google AI Studio & the Gemini API across 12 multimodal tools.
Official Gemini API Mode (
use_browser=False): Calls the officialgoogle-genaiSDK directly withGEMINI_API_KEY.Browser Sign-In Mode (Default): Uses a dedicated persistent local Chrome profile at
~/.google-ai-studio-mcp/chrome-profile(aistudio_browser_loginonce).
Tools (12)
Tool | What it does |
| Opens |
| Text & multimodal chat with system instructions, file attachments, and Google Search grounding. |
| Single-speaker or multi-speaker Arabic/English voiceover generation (WAV). |
| Generates and edits high-resolution images and returns them inline. |
| Starts an async Veo/video generation job and returns |
| Starts an async music generation job in AI Studio Media Studio. |
| Analyzes local video, audio, PDFs, images, or YouTube URLs. |
| Transcribes audio/video into |
| Polls async video/music generation jobs and returns the finished file path. |
| Retrieves the most recently saved media file from |
| Lists available Gemini / Imagen / Veo / TTS models via |
| Captures a diagnostic screenshot and visible controls summary. |
Related MCP server: gemini-sidekick
Install
Claude Code
claude mcp add google-ai-studio -- uvx --from git+https://github.com/bostudioserv-alt/google-ai-studio-mcp google-ai-studio-mcpClaude Desktop
{
"mcpServers": {
"google-ai-studio": {
"command": "uvx",
"args": ["--from", "git+https://github.com/bostudioserv-alt/google-ai-studio-mcp", "google-ai-studio-mcp"]
}
}
}Environment Variables
See .env.example: GEMINI_API_KEY, AISTUDIO_MEDIA_DIR, AISTUDIO_CHROME_PROFILE, AISTUDIO_SHOW_BROWSER.
License
MIT
Available Tools
12 toolsaistudio_analyze_mediaB
Analyze local videos, audio recordings, PDFs, images, or a YouTube URL using Google AI Studio.
Args: question: What to analyze, extract, or summarize. files: Optional list of local file paths (video, audio, PDF, images). youtube_url: Optional YouTube video URL to analyze. model: Optional model name. system_instruction: Optional system instruction. use_browser: True (default) uses your AI Studio Chrome session; False uses Gemini API.
Inputs: question (required), files, model, use_browser, +2 more. Returns: result
aistudio_browser_loginA
Open Google AI Studio (https://aistudio.google.com) in a visible Chrome window to sign in once with your Google account.
Saves your sign-in in ~/.google-ai-studio-mcp/chrome-profile so all AI Studio tools can run using your account without an API key.
Args: wait_seconds: Seconds to wait for you to finish signing in (default 180).
Inputs: wait_seconds. Returns: result
aistudio_check_jobA
Check progress of an async video/music generation job and return the finished file path when ready.
Args:
job_id: The job_id returned by aistudio_generate_video or aistudio_generate_music.
wait_seconds: Seconds to wait for completion before returning current status (max 45s).
Inputs: job_id, wait_seconds.
aistudio_generate_imageA
Generate or edit a high-resolution image in Google AI Studio (Nano Banana / Imagen).
Args: prompt: Detailed visual art-direction prompt. aspect_ratio: '1:1', '16:9', '9:16', '4:3', '3:4', or '4:5'. Default '1:1'. reference_images: Optional local image paths for editing or style/subject reference. model: Optional model name (API mode default: 'gemini-nano-banana-2.1'). output_path: Optional local file path to save the image. use_browser: True (default) uses your AI Studio Chrome session; False uses Gemini API.
Inputs: prompt (required), model, output_path, use_browser, +2 more.
aistudio_generate_musicB
Generate a music track in Google AI Studio (Lyria / Media Studio).
Args: prompt: Genre, mood, BPM, instruments, and structure description. output_path: Optional output audio file path. use_browser: True (default) uses AI Studio Media in Chrome.
Inputs: prompt (required), output_path, use_browser. Returns: result
aistudio_generate_videoA
Start a video generation job in Google AI Studio (Veo / Gemini Omni).
Returns a job_id immediately because video clips take 1-5 minutes; poll with aistudio_check_job.
Args: prompt: Scene, motion, camera, lighting, and audio prompt. aspect_ratio: '16:9' or '9:16'. Default '16:9'. first_frame: Optional local starting frame image path. duration: Video duration in seconds (default 8). model: Optional model name (API mode default: 'gemini-omni-1.2-flash'). output_path: Optional local MP4 output path. use_browser: True (default) drives AI Studio Video in Chrome; False uses Gemini API.
Inputs: prompt (required), model, duration, first_frame, +3 more. Returns: result
aistudio_inspect_uiA
Diagnostic tool: captures a screenshot and lists visible inputs/buttons on a Google AI Studio page.
Useful if Google updates the AI Studio web UI and you want to verify login state or selectors.
Args: route: AI Studio path (e.g. '/prompts/new_chat', '/generate-speech', '/generate-media'). show_browser: Show Chrome window visibly while inspecting (default False).
Inputs: route, show_browser. Returns: result
aistudio_list_modelsA
List available Gemini / Imagen / Veo / TTS models via the official Gemini API (requires GEMINI_API_KEY).
Args: filter_text: Optional substring filter (e.g. 'tts', 'image', 'flash', 'pro').
Inputs: filter_text. Returns: result
aistudio_promptA
Run a text or multimodal prompt in Google AI Studio (chat playground or Gemini API).
Args: prompt: The prompt or question to run. model: Optional model name (e.g. 'gemini-4-hydrogen', 'gemini-4-neon'). system_instruction: Optional system instruction. files: Optional list of local file paths (images, PDFs, audio, video) to attach. google_search: Enable Google Search grounding when True. temperature: Optional sampling temperature (API mode). use_browser: True (default) uses your signed-in Chrome session at aistudio.google.com; False uses GEMINI_API_KEY.
Inputs: prompt (required), files, model, temperature, +3 more. Returns: result
aistudio_show_latestA
Show the most recently saved image, audio, video, or transcript in ~/Downloads/google-ai-studio.
Args: media_type: 'any', 'image', 'audio', 'video', or 'transcript'. Default 'any'.
Inputs: media_type.
aistudio_transcribeA
Transcribe a local audio or video file with timestamps and speaker labels (.srt, .md, .txt, .json).
Args: file_path: Local path to the audio or video file. format: Output format: 'srt', 'md', 'txt', or 'json'. Default 'srt'. include_speakers: Include speaker diarization labels (default True). include_timestamps: Include timestamps (default True). language: Optional spoken language hint (e.g. 'Arabic', 'Egyptian Arabic', 'English'). output_path: Optional output transcript path. use_browser: True (default) runs via AI Studio Chrome; False uses Gemini API directly.
Inputs: file_path (required), format, language, output_path, +3 more. Returns: result
aistudio_ttsA
Generate Arabic or English studio voiceover / speech (single-speaker or multi-speaker dialogue) in Google AI Studio.
Saves a ready-to-use WAV/audio file into ~/Downloads/google-ai-studio (or output_path).
Args: text: The script or multi-speaker dialogue to speak (e.g. "Host: Welcome!\nGuest: Thanks!"). voice: Voice name (e.g. 'Kore', 'Puck', 'Charon', 'Zephyr', 'Aoede', 'Fenrir'). Default 'Kore'. style_instructions: Optional tone/pacing/accent direction (e.g. 'Warm Egyptian Arabic narrator, confident commercial pace'). multi_speaker: Optional dict mapping speaker names to voice names (e.g. {"Host": "Kore", "Guest": "Puck"}). model: Optional TTS model name (API mode default: 'gemini-3.8-flash-tts'). output_path: Optional local file path for the saved WAV. use_browser: True (default) drives aistudio.google.com/generate-speech in Chrome; False uses Gemini TTS API.
Inputs: text (required), model, voice, output_path, +3 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Use AI models for chat, image, and video generation from Claude Code and other MCP hosts.
One MCP endpoint for Claude, GPT & Gemini: 100+ tools + no-code connectors + agent workers.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Chat, image, video, and audio models from many vendors behind one remote MCP server and one key.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceBridges Google's Gemini CLI with MCP-compatible clients and integrates OpenRouter API for access to 400+ AI models. Provides 33 specialized tools enabling multi-AI workflows, collaborations, and debates between Claude, Gemini, and other LLMs.141-
- AlicenseNot gradedqualityDmaintenanceA remote MCP connector deployed as a Cloudflare Worker that gives Claude access to Google Gemini models, enabling image generation/editing, model auditing, and large context digesting.1MIT
- FlicenseNot gradedqualityDmaintenanceMCP server that connects Claude Desktop to Google Gemini, enabling multimodal analysis with file attachments (video, image, audio, PDF).-
- AlicenseNot gradedqualityDmaintenanceMCP server that enables Claude Code to interact with Google's Gemini API for code analysis, chat, and summarization tasks.285 npmMIT