Skip to main content
Glama
README.md
# Google AI Studio MCP Server (`google-ai-studio-mcp`)

[![google-ai-studio-mcp MCP server](https://glama.ai/mcp/servers/bostudioserv-alt/google-ai-studio-mcp/badges/score.svg)](https://glama.ai/mcp/servers/bostudioserv-alt/google-ai-studio-mcp) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](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

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