Labsco
loming logo

Gemini MCP Server

โ˜… 1

from loming

Access Google's Gemini AI through the gemini-cli command-line tool.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

Gemini MCP Server

A Model Context Protocol (MCP) server that provides AI-powered internet search capabilities through the gemini-cli tool.

Overview

This MCP server allows Claude and other AI assistants to perform real-time internet searches by interfacing with the gemini-cli command-line tool. It provides a single query tool that can search for current information and provide AI-powered analysis.

Features

  • Real-time Search: Query current internet data through AI-powered search
  • MCP Protocol: Implements the Model Context Protocol for seamless integration
  • HTTP Streaming: Uses HTTP streaming transport for efficient communication
  • TypeScript: Fully typed with TypeScript for reliability
  • Graceful Shutdown: Handles SIGINT/SIGTERM signals for clean exits

Integration

With Claude Desktop

Add to your Claude Desktop configuration:

{
  "mcpServers": {
    "gemini-search": {
      "command": "node",
      "args": ["path/to/gemini-mcp/dist/index.js"],
      "env": {
        "PORT": "13001"
      }
    }
  }
}

With Other MCP Clients

Connect to the HTTP streaming endpoint:

http://localhost:13001

Development

Scripts

  • npm run build - Compile TypeScript to JavaScript
  • npm run start - Run the compiled server
  • npm run dev - Run in development mode with ts-node

Project Structure

src/
โ”œโ”€โ”€ index.ts          # Main server implementation
โ”œโ”€โ”€ package.json      # Project configuration
โ””โ”€โ”€ dist/            # Compiled JavaScript (after build)

Dependencies

  • fastmcp: MCP server framework
  • zod: Schema validation
  • child_process: Node.js built-in for spawning processes