#!/bin/bash
# One-line installer for Claude-Gemini MCP Server
set -e
# Colors
GREEN='\033[0;32m'
RED='\033[0;31m'
BLUE='\033[0;34m'
NC='\033[0m'
echo -e "${BLUE}🚀 Claude-Gemini MCP Server Installer${NC}"
echo ""
# Check requirements
if ! command -v python3 &> /dev/null; then
echo -e "${RED}❌ Python 3 is required. Please install it first.${NC}"
exit 1
fi
if ! command -v claude &> /dev/null; then
echo -e "${RED}❌ Claude Code CLI not found. Please install it first:${NC}"
echo "npm install -g @anthropic-ai/claude-code"
exit 1
fi
# Clone the repository
echo "📥 Downloading Claude-Gemini MCP Server..."
TEMP_DIR=$(mktemp -d)
cd "$TEMP_DIR"
git clone https://github.com/RaiAnsar/claude_code-gemini-mcp.git
# Get API key
echo ""
echo "🔑 Please enter your Gemini API key:"
echo " (Get one free at https://aistudio.google.com/apikey)"
read -p "API Key: " API_KEY
if [ -z "$API_KEY" ]; then
echo -e "${RED}❌ API key is required${NC}"
rm -rf "$TEMP_DIR"
exit 1
fi
# Run setup
cd claude_code-gemini-mcp
chmod +x setup.sh
./setup.sh "$API_KEY"
# Cleanup
cd ~
rm -rf "$TEMP_DIR"
echo ""
echo -e "${GREEN}✨ Installation complete!${NC}"
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/RaiAnsar/claude_code-gemini-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server