Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Cli Gemini

FreeNot checked

Wraps the Gemini CLI as an MCP server, enabling AI tools to perform Gemini queries, interactive sessions, and extension management via a unified tool.

GitHubEmbed

About

Wraps the Gemini CLI as an MCP server, enabling AI tools to perform Gemini queries, interactive sessions, and extension management via a unified tool.

README

MCP server that wraps Gemini CLI for use with other AI tools via the Model Context Protocol.

Features

Single unified gemini tool that supports:

  • One-shot queries to Gemini CLI
  • Interactive mode session commands
  • Extension management

Prerequisites

Installation

npm install
npm run build

Usage

Add to Claude Desktop

Edit your Claude Desktop config file:

Windows: %APPDATA%\Claude\claude_desktop_config.json macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Add the server:

{
  "mcpServers": {
    "gemini-cli": {
      "command": "node",
      "args": ["D:\\WORKSPACE\\tools-node\\mcp-cli-gemini\\dist\\index.js"]
    }
  }
}

Add to Other MCP Clients

Use stdio transport with:

node dist/index.js

Available Tools

gemini

Unified tool for all Gemini CLI operations.

Parameters:

  • query (required): Query to send to Gemini CLI
  • model (optional): Model to use (e.g., "gemini-pro", "gemini-1.5-flash")
  • sandbox (optional): Run in sandbox mode for code execution
  • yolo (optional): Auto-approve all actions
  • interactive (optional): Run in interactive mode (returns command for manual execution)
  • extensions (optional): Extension command: "list" or "info:extensionName"

Examples:

Basic query:

{
  "query": "Explain how async/await works in JavaScript",
  "model": "gemini-1.5-flash"
}

Interactive mode:

{
  "query": "Let's discuss design patterns",
  "interactive": true
}

List extensions:

{
  "query": "",
  "extensions": "list"
}

Get extension info:

{
  "query": "",
  "extensions": "info:extension-name"
}

Development

# Install dependencies
npm install

# Run in development mode
npm run dev

# Build
npm run build

# Watch mode
npm run watch

# Lint
npm run lint

# Lint and fix
npm run lint:fix

License

MIT

from github.com/rlaksana/mcp-cli-gemini

Installing Cli Gemini

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/rlaksana/mcp-cli-gemini

FAQ

Is Cli Gemini MCP free?

Yes, Cli Gemini MCP is free — one-click install via Unyly at no cost.

Does Cli Gemini need an API key?

No, Cli Gemini runs without API keys or environment variables.

Is Cli Gemini hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Cli Gemini in Claude Desktop, Claude Code or Cursor?

Open Cli Gemini on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Cli Gemini with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All ai MCPs