Google AI Studio MCP Server
# Google AI Studio MCP Server (`google-ai-studio-mcp`)
[](https://glama.ai/mcp/servers/bostudioserv-alt/google-ai-studio-mcp) [](LICENSE)
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 official `google-genai` SDK directly with `GEMINI_API_KEY`.
- **Browser Sign-In Mode (Default)**: Uses a dedicated persistent local Chrome profile at `~/.google-ai-studio-mcp/chrome-profile` (`aistudio_browser_login` once).
## Tools (12)
| Tool | What it does |
| :--- | :--- |
| `aistudio_browser_login` | Opens `aistudio.google.com` in Chrome once and saves your session locally. |
| `aistudio_prompt` | Text & multimodal chat with system instructions, file attachments, and Google Search grounding. |
| `aistudio_tts` | Single-speaker or multi-speaker Arabic/English voiceover generation (WAV). |
| `aistudio_generate_image` | Generates and edits high-resolution images and returns them inline. |
| `aistudio_generate_video` | Starts an async Veo/video generation job and returns `job_id`. |
| `aistudio_generate_music` | Starts an async music generation job in AI Studio Media Studio. |
| `aistudio_analyze_media` | Analyzes local video, audio, PDFs, images, or YouTube URLs. |
| `aistudio_transcribe` | Transcribes audio/video into `.srt`, `.md`, `.txt`, or `.json` with speaker labels & timestamps. |
| `aistudio_check_job` | Polls async video/music generation jobs and returns the finished file path. |
| `aistudio_show_latest` | Retrieves the most recently saved media file from `AISTUDIO_MEDIA_DIR`. |
| `aistudio_list_models` | Lists available Gemini / Imagen / Veo / TTS models via `GEMINI_API_KEY`. |
| `aistudio_inspect_ui` | Captures a diagnostic screenshot and visible controls summary. |
## Install
### Claude Code
```bash
claude mcp add google-ai-studio -- uvx --from git+https://github.com/bostudioserv-alt/google-ai-studio-mcp google-ai-studio-mcp
```
### Claude Desktop
```json
{
"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`](.env.example): `GEMINI_API_KEY`, `AISTUDIO_MEDIA_DIR`, `AISTUDIO_CHROME_PROFILE`, `AISTUDIO_SHOW_BROWSER`.
## License
MIT
TDQS
Scored across 12 tools
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.
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.
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.
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.