analyze_image
Analyze images using Gemini vision capabilities
Send a prompt, an image or a batch of text to a Gemini model from whatever client you already work in, with the generation parameters exposed rather than hidden.
LABSCO SUMMARY
The value is not just reaching Gemini — it is that temperature, system instruction, safety settings, JSON schema and grounding are arguments you set per call, so a structured extraction and a creative draft can come from the same server without reconfiguring anything. Two habits pay off: check list_models rather than hard-coding a name, since the model is an argument and the roster moves, and run count_tokens before pushing a large document at a long-context model.
A stdio bridge to the Google Gemini API. Six tools cover generation, vision, embeddings, token counting, model discovery and built-in help, with the model named per call.
A Gemini API key from Google AI Studio, passed as GEMINI_API_KEY in the client's env block — it is read from the environment only, never an argument. It runs over stdio as npx -y github:aliargun/mcp-server-gemini, so Node and network access are all that is needed locally. Usage is billed by Google against that key. MIT.
One command plus a key — npx -y github:aliargun/mcp-server-gemini, then supply credentials
USE CASES
Ask in JSON mode with a schema, so what comes back is an object you can use rather than prose to parse.
Turn on grounding so the model's answer is anchored to search results rather than to training data.
Pass the image by URL or as base64 with the question alongside it, and get an answer about the image itself.
Generate embeddings for the passages, sizing the batches against a token count you measured rather than guessed.
List what is available with their capabilities, then name that model on the call — reasoning-heavy work and quick responses do not need the same one.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
analyze_imageAnalyze images using Gemini vision capabilities
count_tokensCount tokens for a given text with a specific model
embed_textGenerate embeddings for text using Gemini embedding models
generate_textGenerate text using Google Gemini with advanced features
get_helpGet help and usage information for the Gemini MCP server
list_modelsList all available Gemini models and their capabilities
BEFORE YOU INSTALL
6 tools when we connected. The documentation never prints tool names. Ignore the PORT and localhost:3005 instructions in the docs folder; the server communicates over stdio.
All 4 documented setups run the server on your machine.
CONTEXT COST
Rated by the size of the 6 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx -y github:aliargun/mcp-server-gemini{
"mcpServers": {
"gemini": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"github:aliargun/mcp-server-gemini"
],
"env": {
"GEMINI_API_KEY": "<YOUR_GEMINI_API_KEY>"
}
}
}
}{
"mcpServers": {
"mcp-server-gemini": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"github:aliargun/mcp-server-gemini"
],
"env": {
"GEMINI_API_KEY": "<YOUR_GEMINI_API_KEY>"
}
}
}
}{
"mcpServers": {
"gemini": {
"command": "npx",
"args": [
"-y",
"github:aliargun/mcp-server-gemini"
],
"env": {
"GEMINI_API_KEY": "<YOUR_GEMINI_API_KEY>",
"DEBUG": "true"
}
}
}
}