Skip to main content
Glama
kazuph

MCP Gemini CLI

by kazuph

MCP Gemini CLI

A Model Context Protocol (MCP) server that provides integration with Google's Gemini CLI tool.

Overview

This MCP server allows you to interact with Google's Gemini AI through the Gemini CLI tool using the Model Context Protocol. It provides a standardized interface for querying Gemini with various options and configurations.

Related MCP server: MCP Gemini API Server

Prerequisites

  • Node.js 18+

  • Google Gemini CLI tool installed and configured

  • MCP-compatible client (like Claude Desktop)

Installation

  1. Clone this repository:

git clone https://github.com/kazuph/mcp-gemini-cli.git
cd mcp-gemini-cli
  1. Install dependencies:

npm install
  1. Build the project:

npm run build

Usage

As an MCP Server

Add to your MCP client configuration (e.g., Claude Desktop):

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

Available Tools

gemini_query

Query Google Gemini AI with various options.

Parameters:

  • prompt (required): The prompt to send to Gemini

  • model (optional): Model to use (default: gemini-2.5-pro)

  • sandbox (optional): Run in sandbox mode

  • debug (optional): Enable debug mode

  • all_files (optional): Include all files in context

  • yolo (optional): Automatically accept all actions

Example:

{
  "name": "gemini_query",
  "arguments": {
    "prompt": "Explain quantum computing in simple terms",
    "model": "gemini-2.5-pro",
    "debug": false
  }
}

Development

Scripts

  • npm run build - Build the TypeScript project

  • npm run start - Start the MCP server

  • npm run dev - Start in development mode with auto-reload

  • npm run clean - Clean build artifacts

Project Structure

src/
├── index.ts          # Main MCP server implementation
├── ...
dist/                 # Compiled JavaScript output
package.json          # Project configuration
tsconfig.json         # TypeScript configuration

Contributing

  1. Fork the repository

  2. Create a feature branch

  3. Make your changes

  4. Add tests if applicable

  5. Submit a pull request

License

MIT License - see LICENSE file for details.

-
license - not tested
Not graded
quality - not tested
Not graded
maintenance - not tested

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    A server implementing the Model Context Protocol that enables AI assistants like Claude to interact with Google's Gemini API for text generation, text analysis, and chat conversations.
  • A
    license
    B
    quality
    D
    maintenance
    A server that provides access to Google Gemini AI capabilities including text generation, image analysis, YouTube video analysis, and web search functionality through the MCP protocol.
    6
    199
    4
    ISC
  • A
    license
    A
    quality
    D
    maintenance
    A dedicated server that wraps Google's Gemini AI models in a Model Context Protocol (MCP) interface, allowing other LLMs and MCP-compatible systems to access Gemini's capabilities like content generation, function calling, chat, and file handling through standardized tools.
    16
    20
    36
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that enables Claude to collaborate with Google's Gemini AI models, providing tools for question answering, code review, brainstorming, test generation, and explanations.
    MIT

View all related MCP servers

Related MCP Connectors

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

  • A Model Context Protocol server for Wix AI tools

  • MCP server for AI dialogue using various LLM models via AceDataCloud

View all MCP Connectors

Latest Blog Posts

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/kazuph/mcp-gemini-cli'

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