Gemini Search MCP Server

by Lorhlona

Integrations

  • Enables searching the web using Google Search to retrieve up-to-date information

  • Uses the Gemini 2.0 API to generate responses based on search results and provide the latest information

Gemini Search MCP Server

An MCP server that generates responses based on the latest information using the Gemini API and Google Search.

Note : This MCP server does not work standalone. It needs to be used in combination with AI assistants like Cline . The Gemini search functionality becomes available when you load this project into an AI assistant.


An MCP server that uses the Gemini API and Google search to generate answers based on up-to-date information.

Note : This MCP server does not work alone. It must be used in conjunction with an AI assistant such as Cline . By loading this project into the AI assistant, the Gemini search function will become available.

Features

Tools

  • search - Generate answers using Gemini 2.0 and Google Search
    • Takes a query as input and returns Gemini's response along with relevant search results

function

Tools

  • search - Answer questions using Gemini 2.0 and Google search
    • It takes a query as input and returns Gemini's answers and relevant search results.

Setup

  1. Install dependencies:
npm install
  1. Build:
npm run build
  1. Set environment variables: Create a .env file in the project root with the following content:
GEMINI_API_KEY=your_api_key_here

Note: You can get your Gemini API key from Google AI Studio .

Development

For automatic builds during development:

npm run watch

Installation

To use with Claude Desktop, add the following configuration:

Windows: %APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "gemini": { "command": "node", "args": ["path/to/gemini-search-server/build/index.js"], "env": { "GEMINI_API_KEY": "your_api_key_here" } } } }

Debugging

Since MCP servers communicate via stdio, we recommend using MCP Inspector for debugging:

npm run inspector

The Inspector provides a URL to access debugging tools in your browser.

License

The code in this project is released under the MIT License . However, please note that this project uses the Google Gemini API, which is subject to Google's Terms of Service . When using this MCP server, you must comply with both the MIT License for our code and Google's terms for the Gemini API.


set up

  1. Install dependencies:
npm install
  1. Build:
npm run build
  1. Set environment variables: Create a .env file in the root of your project with the following content:
GEMINI_API_KEY=your_api_key_here

*Gemini API key can be obtained from Google AI Studio .

development

Automated development builds:

npm run watch

install

To use with Claude Desktop, add the following configuration:

Windows: %APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "gemini": { "command": "node", "args": ["path/to/gemini-search-server/build/index.js"], "env": { "GEMINI_API_KEY": "your_api_key_here" } } } }

debug

Since MCP servers communicate via stdio, we recommend using MCP Inspector for debugging:

npm run inspector

Inspector provides a URL to access the debugging tools in your browser.

license

The code for this project is released under the MIT License . However, because this project uses the Google Gemini API, it is also subject to Google's terms of service . When using this MCP server, you must comply with both the MIT License for the code and the Gemini API's terms of service.

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Utilizes Gemini API and Google Search to generate answers based on the latest information for user queries.

  1. Features
    1. Tools
  2. function
    1. Tools
  3. Setup
    1. Development
      1. Installation
        1. Debugging
      2. License
        1. set up
          1. development
            1. install
              1. debug
            2. license

              Related MCP Servers

              • -
                security
                F
                license
                -
                quality
                Provides curated documentation access via the Gemini API, enabling users to query and interact with technical docs effectively by overcoming context and search limitations.
                Last updated -
                13
                TypeScript
              • -
                security
                A
                license
                -
                quality
                The ultimate Gemini API interface for MCP hosts, intelligently selecting models for the task at hand—delivering optimal performance, minimal token cost, and seamless integration.
                Last updated -
                6
                TypeScript
                MIT License
              • -
                security
                F
                license
                -
                quality
                A Model Context Protocol server that enables Claude Desktop to interact with Google's Gemini 2.5 Pro Experimental AI model, with features like Google Search integration and token usage reporting.
                Last updated -
                JavaScript
              • -
                security
                F
                license
                -
                quality
                A server that provides access to Google Gemini AI capabilities including text generation, image analysis, YouTube video analysis, and web search functionality through the MCP protocol.
                Last updated -
                2
                TypeScript
                • Apple

              View all related MCP servers

              ID: 5ydkuk88c7