Gemini MCP Server
by rtbui2012
This project implements a Model Context Protocol (MCP) server for Google Search, enabling integration with AI assistants and other MCP-compatible clients. It provides tools for performing web and image searches.
Last updated: N/A
What is Gemini MCP Server?
The Gemini MCP Server is a Node.js application that acts as a Model Context Protocol (MCP) server, specifically designed to integrate Google Search functionality into AI assistants and other MCP-compatible clients. It leverages the Google Custom Search API to provide web and image search capabilities.
How to use Gemini MCP Server?
To use the server, first clone the repository and install the dependencies using npm. Then, set up your Google Custom Search API credentials in a .env
file. Finally, run the server using npx ts-node src/index.ts
and configure your MCP client to connect to it, providing the necessary API key.
Key features of Gemini MCP Server
Integrates Google Search with MCP clients
Provides web search (googleSearchContent) tool
Provides image search (googleSearchImages) tool
Uses Google Custom Search API
Configurable via environment variables
Use cases of Gemini MCP Server
Integrating Google Search into AI assistants
Providing search capabilities within MCP-compatible applications
Enabling AI models to access real-time information from the web
Building custom search tools for specific domains
FAQ from Gemini MCP Server
What is the purpose of this server?
What is the purpose of this server?
The server allows AI assistants and other MCP-compatible clients to access Google Search functionality.
What is MCP?
What is MCP?
MCP stands for Model Context Protocol, a standard for communication between AI models and external tools.
How do I get a Google API key?
How do I get a Google API key?
You can obtain a Google API key from the Google Custom Search JSON API documentation.
What dependencies are required?
What dependencies are required?
The server requires Node.js 18+ and npm. You also need the dependencies listed in package.json
, which can be installed using npm install
.
How do I troubleshoot issues?
How do I troubleshoot issues?
Ensure your API key is correct, all dependencies are installed, and you are using Node.js 18 or newer. Restart the server after making changes.