Feedback

Gemini CLI MCP Server

@jamubc Claim

Basic information

Runtime
TypeScript
Version
1.0.0
Category
License
NOASSERTION
Transports
stdio
Author
jamubc
Submitted by
Community
Quality
40
Stars
2K

About Gemini CLI MCP Server

Integrate with Gemini CLI for large-scale file analysis, secure code execution, and advanced context control using Google's powerful tools.

Gemini CLI is a MCP server in the Analytics Data category listed in the AddMCP.net directory, published by jamubc. It exposes 6 tools, including ask-gemini, ping, Help, brainstorm and more. Supported transport: stdio. Runtime: TypeScript. The repository has 2,039 GitHub stars. Source code is hosted on github.com. Related topics: ai, analytics-data, claude, cli, codebase-analysis.

Setup

{
    "mcpServers": {
        "gemini-cli": {
            "command": "npx",
            "args": [
                "-y",
                "gemini-mcp-tool"
            ]
        }
    }
}

Gemini CLI MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "gemini-cli": {
            "command": "npx",
            "args": [
                "-y",
                "gemini-mcp-tool"
            ]
        }
    }
}

Gemini CLI MCP Server tools

  • ask-gemini — model selection [-m], sandbox [-s], and changeMode:boolean for providing edits
  • ping — Echo
  • Help — receive help information
  • brainstorm — Generate novel ideas with dynamic context gathering. --> Creative frameworks (SCAMPER, Design Thinking, etc.), domain context integration, idea clustering, feasibility analysis, and iterative refinement.
  • fetch-chunk — Retrieves cached chunks from a changeMode response. Use this to get subsequent chunks after receiving a partial changeMode response.
  • timeout-test — Test timeout prevention by running for a specified duration

Overview

What is Gemini CLI?

Gemini Rust Suite is a collection of Rust crates for interacting with Google Gemini models. It enables tool usage via the Model Context Protocol (MCP), persistent semantic memory using a vector database, and a command-line interface for Linux terminals.

How to use Gemini CLI?

Install by running the install.sh script from the repository root, which builds the binaries and configures a gemini shell wrapper. Configure your API key and settings in ~/.config/gemini-suite/config.toml. Use the gemini command for single prompts, interactive chat (-i), task loops (-t), or tool‑augmented queries.

Key features of Gemini CLI

  • Asynchronous client for the Gemini API with type‑safe Rust structs
  • MCP host that discovers, launches, and communicates with external tool servers
  • Persistent semantic memory store powered by LanceDB
  • Automatic prompt enhancement with relevant memories
  • Interactive CLI with single‑shot, chat, and task‑loop modes
  • Built‑in MCP servers for filesystem, command execution, and memory storage
  • Chat history preserved across CLI commands via a shell wrapper function

Use cases of Gemini CLI

  • Ask Gemini questions and receive formatted, markdown‑rendered answers
  • Engage in ongoing, context‑aware conversations using interactive chat mode
  • Automate multi‑step tasks by assigning them to Gemini via the task‑loop mode
  • Extend Gemini’s capabilities by connecting to external MCP tools (e.g., file reading, command execution)
  • Maintain long‑term memory across sessions, allowing Gemini to recall past conversations

Frequently asked questions

1 What are the prerequisites?

You need the Rust toolchain, a Gemini API key from Google AI Studio, and a supported shell (Bash or Zsh recommended for the gemini wrapper).

2 How do I configure my API key?

The API key is read from ~/.config/gemini-suite/config.toml, then from the GEMINI_API_KEY environment variable, and finally from a .env file in the current working directory.

3 How does chat history work across separate commands?

The gemini wrapper function (added to your shell config) captures a session ID from the binary’s output and exports it. This allows subsequent commands to continue the same conversation. Without the wrapper, history persists only within a single interactive (-i) session.

4 What built‑in MCP servers are included?

The suite includes built‑in servers for filesystem operations (filesystem), command execution (command), and memory storage/embedding (memory_store).

5 How do I manage the MCP host daemon?

Zsh users can use the mcpd helper function (installed by install.sh) with commands like mcpd start, mcpd stop, mcpd status, and mcpd logs.

Videos

Tutorials, guides, and showcases related to Gemini CLI MCP Server. The player loads when you press play.

Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬