- Google AI Studio MCP Server
Google AI Studio MCP Server
Available Tools generate_content Generates content using Gemini with comprehensive support for files, conversation history, and system prompts. Supports various file types including images, PDFs, Office documents, and text files.
Parameters:
user_prompt (string, required): User prompt for generation system_prompt (string, optional): System prompt to guide AI behavior files (array, optional): Array of files to include in generation Each file object must have either path or content path (string): Path to file content (string): Base64 encoded file content type (string, optional): MIME type (auto-detected from file extension) model (string, optional): Gemini model to use (default: gemini-2.5-flash) temperature (number, optional): Temperature for generation (0-2, default: 0.2). Lower values produce more focused responses, higher values more creative ones Supported file types (Gemini 2.5 models):
Images: JPG, JPEG, PNG, GIF, WebP, SVG, BMP, TIFF Video: MP4, AVI, MOV, WEBM, FLV, MPG, WMV (up to 10 files per request) Audio: MP3, WAV, AIFF, AAC, OGG, FLAC (up to 15MB per file) Documents: PDF (treated as images, one page = one image) Text: TXT, MD, JSON, XML, CSV, HTML File limitations:
Maximum file size: 15MB per audio/video/document file Maximum total request size: 20MB (2GB when using Cloud Storage) Video files: Up to 10 per request PDF files follow image pricing (one page = one image)
Server Config
{
"mcpServers": {
"aistudio": {
"command": "npx",
"args": [
"-y",
"aistudio-mcp-server"
],
"env": {
"GEMINI_API_KEY": "your_api_key_here",
"GEMINI_MODEL": "gemini-2.5-flash",
"GEMINI_TIMEOUT": "600000",
"GEMINI_MAX_OUTPUT_TOKENS": "16384",
"GEMINI_MAX_FILES": "10",
"GEMINI_MAX_TOTAL_FILE_SIZE": "50",
"GEMINI_TEMPERATURE": "0.2"
}
}
}
}