gemini-mcp
MCP server by chrischall Community
Generates and edits images, short videos and music with Google Gemini models for Claude. Output is saved to disk by default or returned inline as base64. Requires a Gemini API key.
Install gemini-mcp
Built from the published package, never by AI.
claude mcp add gemini-mcp -- npx -y @chrischall/gemini-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"gemini-mcp": {
"args": [
"-y",
"@chrischall/gemini-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"gemini-mcp": {
"args": [
"-y",
"@chrischall/gemini-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"gemini-mcp": {
"args": [
"-y",
"@chrischall/gemini-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add gemini-mcp -- npx -y @chrischall/gemini-mcp{
"mcpServers": {
"gemini-mcp": {
"args": [
"-y",
"@chrischall/gemini-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add gemini-mcp npx -y @chrischall/gemini-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the gemini-mcp block.
About
gemini-mcp is an MCP server that gives Claude access to Google Gemini media generation over stdio. It exposes thirteen tools to list models, generate, edit and compose images, create a consistent set of images from a master prompt, and refine images across turns with the Interactions API. It also covers video generation with the omni model, music generation with Lyria, and Files API upload, list and delete for reusable image references.
The server calls the Gemini v1beta API using the Nano Banana and Nano Banana Pro image models. Output is written to disk by default with the path returned, or returned inline as base64. Long generations can run asynchronously and be polled with gemini_get_result. Sending local files to Google asks for confirmation first. The README says the project is developed and maintained by AI (Claude Code).
Written from the project's README and checked against it.
Tools it gives your assistant
gemini_list_modelsLists available Gemini image models and the current default.gemini_image_generateGenerates image(s) from a text prompt.gemini_image_editMakes one-off edits or multi-image composition with a text instruction.gemini_image_setGenerates a master image plus N consistent images referencing it.gemini_interactRuns multi-turn generation and editing via the Interactions API.gemini_video_generateGenerates a short video from text, an image, or two stills, written as MP4.gemini_music_generateGenerates music from a text prompt via a Lyria model, written as MP3.gemini_get_resultFetches an async generation by its job_id until it is done.gemini_token_usageShows token usage and an estimated USD cost for the session so far.gemini_upload_fileUploads an image, video or audio file to the Gemini Files API for reuse.
What you need
- Google Gemini API key from aistudio.google.com/apikey
| Setting | Needed | What it is |
|---|---|---|
GEMINI_Environment variable, secret | Optional | Your Google Gemini API key (aistudio.google.com/apikey) |
GEMINI_Environment variable | Optional | Override the default image model (default: gemini-nano-banana-2.1) |
GEMINI_Environment variable | Optional | Default directory for generated images (default: ~/Downloads/gemini-mcp). When set, a per-call output_dir must be inside it. |
GEMINI_Environment variable | Optional | Directory to resolve bare input-image filenames against |
GEMINI_Environment variable | Optional | Restrict local-file uploads to the Gemini Files API to these directories (path.delimiter-separated; unset = unrestricted) |
GEMINI_Environment variable | Optional | Restrict local reference images (images / image paths sent to Gemini) to these directories (path.delimiter-separated), plus GEMINI_OUTPUT_DIR. Unset: GEMINI_UPLOAD_DIR applies; if that is unset too, unrestricted locally, and $MCP_DATA_DIR/u |
GEMINI_Environment variable | Optional | Upstream request timeout in ms (default: 60000, or 120000 for image_size: "4K"); each generation tool also takes a per-call timeout_ms |
GEMINI_Environment variable | Optional | Progress-notification cadence in ms while a generation runs (default: 10000; 0 disables) — keeps MCP hosts that reset their timeout on progress from timing out long generations |
GEMINI_Environment variable | Optional | How long to wait out interactions-store lag when a chained call 404s (default: 120000; 0 disables retrying) |
GEMINI_Environment variable | Optional | When set, emit heartbeat diagnostics to stderr. Off by default. |
GEMINI_Environment variable | Optional | Override/extend the shipped USD-per-1M-token rates used by gemini_token_usage's cost estimate, e.g. {"gemini-3-pro-image":{"input":2,"text_output":12,"image_output":120}}. Malformed JSON is ignored (a bad card must not fail generations). |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Generate four product photos on a white background using gemini_image_generate.
- Use gemini_interact to refine my logo over several turns.
- Create a 30 second music clip with gemini_music_generate in a calm style.
Good to know
- Image, video and music generation depend on the Gemini API and its models.
- 4K and Pro-model generations can outrun some MCP hosts' timeouts.
- Sending a local file to Google requires confirmation unless the client can show a prompt.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to gemini-mcp
All alternatives →Appllama gives AI assistants research on top-grossing mobile apps, plus a build bar for native-feeling Expo and React Native screens. It suits developers building mobile apps with AI assistants.
Creates, edits and exports editable designs for AI assistants through the CoDesign MCP server, built on IMG.LY's CE.SDK design engine. It suits social teams, agencies and designers who need posters, social posts, videos and print layouts.
Pascal 3D Editor lets AI agents inspect, edit, validate, and save editable 3D building scenes through an MCP server. It is aimed at architecture, engineering, construction, and operations teams. Local use needs no Pascal account.
Agent-Native Design is the Design agent in Agent-Native, an open-source TypeScript framework. It generates and refines interactive designs with agent help. The same actions serve both the agent and the UI.
Draws and edits draw.io diagrams on a live browser canvas for AI agents such as Claude Code, Cursor and VS Code. It suits people who want to draw diagrams with AI and keep editing them by hand.
Framelink MCP for Figma gives coding assistants access to your Figma files. It supplies design data so the assistant can implement designs in any framework, mainly for use with Cursor.
Compare with Appllama, codesign or Pascal 3D Editor
gemini-mcp: common questions
Where does the generated output go?
Output is written to disk by default and the path is returned. It can also be returned inline as base64.
Which Gemini models does it use?
The source names the Nano Banana and Nano Banana Pro image models, the omni video model, and the Lyria music models.
What happens if a long generation times out in the host?
The server-side generation usually completes anyway, and the image is written to the output directory. gemini_interact also writes a JSON sidecar with the interaction_id so you can resume.
How do I install gemini-mcp?
In Claude Code run claude mcp add gemini-mcp -- npx -y @chrischall/gemini-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is gemini-mcp the official server?
gemini-mcp is a community project by chrischall, not verified by a company domain.
Is gemini-mcp free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is gemini-mcp safe to use?
It scores 80 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to gemini-mcp?
Similar MCP servers: Appllama, codesign, Pascal 3D Editor, Agent-Native Design.
Does gemini-mcp work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
