Back to Home
jamubc icon

gemini-mcp-tool

Verified Safe

by jamubc

Overview

A Model Context Protocol (MCP) server that enables AI assistants to interact with the Google Gemini CLI for comprehensive code and file analysis, structured edit suggestions, and creative brainstorming.

Installation

Run Command
npx -y gemini-mcp-tool

Environment Variables

  • GEMINI_MODEL
  • DEBUG
  • GOOGLE_GENERATIVE_AI_API_KEY

Security Notes

The server executes external commands via `child_process.spawn`. It correctly sets `shell: false` in `commandExecutor.ts`, significantly mitigating shell injection risks by treating arguments as distinct elements rather than a single shell command string. User-provided prompts are handled with care, including wrapping potentially problematic characters (like '@') in quotes before passing them to the Gemini CLI. No direct `eval` calls or obfuscation were found. There are no hardcoded secrets; API keys are expected to be configured with the Google Gemini CLI itself. The explicit 'sandbox' mode leverages Gemini's built-in safety features. Logging of command executions is a good practice for auditing. The primary security considerations shift to the underlying Gemini CLI and the permissions it operates with.

Similar Servers

Stats

Interest Score100
Security Score8
Cost ClassHigh
Avg Tokens500000
Stars1661
Forks133
Last Update2025-11-25

Tags

MCPGeminiAI AssistantCode AnalysisLarge Language ModelDeveloper Tool