gemini-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GEMINI_API_KEY | Yes | Your Google Gemini API key | |
| GEMINI_INPUT_DIR | No | Directory to resolve bare input-image filenames against | |
| GEMINI_OUTPUT_DIR | No | Default directory for generated images | current working directory |
| GEMINI_TIMEOUT_MS | No | Upstream request timeout in ms | 60000 |
| GEMINI_IMAGE_MODEL | No | Override the default image model | gemini-3.1-flash-image |
| GEMINI_HEARTBEAT_MS | No | Progress-notification cadence in ms | 10000 |
| GEMINI_CHAIN_RETRY_MS | No | How long to wait out interactions-store lag when a chained call 404s | 120000 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| gemini_list_modelsA | List the Gemini image-generation models available to your API key (Nano Banana / Nano Banana Pro family), and the current default model. |
| gemini_image_generateA | Generate image(s) from a text prompt with a Gemini image model (Nano Banana / Nano Banana Pro). If the result will likely be refined iteratively, prefer gemini_interact (multi-turn) as the entry point. |
| gemini_image_editA | Edit or compose images: provide one or more input images (paths or base64), plus a text instruction. For a SERIES of successive edits to the same image, prefer gemini_interact (multi-turn) — it keeps edit context and avoids re-processing the full image each round; use gemini_image_edit for one-off edits or composing multiple distinct inputs. Gemini over-preserves the input; there is no edit-strength control — for large structural changes, reroll with a different |
| gemini_image_setA | Generate a consistent SET of images: a master image from master_prompt, then one image per scene that references the master so the subject/style stays consistent. Provide |
| gemini_interactA | Preferred tool for iterative or multi-step refinement of a single image — multi-turn generation/editing via Gemini's Interactions API. To refine, capture the returned interaction |
| gemini_video_generateA | Generate a short video via the Gemini omni model (preview): text→video, image→video / reference→video (supply reference image[s]), or edit a prior video (task: "edit" + previous_interaction_id / continue_last). Output is written to disk as MP4 (video has no inline MCP block). Video runs long — use |
| gemini_music_generateA | Generate music from a text prompt (mood, genre, instruments, structure, or lyrics inline) via a Lyria model (preview): lyria-3-clip-preview (~30s clips, default) or lyria-3-pro-preview (longer, WAV-capable). Written to disk as MP3/WAV (or returned inline). Runs long — use |
| gemini_get_resultA | Retrieve an async generation started with |
| gemini_upload_fileA | Upload an image (or video/audio) to the Gemini Files API ONCE and get back a reusable |
| gemini_list_filesA | List the files currently uploaded to the Gemini Files API under this API key, with their |
| gemini_delete_fileA | Delete an uploaded file from the Gemini Files API before its ~48h expiry. Any tool call still referencing it will then fail with a generic 404, so delete only references you are finished with. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/chrischall/gemini-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server