Aistudio MCP Server

MCP Server for Google AI Studio / Gemini API integration with file processing support

Local serverstdio

What is the Aistudio MCP Server?

MCP Server for Google AI Studio / Gemini API integration with file processing support.

What Aistudio does

A Model Context Protocol (MCP) server that integrates with Google AI Studio / Gemini API, providing content generation capabilities with support for files, conversation history, and system prompts.

Requirements

  • Node.js 20.0.0 or higher - Google AI Studio API key

Practical notes

  • Maintained by eternnoir.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
generate_content

How to install the Aistudio MCP Server

{
  "mcpServers": {
    "aistudio": {
      "command": "npx",
      "args": [
        "-y",
        "aistudio-mcp-server"
      ],
      "env": {
        "GEMINI_API_KEY": "YOUR_GEMINI_API_KEY",
        "GEMINI_MODEL": "gemini-2.5-flash",
        "GEMINI_TIMEOUT": "600000",
        "GEMINI_MAX_OUTPUT_TOKENS": "YOUR_GEMINI_MAX_OUTPUT_TOKENS",
        "GEMINI_MAX_FILES": "10",
        "GEMINI_MAX_TOTAL_FILE_SIZE": "50",
        "GEMINI_TEMPERATURE": "0.2"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • Node.js 20.0.0 or higher - Google AI Studio API key
VariableDescriptionRequired
GEMINI_API_KEYDeclared in the maintainer’s client configuration.Check documentation
GEMINI_MODELDeclared in the maintainer’s client configuration.Check documentation
GEMINI_TIMEOUTDeclared in the maintainer’s client configuration.Check documentation
GEMINI_MAX_OUTPUT_TOKENSDeclared in the maintainer’s client configuration.Check documentation
GEMINI_MAX_FILESDeclared in the maintainer’s client configuration.Check documentation
GEMINI_MAX_TOTAL_FILE_SIZEDeclared in the maintainer’s client configuration.Check documentation
GEMINI_TEMPERATUREDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use Aistudio to Prerequisites.”
  • “Use Aistudio to generate content.”
  • “Use Aistudio to Setup.”

Frequently asked questions

MCP Server for Google AI Studio / Gemini API integration with file processing support Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.