Integrations
Enables configuration of the server through environment variables loaded from a .env file, specifically for storing the Google API key required for authentication.
Provides image generation capabilities using Google's Gemini 2 API, allowing users to generate images based on text prompts with customizable parameters such as number of samples and aspect ratio.
Used for package management, installation of dependencies, and running the server through npm commands.
Gemini Image Generation MCP Server
This is a Model Context Protocol (MCP) server that provides image generation capabilities using Google's Gemini 2 API.
Quick Start
- Get Gemini API Key
- Visit Google AI Studio
- Create a new API key
- Configure Claude Desktop
- Locate your config file:Copy
- Add Gemini configuration:Copy
- Locate your config file:
- Restart Claude Desktop
Setup
- Install dependencies:
- Set up your environment variables:
Create a
.env
file in the root directory and add your Google API key:
Usage
Run the server:
To test
Available Tools
generateImage
Generates images using Gemini 2's experimental image generation API.
Parameters:
prompt
(string, required): The description of the image you want to generatenumSamples
(number, optional, default: 4): Number of images to generateaspectRatio
(string, optional, default: '1:1'): Aspect ratio of the generated imagespersonGeneration
(string, optional, default: 'ALLOW_ADULT'): Person generation settings
Example MCP request:
Notes
- This server uses the experimental image generation feature of Gemini 2
- Make sure you have appropriate access and API keys from Google
- The server communicates using the Model Context Protocol over stdio
You must be authenticated.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
A Model Context Protocol server that provides image generation capabilities using Google's Gemini 2 API, allowing users to generate multiple images with customizable parameters like prompts, aspect ratios, and person generation settings.
Related Resources
Related MCP Servers
- AsecurityFlicenseAqualityA Model Context Protocol server that provides image generation capabilities using the Ideogram API, allowing users to create images from text prompts with customizable parameters.Last updated -113JavaScript
- AsecurityFlicenseAqualityA Model Context Protocol server that provides an image generation tool using Templated.io, allowing users to create customized images based on templates with text and image layers.Last updated -TypeScript
- AsecurityAlicenseAqualityA Model Context Protocol server that enables generation of high-quality images using the Flux.1 Schnell model via Together AI, allowing users to create images from text prompts with customizable dimensions.Last updated -18PythonMIT License
- -securityAlicense-qualityA server that provides AI-powered image generation, modification, and processing capabilities through the Model Context Protocol, leveraging Google Gemini models and other image services.Last updated -6PythonMIT License