Skip to main content
Glama

AI Studio MCP Server

by eternnoir

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GEMINI_MODELNoGemini model to usegemini-2.5-flash
GEMINI_API_KEYYesYour Google AI Studio API key
GEMINI_TIMEOUTNoRequest timeout in milliseconds (default: 300000 = 5 minutes)300000
GEMINI_MAX_FILESNoMaximum number of files per request10
GEMINI_TEMPERATURENoTemperature for generation (0-2). Lower values produce more focused responses, higher values more creative ones0.2
GEMINI_MAX_OUTPUT_TOKENSNoMaximum output tokens8192
GEMINI_MAX_TOTAL_FILE_SIZENoMaximum total file size in MB50

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
generate_content

Generate content using Gemini with optional file inputs, code execution, and Google search. Supports multiple files: images (JPG, PNG, GIF, WebP, SVG, BMP, TIFF), video (MP4, AVI, MOV, WebM, FLV, MPG, WMV), audio (MP3, WAV, AIFF, AAC, OGG, FLAC), documents (PDF), and text files (TXT, MD, JSON, XML, CSV, HTML). MIME type is auto-detected from file extension.

Example usage:

{ "user_prompt": "Analyze this video", "files": [ { "path": "/path/to/video.mp4" } ] }

PDF to Markdown conversion:

{ "user_prompt": "Convert this PDF to well-formatted Markdown, preserving structure and formatting", "files": [ {"path": "/document.pdf"} ] }

With Google Search:

{ "user_prompt": "What are the latest AI breakthroughs in 2024?", "enable_google_search": true }

With Code Execution:

{ "user_prompt": "Write and run a Python script to calculate prime numbers up to 100", "enable_code_execution": true }

Combining features with thinking mode:

{ "user_prompt": "Research quantum computing and create a Python simulation", "model": "gemini-2.5-pro", "enable_google_search": true, "enable_code_execution": true, "thinking_budget": -1 }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/eternnoir/aistudio-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server