Skip to main content
Glama
rlaksana

mcp-cli-gemini

by rlaksana

MCP CLI Gemini

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

Related MCP server: Gemini CLI MCP/OpenAI Bridge

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

F
license - not found
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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
    -
    quality
    D
    maintenance
    An MCP server that wraps the Gemini CLI to provide tools for executing prompts, managing chat sessions, and accessing CLI extensions. It supports both local stdio and remote SSE transports for flexible integration with MCP clients.
    Last updated
    1
  • A
    license
    -
    quality
    D
    maintenance
    Exposes the local Gemini CLI as an MCP stdio server, providing tools for prompting, web search, file operations, and MCP management, enabling AI clients like Codex CLI and Claude Code to interact with Gemini.
    Last updated
    7
    MIT

View all related MCP servers

Related MCP Connectors

  • MCP server exposing the Backtest360 engine API as tools for AI agents.

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

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

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