Gemini

Data and AI

MCP server implementation for Google's Gemini API.

Your AI app calls the Gemini MCP server, which does the data and AI work and sends the result back to the chat.

About Gemini

Gemini is a community MCP server from aliargun, filed in our directory under data and ai. MCP server implementation for Google's Gemini API.

At a glance

Publisher
aliargun (community)
Runs
See the README for setup
Written in
JavaScript
License
MIT
GitHub stars
264

How to set up Gemini

  1. Follow the install steps in the Gemini README; it is written in JavaScript, so have that toolchain ready.
  2. Check the Gemini README for keys or settings; the registry lists none that Gemini requires.
  3. Add Gemini to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Gemini tools to confirm the connection.
  5. Run one read-only task with Gemini first, and keep your app asking before each tool call until the results look right.

Gemini compared with similar servers

  • Netbox by netboxlabs has fewer GitHub stars than Gemini (261 against 264); both are community servers, and both run locally.
  • Ruby LLM by patvice has more GitHub stars than Gemini (269 against 264); both are community servers, and both run locally.
  • macOS by CursorTouch has fewer GitHub stars than Gemini (258 against 264); both are community servers, and both run locally.

Before you connect Gemini

  • Give Gemini its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Gemini tool call until you trust what it does with them.
  • Treat text that Gemini fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Gemini on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Gemini

How marketing and sales teams put Gemini to work, by company size. Pick the size closest to yours and start Gemini on one use case.

Small business

  • A small team can use Gemini to clean and enrich a lead list or a spreadsheet in one pass, instead of hours of copy and paste.
  • Owners can ask Gemini to sort feedback, reviews or survey answers into themes and see what customers mention most.
  • Gemini runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing ops can connect Gemini to enrich and score inbound leads, so sales sees fit and intent before the first call.
  • Content and research teams can use Gemini to analyze transcripts and surveys at scale and pull the quotes worth using.
  • Start Gemini on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can run Gemini inside their own cloud and data boundary, so models and data stay where governance requires.
  • Large teams can use Gemini in batch pipelines with evaluation and logging, so AI output is measured before it reaches customers.
  • Gemini is a community server, so have security review the code and pin a version before Gemini touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Gemini README

From aliargun/mcp-server-gemini on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Gemini MCP Server

A powerful MCP (Model Context Protocol) server that brings Google's latest Gemini AI models to your favorite development environment. Access Gemini 2.5's thinking capabilities, vision analysis, embeddings, and more through a seamless integration.

🚀 Works with: Claude Desktop, Cursor, Windsurf, and any MCP-compatible client
🎯 Why use this: Get Gemini's cutting-edge AI features directly in your IDE with full parameter control
📚 Self-documenting: Built-in help system means you never need to leave your editor

Features

  • 6 Powerful Tools: Text generation, image analysis, token counting, model listing, embeddings, and self-documenting help
  • Latest Gemini Models: Support for Gemini 2.5 series with thinking capabilities
  • Advanced Features: JSON mode, Google Search grounding, system instructions, conversation memory
  • Full MCP Protocol: Standard stdio communication for seamless integration with any MCP client
  • Self-Documenting: Built-in help system - no external docs needed
  • TypeScript & ESM: Modern, type-safe implementation
Supported Models
Model Context Features Best For
gemini-2.5-pro 2M tokens Thinking, JSON, Grounding Complex reasoning
gemini-2.5-flash ⭐ 1M tokens Thinking, JSON, Grounding General use
gemini-2.5-flash-lite 1M tokens Thinking, JSON Fast responses
gemini-2.0-flash 1M tokens JSON, Grounding Standard tasks
gemini-1.5-pro 2M tokens JSON Legacy support

Quick Start

  1. Get Gemini API Key

    • Visit Google AI Studio
    • Create a new API key
    • IMPORTANT: Keep your API key secure and never commit it to version control
  2. Configure Your MCP Client

    Claude Desktop

    Config location:

    • Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • Linux: ~/.config/Claude/claude_desktop_config.json
    {
      "mcpServers": {
        "gemini": {
          "type": "stdio",
          "command": "npx",
          "args": ["-y", "github:aliargun/mcp-server-gemini"],
          "env": {
            "GEMINI_API_KEY": "your_api_key_here"
          }
        }
      }
    }
    
    Cursor

    Add to Cursor's MCP settings:

    {
      "gemini": {
        "type": "stdio",
        "command": "npx",
        "args": ["-y", "github:aliargun/mcp-server-gemini"],
        "env": {
          "GEMINI_API_KEY": "your_api_key_here"
        }
      }
    }
    
    Windsurf

    Configure in Windsurf's MCP settings following their documentation.

    Other MCP Clients

    Use the standard MCP stdio configuration:

    {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "github:aliargun/mcp-server-gemini"],
      "env": {
        "GEMINI_API_KEY": "your_api_key_here"
      }
    }
    
  3. Restart Your MCP Client

How to Use

Once configured, you can use natural language in your MCP client to access Gemini's capabilities:

Basic Commands
"Use Gemini to explain quantum computing"
"Analyze this image with Gemini" 
"List all Gemini models"
"Get help on using Gemini"
Advanced Examples
"Use Gemini 2.5 Pro with temperature 0.3 to review this code"
"Use Gemini in JSON mode to extract key points with schema {title, summary, tags}"
"Use Gemini with grounding to research the latest in quantum computing"

📖 See the complete Usage Guide for detailed examples and advanced features.

Why Gemini MCP Server?

  • Access Latest Models: Use Gemini 2.5 with thinking capabilities - Google's most advanced models
  • Full Feature Set: All Gemini API features including JSON mode, grounding, and system instructions
  • Easy Setup: One-line npx installation, no complex configuration needed
  • Production Ready: Comprehensive error handling, TypeScript types, and extensive documentation
  • Active Development: Regular updates with new Gemini features as they're released

Documentation

Local Development

# Clone repository
git clone https://github.com/aliargun/mcp-server-gemini.git
cd mcp-server-gemini

# Install dependencies
npm install

# Set up environment variables
cp .env.example .env
# Edit .env and add your GEMINI_API_KEY

# Start development server
npm run dev

Contributing

Contributions are welcome! Please see our Contributing Guide.

Common Issues

  1. Connection Issues

    • Ensure your MCP client is properly restarted
    • Check the client's logs (e.g., ~/Library/Logs/Claude/mcp-server-gemini.log for Claude Desktop on Mac)
    • Verify internet connection
    • See Troubleshooting Guide
  2. API Key Problems

    • Verify API key is correct
    • Check API key has proper permissions
    • Ensure the key is set in the environment variable
    • See Setup Guide

Security

  • API keys are handled via environment variables only
  • Never commit API keys to version control
  • The .claude/ directory is excluded from git
  • No sensitive data is logged or stored
  • Regular security updates
  • If your API key is exposed, regenerate it immediately in Google Cloud Console

License

MIT

Questions about Gemini

What is the Gemini MCP server?

MCP server implementation for Google's Gemini API. Gemini is maintained by aliargun on GitHub at aliargun/mcp-server-gemini, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Gemini MCP server?

Gemini doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (aliargun/mcp-server-gemini). Like most servers, Gemini ends with a command or URL you paste into your AI app's MCP config.

Does Gemini need an API key?

The registry lists no required keys for Gemini. Check the Gemini README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Gemini an official MCP server?

No. Gemini is a community server maintained by aliargun. Community servers can be excellent; read the code and the open issues before you give Gemini access to company data.

What license is Gemini under?

Gemini is released under the MIT license, according to its GitHub repository. The license covers the code of Gemini; the service it connects to has its own terms.