Skip to main content
Glama

Gemini Flash Image MCP Server

by brunoqgalvao
install.shโ€ข1.63 kB
#!/bin/bash # Gemini Image MCP Server Installation Script set -e echo "๐Ÿš€ Installing Gemini Image MCP Server..." echo "" # Check for Node.js if ! command -v node &> /dev/null; then echo "โŒ Node.js is not installed. Please install Node.js from https://nodejs.org/" exit 1 fi echo "โœ“ Node.js found: $(node --version)" # Install dependencies echo "" echo "๐Ÿ“ฆ Installing Node.js dependencies..." npm install echo "" echo "โœ“ Dependencies installed successfully" # Check for .env file if [ ! -f .env ]; then echo "" echo "โš ๏ธ No .env file found. Creating from template..." cp .env.example .env echo "" echo "๐Ÿ“ Please edit .env and add your GEMINI_API_KEY" echo " Get your API key from: https://aistudio.google.com/apikey" echo "" read -p "Press enter to open .env in your default editor (or Ctrl+C to skip)..." ${EDITOR:-nano} .env fi # Make scripts executable chmod +x index.js chmod +x test-mcp.js echo "" echo "๐Ÿงช Running validation test..." node test-mcp.js echo "" echo "โœ… Installation complete!" echo "" echo "๐Ÿ“‹ Next steps:" echo "" echo "1. Make sure your GEMINI_API_KEY is set in the .env file" echo "" echo "2. Add this to your Claude Code MCP settings:" echo "" echo "{" echo " \"mcpServers\": {" echo " \"gemini-image\": {" echo " \"command\": \"node\"," echo " \"args\": [\"$(pwd)/index.js\"]," echo " \"env\": {" echo " \"GEMINI_API_KEY\": \"your_api_key_here\"" echo " }" echo " }" echo " }" echo "}" echo "" echo "3. Restart Claude Code" echo "" echo "4. You can now use the 'generate_image' tool!" echo ""

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/brunoqgalvao/gemini-image-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server