Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 80
  • 0 stars
  • 621 a week
  • MIT
  • Updated

Install gemini-mcp

Built from the published package, never by AI.

claude mcp add gemini-mcp -- npx -y @chrischall/gemini-mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install gemini-mcp in Claude Code

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
SettingNeededWhat it is
GEMINI_API_KEYEnvironment variable, secretOptionalYour Google Gemini API key (aistudio.google.com/apikey)
GEMINI_IMAGE_MODELEnvironment variableOptionalOverride the default image model (default: gemini-nano-banana-2.1)
GEMINI_OUTPUT_DIREnvironment variableOptionalDefault directory for generated images (default: ~/Downloads/gemini-mcp). When set, a per-call output_dir must be inside it.
GEMINI_INPUT_DIREnvironment variableOptionalDirectory to resolve bare input-image filenames against
GEMINI_UPLOAD_DIREnvironment variableOptionalRestrict local-file uploads to the Gemini Files API to these directories (path.delimiter-separated; unset = unrestricted)
GEMINI_REFERENCE_DIREnvironment variableOptionalRestrict 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_TIMEOUT_MSEnvironment variableOptionalUpstream request timeout in ms (default: 60000, or 120000 for image_size: "4K"); each generation tool also takes a per-call timeout_ms
GEMINI_HEARTBEAT_MSEnvironment variableOptionalProgress-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_CHAIN_RETRY_MSEnvironment variableOptionalHow long to wait out interactions-store lag when a chained call 404s (default: 120000; 0 disables retrying)
GEMINI_DEBUGEnvironment variableOptionalWhen set, emit heartbeat diagnostics to stderr. Off by default.
GEMINI_RATE_CARDEnvironment variableOptionalOverride/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

A

No 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 →

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.

gemini-mcp Install

Add to stack

Loading.