Back to Home
LanceVCS icon

gemini-mcp

Verified Safe

by LanceVCS

Overview

Provides multi-turn conversational support for the Gemini CLI, allowing a client application (like Claude Code) to maintain context across multiple interactions with Gemini.

Installation

Run Command
node index.js

Environment Variables

  • GOOGLE_API_KEY

Security Notes

The server spawns the 'gemini' CLI process using `child_process.spawn`. Critical security mitigations include: 1) Explicit whitelisting of 'SAFE_TOOLS' which notably *excludes* dangerous commands like `run_shell_command`, `browser_run_code`, `browser_evaluate`, etc. 2) The `gemini` CLI is run with the `--sandbox` flag, which restricts file system access. 3) User prompts are passed as arguments to the `gemini` CLI, preventing direct shell injection by using an array of arguments rather than a single concatenated string. No 'eval' or direct arbitrary code execution is present within the MCP server's logic itself. The primary remaining risk lies with potential vulnerabilities within the Gemini CLI itself, particularly how it processes input when run with the specified arguments and sandbox restrictions.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens750
Stars0
Forks0
Last Update2025-12-17

Tags

GeminiCLIMulti-turn conversationMCP ServerNode.js