gemini mcp for Cursor
io.github.chrischall/gemini-mcp
Generate and edit images with Google Gemini (Nano Banana / Nano Banana Pro) image models.
client:Cursor
transport:stdio
runtime:npm
Install gemini mcp in Cursor
~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json
{
"mcpServers": {
"gemini-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@chrischall/gemini-mcp"
],
"env": {
"GEMINI_API_KEY": "<GEMINI_API_KEY>",
"GEMINI_IMAGE_MODEL": "<GEMINI_IMAGE_MODEL>",
"GEMINI_OUTPUT_DIR": "<GEMINI_OUTPUT_DIR>",
"GEMINI_INPUT_DIR": "<GEMINI_INPUT_DIR>",
"GEMINI_UPLOAD_DIR": "<GEMINI_UPLOAD_DIR>",
"GEMINI_REFERENCE_DIR": "<GEMINI_REFERENCE_DIR>",
"GEMINI_TIMEOUT_MS": "<GEMINI_TIMEOUT_MS>",
"GEMINI_HEARTBEAT_MS": "<GEMINI_HEARTBEAT_MS>",
"GEMINI_CHAIN_RETRY_MS": "<GEMINI_CHAIN_RETRY_MS>",
"GEMINI_DEBUG": "<GEMINI_DEBUG>",
"GEMINI_RATE_CARD": "<GEMINI_RATE_CARD>"
}
}
}
}
Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs