Allows interaction with Google's Gemini AI through the Gemini CLI tool, supporting various query options including model selection, sandbox mode, debug mode, and file context inclusion.
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.
Prerequisites
- Node.js 18+
- Google Gemini CLI tool installed and configured
- MCP-compatible client (like Claude Desktop)
Installation
- Clone this repository:
- Install dependencies:
- Build the project:
Usage
As an MCP Server
Add to your MCP client configuration (e.g., Claude Desktop):
Available Tools
gemini_query
Query Google Gemini AI with various options.
Parameters:
prompt
(required): The prompt to send to Geminimodel
(optional): Model to use (default: gemini-2.5-pro)sandbox
(optional): Run in sandbox modedebug
(optional): Enable debug modeall_files
(optional): Include all files in contextyolo
(optional): Automatically accept all actions
Example:
Development
Scripts
npm run build
- Build the TypeScript projectnpm run start
- Start the MCP servernpm run dev
- Start in development mode with auto-reloadnpm run clean
- Clean build artifacts
Project Structure
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
License
MIT License - see LICENSE file for details.
Related Projects
This server cannot be installed
A server that allows interaction with Google's Gemini AI through the Gemini CLI tool using the Model Context Protocol, providing a standardized interface for querying Gemini with various options and configurations.
Related MCP Servers
- -securityFlicense-qualityA 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.Last updated -Python
- -securityFlicense-qualityA 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.Last updated -2TypeScript
- AsecurityAlicenseAqualityA 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.Last updated -1620TypeScriptMIT License
- -securityAlicense-qualityA 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.Last updated -PythonMIT License