Google Search MCP Server
Manages environment variables for storing Google API credentials and configuration
Enables web search capabilities through Google Search API, allowing retrieval of up to 20 search results in JSON format
Provides the interface between AI assistants and the Google Search API functionality
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Google Search MCP Serverfind recent articles about quantum computing breakthroughs"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Google Search MCP Server
This project is a Model Context Protocol (MCP) server that provides Google Search API functionality to an AI assistant.
overview
The Google Search MCP Server is a tool that allows your AI Assistant to perform web searches using the Google Search API. It uses Gradio and MCP to provide the interface between your AI Assistant and the Google Search API.
Related MCP server: Scrapeless MCP Server
function
Search the web with the Google Search API
Returning search results in JSON format
Get up to 20 search results
Prerequisites
Python 3.12 or higher
Google Custom Search Engine ID
Google API Key
install
Clone the repository:
git clone https://github.com/yourusername/google-search-mcp-server.git
cd google-search-mcp-serverInstall the dependencies:
pip install -e .Set the environment variables:
Copy the .env.sample file to .env and add the necessary API keys:
cp .env.sample .envEdit the .env file and set the following values:
GOOGLE_CSE_ID=あなたのGoogleカスタム検索エンジンID
GOOGLE_API_KEY=あなたのGoogleAPIキーHow to use
To start the server:
python app.pyThis will start the Gradio interface and act as an MCP server.
Integration with MCP
This server is integrated with your AI assistant using the Model Context Protocol (MCP), and allows your AI assistant to access Google search functionality through the server.
API Reference
perform_web_search
perform_web_search(query: str, num_results: int = 10)Parameters :
query(str): The search query (max 400 characters, 50 words)num_results(int): Number of results (1-20, default 10).
Returns :
str: Search results in JSON format
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for Google search results via SERP API
Search Google straight from your AI agent. Web results, images, videos, news, products, scholarly ar
Provides AI assistants with access to Seltz's powerful Web Search capabilities.
A Model Context Protocol server for Wix AI tools
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables LLMs to perform web searches using Google's Custom Search API through a standardized interface.147MIT
- AlicenseCqualityCmaintenanceA Model Context Protocol server implementation that enables AI assistants like Claude to perform Google searches and retrieve web data directly through natural language requests.1155 npm169MIT
- FlicenseAqualityCmaintenanceA Model Context Protocol server that provides web search capabilities using Google Custom Search API and webpage content extraction functionality.26 npm2-
- AlicenseBqualityDmaintenanceA Model Context Protocol server that provides web search capabilities using Google Custom Search API and webpage content extraction functionality.2MIT