Generate images using Google's Gemini API.
This is a Model Context Protocol (MCP) server that provides image generation capabilities using Google's Gemini 2 API.
Get Gemini API Key
Configure Claude Desktop
Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"gemini-imagen": {
"command": "npx",
"args": ["-y", "github:sanxfxteam/gemini-mcp-server"],
"env": {
"GEMINI_API_KEY": "your_api_key_here"
}
}
}
}
Restart Claude Desktop
npm install
.env
file in the root directory and add your Google API key:GEMINI_API_KEY=your_api_key_here
Run the server:
npm start
To test
npx @modelcontextprotocol/inspector npm run start
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 settingsExample MCP request:
{
"tool": "generateImage",
"params": {
"prompt": "A serene mountain landscape at sunset",
"numSamples": 2,
"aspectRatio": "16:9"
}
}
Interact with various build systems including Gradle, Maven, NPM/Yarn, Cargo, Python, Makefile, and CMake.
Execute terminal commands for malware analysis. Requires Node.js 18 or higher.
Provides sarcastic and cynical code reviews from the perspective of a grumpy senior developer.
Generates AI agent tools from Postman collections and requests using the Postman API.
Remote, no-auth MCP server providing AI-powered codebase context and answers
MCP Server that exposes Creatify AI API capabilities for AI video generation, including avatar videos, URL-to-video conversion, text-to-speech, and AI-powered editing tools.
Predict anything with Chronulus AI forecasting and prediction agents.
A simple note storage system with tools for adding notes and generating scripts from them.
Manage Azure DevOps projects, work items, builds, and releases.
An example of a remote MCP server deployable on Cloudflare Workers without authentication.