# gemini [Health: Active]

**Category:** 🗣️ Conversational AI  
**Repository:** https://github.com/PavelGuzenfeld/gemini-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 1615  
**Views:** 12  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/gemini

## Description
MCP server that exposes Google Gemini as tools for Claude Code

## Tools
Capabilities this server exposes over MCP:

- **gemini_ask** — Ask Gemini a question or give it a task
- **gemini_analyze** — Send code/text for analysis with a specific instruction
- **gemini_chat** — Multi-turn conversation with full history
- **gemini_models** — List available Gemini models

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "gemini": {
    "command": "npx",
    "args": ["-y","claude-gemini-mcp"],
    "env": {
      "GEMINI_API_KEY": "",
      "GEMINI_MODEL": ""
    }
  }
}
```

**Requires environment variables:** `GEMINI_API_KEY`, `GEMINI_MODEL` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What the gemini MCP server does

The gemini MCP server connects an MCP client to Google Gemini through the Google AI API. It makes four operations available: asking Gemini to answer a question or perform a task, submitting code or text with an analysis instruction, continuing a conversation with supplied message history, and retrieving available model names.

This setup is intended for workflows where an agent benefits from another model’s response. Example uses include requesting a second opinion, reviewing code, examining large amounts of text, explaining an error, or continuing a design discussion across multiple turns. The server does not replace the host MCP client; it supplies Gemini-backed tools that the client can invoke.

## How it works

The server runs as a Node.js process and communicates with the MCP client through its configured command. It can be started from a cloned repository with `node` or launched through `npx` using the published package name. Each tool call is sent to Google Gemini, and the result is returned to the MCP client.

`gemini_ask` handles general prompts and tasks. `gemini_analyze` accepts content together with a specific instruction, which suits code review or focused text inspection. `gemini_chat` accepts a message array containing the conversation history, allowing later turns to build on earlier ones. `gemini_models` reports model names that can be used for requests.

The default model is `gemini-2.5-pro`, but every tool accepts an optional model value. The documented alternatives include `gemini-2.5-flash` and `gemini-2.0-flash`.

## Setup and configuration

A Google AI Studio API key is required. Set it as `GEMINI_API_KEY` in the MCP client’s environment configuration. `GEMINI_MODEL` changes the default model and otherwise defaults to `gemini-2.5-pro`.

For a local installation, clone the repository, enter its directory, and run `npm install`. Register the server with a client by pointing the MCP entry to `node` and the repository’s `index.js`.

Node.js 20 or newer is indicated by the project metadata. After changing the client configuration, restart the client if the tools do not appear. Network access is needed because requests are sent to `generativelanguage.googleapis.com`.

## Tools and capabilities

- Ask Gemini general questions or assign tasks with `gemini_ask`.
- Submit code or text with a focused instruction through `gemini_analyze`.
- Continue a multi-turn exchange with complete supplied history using `gemini_chat`.
- Discover usable model names with `gemini_models`.
- Select a model per call instead of relying on the configured default.
- Retry rate-limit and server-error responses with exponential backoff.

## Limitations and notes

The gemini MCP server requires a Google AI Studio API key and network connectivity to Google’s generative-language endpoint. A missing or invalid model name can prevent a request from succeeding; use `gemini_models` to inspect available names. Rate limits and server errors are retried, but the documentation does not indicate that all failures are recoverable.

The README presents Claude Code as the primary setup example, while also stating that the server can be used with any MCP client. Client-specific registration syntax may therefore vary. The project is licensed under MIT.

_Full upstream README: https://allmcps.com/mcp/gemini/readme_

