- Google Search MCP Server
Google Search MCP Server
MCP Server built for use with VS Code / Cline / Anthropic - enable google search and ability to follow links and research websites
Content
Google Search MCP Server
An 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.
Features
- Google Custom Search integration
- Webpage content analysis
- Batch webpage analysis
- MCP-compliant interface
Prerequisites
- Node.js (v16 or higher)
- Python (v3.8 or higher)
- Google Cloud Platform account
- Custom Search Engine ID
- Google API Key
Installation
- Clone the repository
- Install Node.js dependencies:
npm install
- Install Python dependencies:
pip install flask google-api-python-client flask-cors
Configuration
- Create a
api-keys.jsonfile in the root directory with your Google API credentials:
{
"api_key": "your-google-api-key",
"search_engine_id": "your-custom-search-engine-id"
}
- Add the server configuration to your MCP settings file (typically located at
%APPDATA%/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json):
{
"mcpServers": {
"google-search": {
"command": "npm",
"args": ["run", "start:all"],
"cwd": "/path/to/google-search-server"
}
}
}
Building
npm run build
Running
Start both the TypeScript and Python servers:
npm run start:all
Or run them separately:
- TypeScript server:
npm start - Python servers:
npm run start:python
Available Tools
1. search
Perform Google searches and retrieve results.
{
"name": "search",
"arguments": {
"query": "your search query",
"num_results": 5 // optional, default: 5
}
}
2. analyze_webpage
Extract and analyze content from a single webpage.
{
"name": "analyze_webpage",
"arguments": {
"url": "https://example.com"
}
}
3. batch_analyze_webpages
Analyze multiple webpages in a single request.
{
"name": "batch_analyze_webpages",
"arguments": {
"urls": [
"https://example1.com",
"https://example2.com"
]
}
}
Getting Google API Credentials
- Go to the Google Cloud Console
- Create a new project or select an existing one
- Enable the Custom Search API
- Create API credentials (API Key)
- Go to the Custom Search Engine page
- Create a new search engine and get your Search Engine ID
- Add these credentials to your
api-keys.jsonfile
Error Handling
The server provides detailed error messages for:
- Missing or invalid API credentials
- Failed search requests
- Invalid webpage URLs
- Network connectivity issues
Architecture
The server consists of two main components:
- TypeScript MCP Server: Handles MCP protocol communication and provides the tool interface
- Python Flask Server: Manages Google API interactions and webpage content analysis
License
MIT
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
DeepChatYour AI Partner on Desktop
Playwright McpPlaywright MCP server
Tavily Mcp
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
WindsurfThe new purpose-built IDE to harness magic
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
ChatWiseThe second fastest AI chatbot™
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题;
Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Amap Maps高德地图官方 MCP Server
CursorThe AI Code Editor
Serper MCP ServerA Serper MCP Server