Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GEMINI_API_KEYNoAPI key used for the official Gemini API mode (use_browser=False), calling the google-genai SDK directly.
AISTUDIO_MEDIA_DIRNoDirectory where generated media files are saved and from which aistudio_show_latest retrieves the most recent file.
AISTUDIO_SHOW_BROWSERNoControls whether the browser window is shown during browser sign-in mode.
AISTUDIO_CHROME_PROFILENoPath to the dedicated persistent local Chrome profile used in browser sign-in mode (default: ~/.google-ai-studio-mcp/chrome-profile).

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Google AI Studio MCP Server (aistudio.google.com). Supports BOTH browser sign-in mode (default, using the user's logged-in Google account in a dedicated Chrome profile at ~/.google-ai-studio-mcp/chrome-profile with zero API key required) AND optional Gemini API mode (use_browser=False, using GEMINI_API_KEY). If the user has not signed in to the AI Studio browser profile yet, call aistudio_browser_login once.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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).

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.

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.

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.

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.

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.

aistudio_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.

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.

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).

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'.

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').

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).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.8/5.0

Scored across 12 tools

Disambiguation4/5

Most tools target distinct modalities and actions (transcribe, tts, generate_image, generate_video, generate_music, list_models), so selection is usually clear. However, aistudio_prompt and aistudio_analyze_media both accept a prompt plus optional local files and can be confused for multimodal Q&A, and aistudio_tts vs aistudio_generate_music both produce audio. Descriptions help but the prompt/analyze boundary remains blurry.

Naming Consistency4/5

All 12 tools share the `aistudio_` prefix and snake_case, which is strongly consistent. A few names drop the verb form (aistudio_prompt, aistudio_tts, aistudio_transcribe) and one inverts order (aistudio_browser_login), but the pattern is still highly readable and predictable.

Tool Count5/5

12 tools is well within the ideal 3-15 range for a multimodal generation server. Each tool covers a distinct capability (login, generation variants, async job polling, model discovery, output retrieval, UI diagnostics) with no filler.

Completeness4/5

The surface covers the full generation lifecycle across modalities plus auth, model discovery, job polling, and output retrieval. Minor gaps: no cancel/abort for long-running video or music jobs, no list-jobs tool to recover a lost job_id (only aistudio_check_job by id), and no cleanup/delete of generated artifacts.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues