Provides real-time web search capabilities through Google Custom Search, allowing AI agents to retrieve current information from the internet with configurable result quantities.
Leverages Google Cloud's Custom Search API for performing web searches, requiring API keys and a Custom Search Engine ID from Google Cloud Console.
google-search-mcp
A Model Context Protocol (MCP) server that provides Google Search functionality.
🚀 Features
- StreamableHTTP Transport: High-performance and scalable HTTP communication
- Google Custom Search: Real-time web search capabilities
- Secure: Proper authentication and error handling
- Health Check: Standard health check endpoint support
🛠 Requirements
- Node.js 18 or higher
- Google Custom Search API key
📦 Setup
1. Install dependencies
2. Set environment variables
3. Local development
🔧 API Endpoints
Once the server is running, the following endpoints are available:
Endpoint | Description |
---|---|
/mcp | MCP protocol communication |
/health | Health check |
/ | Status |
🔌 Client Configuration
Cursor IDE / Claude Desktop Configuration
Example configuration for using the server from MCP clients:
📊 Monitoring
Health Check
🧪 Available Tools
search
Performs a web search using the Google Search API.
Parameters:
query
(string, required): Search querynum
(number, optional): Number of results to return (1-10, default: 5)
Example:
🔑 Google Custom Search Setup
- Go to Google Cloud Console
- Create a new project or select an existing one
- Enable the Custom Search API
- Create credentials (API Key)
- Set up a Custom Search Engine
- Get your Search Engine ID
📝 Development
Build
Lint
Format
Note: This server is designed for StreamableHTTP mode only. It does not support stdio mode.
This server cannot be installed
A Model Context Protocol (MCP) server that provides Google Search functionality with StreamableHTTP transport support.
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server that provides search and crawl functionality using Search1API.Last updated -5206111TypeScriptMIT License
- AsecurityFlicenseAqualityAn MCP (Model Context Protocol) server that provides Google search capabilities and webpage content analysis tools. This server enables AI models to perform Google searches and analyze webpage content programmatically.Last updated -316752TypeScript
- -securityAlicense-qualityA Model Context Protocol (MCP) based search API server that provides standardized access to Google Maps, Google Flights, Google Hotels and other services. This server enables AI assistants to access various search services through a unified interface.Last updated -48PythonMIT License
- AsecurityFlicenseAqualityA Model Context Protocol server that provides web search capabilities using Google Custom Search API and webpage content extraction functionality.Last updated -2101JavaScript