Cli Gemini
FreeNot checkedWraps the Gemini CLI as an MCP server, enabling AI tools to perform Gemini queries, interactive sessions, and extension management via a unified tool.
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
- Gemini CLI installed and configured
- Node.js 18+
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 CLImodel(optional): Model to use (e.g., "gemini-pro", "gemini-1.5-flash")sandbox(optional): Run in sandbox mode for code executionyolo(optional): Auto-approve all actionsinteractive(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
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-geminiFAQ
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
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzCompare 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
