A Model Context Protocol (MCP) wrapper for Google Gemini CLI that enables AI IDEs and agents to interact with Gemini through a standardized JSON-RPC interface. This MCP tool borrows the idea from https://www.reddit.com/r/ChatGPTCoding/comments/1lm3fxq/gemini_cli_is_awesome_but_only_when_you_make/.
MCP Gemini provides a bridge between AI development tools and the Google Gemini CLI, allowing seamless integration of Gemini's large context window capabilities into various AI workflows.
- Node.js 16.0.0 or higher
- Google Gemini CLI installed and available
mcp configuration
{
"mcpServers": {
"gemini": {
"command": "npx",
"args": ["-y", "mcp-gemini"],
"env": {
"GEMINI_CLI_PATH": <YOUR_GEMINI_CLI_PATH>, //Optional, but it's better to set it.
"GEMINI_API_KEY": <YOUR_GEMINI_API_KEY> // Optional if you use oauth
}
}
}
}analyze_files- Analyze multiple files with Gemini CLIanalyze_directory- Analyze directories with Gemini CLIverify_feature- Verify feature implementation in codebaseraw_prompt- Execute raw prompts without file contextget_config/set_config- Configuration management, supporting config:geminiPathdefaultTimeoutdefaultMaxOutputKBdefaultFlags
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Ensure all tests pass
- Submit a pull request
ISC License - see LICENSE file for details.
For issues and questions: