Google Search MCP Server
Provides Google text search with customizable result counts, extracting titles, links, and descriptions, plus Google Images search for image-based product research and combined search-and-extract workflows.
Enables image search on Pinterest via Google's site:pinterest.com filter, merging Pinterest results with Google Images for product reference and quality scoring.
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 Server search Google for 'MCP protocol Model Context' and extract top 5 results"
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
A powerful Model Context Protocol (MCP) server providing Google search and image search capabilities for Claude Code
Features
๐ Google Text Search
Search Google with customizable result count
Extract titles, links, and descriptions
Support for multiple languages
๐ Web Content Extraction
Extract main content from any webpage
Smart content filtering (ads, navigation removed)
Batch extraction support
๐ Combined Search & Extract
Search and auto-extract multiple results
One-click deep content retrieval
๐ผ๏ธ Image Search with AI Analysis โญ
Dual-platform search: Google Images + Pinterest
Multi-model AI visual analysis: Supports GLM-4.6V, GPT-4O, Claude 3.5, and more
Quality scoring system: S/A/B/C grading
Perfect for finding product reference images
Related MCP server: MCP Seekr Server
Installation
Prerequisites
Node.js >= 18.0.0
Claude Code with MCP support
Setup
Clone the repository
git clone https://github.com/hinsmoment/google-search-mcp.git
cd google-search-mcpInstall dependencies
npm installConfigure Claude Code
Add to your Claude configuration (~/.claude.json or via Settings):
{
"mcpServers": {
"google-search": {
"type": "stdio",
"command": "node",
"args": ["/path/to/google-search-mcp/server.js"]
}
}
}Restart Claude Code
Usage
1. Google Search
Search Google for "Claude Code AI assistant"2. Extract Webpage Content
Extract content from https://example.com3. Batch Extract URLs
Extract content from these URLs:
- https://github.com/topic1
- https://github.com/topic2
- https://github.com/topic34. Image Search (Product Reference)
Find similar products using this image: /path/to/product.jpgMCP Tools
Tool | Description | Parameters |
| Google text search |
|
| Extract webpage content |
|
| Batch extract multiple URLs |
|
| Search + extract results |
|
| Image-based product search |
|
Image Search Details
How It Works
โโโโโโโโโโโโโโโโโโโ
โ Upload Image โ
โโโโโโโโโโฌโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโ
โ AI Analysis โ
โ (Multi-Model) โ
โ - Product type โ
โ - Keywords โ
โโโโโโโโโโฌโโโโโโโโโ
โ
โโโโโโดโโโโโ
โ โ
โโโโโโโโโ โโโโโโโโโ
โGoogle โ โPinterestโ
โImages โ โSearch โ
โโโโโฌโโโโ โโโโโฌโโโโ
โโโโโโฌโโโโโ
โ
โโโโโโโโโโโโโโโโโโโ
โ Merge & Score โ
โ S/A/B/C Grades โ
โโโโโโโโโโโโโโโโโโโQuality Scoring
Grade | Score | Sources |
S | 85-100 | Tmall HK, Tmall, JD Mall, Brand Sites |
A | 75-84 | JD, Amazon, Taobao, Pinterest |
B | 60-74 | Other e-commerce sites |
C | < 60 | General websites |
Technical Architecture
Browser Automation
Puppeteer (primary)
Playwright (automatic fallback)
Key Dependencies
{
"puppeteer": "^22.15.0"
}Module Structure
google-search-mcp/
โโโ server.js # MCP server implementation
โโโ lib/
โ โโโ image-search.js # Image search module with AI analysis
โโโ package.json
โโโ README.mdConfiguration
Optional: AI Analysis API Key
For enhanced image analysis, set your GLM API key:
# Linux/macOS
export GLM_API_KEY=your_api_key_here
# Windows (PowerShell)
$env:GLM_API_KEY="your_api_key_here"
# Windows (CMD)
set GLM_API_KEY=your_api_key_hereNote: The fallback keyword-based search works without an API key.
Examples
Example 1: E-commerce Product Research
Find similar products to: ./images/dinosaur-pencil-case.jpg
Return top 15 results with AI analysis enabledOutput includes:
Product image analysis
Keywords extracted
Dual-platform results (Google + Pinterest)
Quality scores with grades
Example 2: Content Research
Search for "MCP protocol Model Context"
Extract full content from top 5 resultsContributing
Contributions are welcome! Please feel free to submit a Pull Request.
Development Setup
# Install dependencies
npm install
# Run tests
npm test
# Start MCP server (for debugging)
node server.jsCoding Standards
Follow existing code style
Add comments for complex logic
Test your changes thoroughly
Troubleshooting
Puppeteer Chrome Download Issues
If Puppeteer fails to download Chrome:
# Skip Chrome download and use system Chrome
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true npm install puppeteerMCP Server Not Starting
Check Node.js version:
node --version(requires >= 18.0.0)Verify file path in Claude configuration
Check Claude Code logs for errors
Image Search Returns No Results
Verify image path is correct
Check internet connection
Try disabling AI analysis if API key issues
Limitations
Google search may be affected by anti-scraping measures
Pinterest direct scraping is limited (uses Google
site:pinterest.comfilter)API-based AI analysis requires separate GLM API key
Roadmap
Add more image search platforms (Behance, Dribbble)
Implement local image similarity matching (CLIP/DINOv2)
Add result caching
Support for more AI vision models
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Model Context Protocol by Anthropic
Puppeteer for browser automation
Zhipu AI for GLM-4.6V vision model
OpenAI for GPT-5.2 / GPT-4O vision model
Anthropic for Claude 4.5 Sonnet vision model
Author
Created by ๆๅฅ
Special thanks: Developed with Claude Code assistance
Support
๐ Report bugs: GitHub Issues
๐ก Feature requests: GitHub Discussions
โญ Star this repo if it helps you!
Made with โค๏ธ by the open-source community
Available Tools
5 toolsbatch_fetch_urlsC
ๆน้ๆๅๅคไธช็ฝ้กต็ๅ ๅฎน
Inputs: urls (required).
fetch_urlB
ๆๅๅไธช็ฝ้กตๅ ๅฎน๏ผ่ฟๅๆ ้ขๅๆญฃๆ
Inputs: url (required).
google_searchC
ไฝฟ็จ Google ๆ็ดขๅนถ่ฟๅ็ปๆ
Inputs: query (required), maxResults.
search_and_extractC
ๆ็ดขๅ่ชๅจๆๅๅNไธช็ปๆ็ๅฎๆดๅ ๅฎน
Inputs: query (required), maxResults.
search_by_imageB
ไธไผ ไบงๅๅพ็๏ผๆ็ดข็ธไผผไบงๅๅ่ๅพ๏ผๆฏๆ AI ่ง่งๅๆ๏ผ
Inputs: image_path (required), max_results, enable_ai_analysis.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
Related MCP Connectors
Search Google straight from your AI agent. Web results, images, videos, news, products, scholarly ar
Direct access to 60+ scraping and search tools. Extract structured data from Google (Search, Maps, Trends), Amazon, Airbnb, Social Media, and any web page directly into your AI agent.
Google search, news, maps, webpages, cited answers, research and ChatGPT/Gemini answers for agents.
Web scraping, search, crawling, structured extraction and research for AI agents.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables web searching and content scraping through Google Custom Search API. Provides tools to search the internet, extract webpage content, and automatically scrape search results for comprehensive information gathering.3MIT
- AlicenseAqualityNot gradedmaintenanceEnables web search through Google and Wikipedia plus content extraction from any webpage via the Seekr API. Provides real-time search results with advanced filtering options and clean text extraction capabilities.2MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to search Google for web results, images, videos, news, products, scholarly articles, and patents, plus local business lookup with contact details and ratings, and full text extraction from any page, accepting up to 100 queries in a single call.MIT
- FlicenseNot gradedqualityAmaintenanceEnables comprehensive search engine results and data extraction from Google, Bing, Yahoo, DuckDuckGo, YouTube, eBay, and more, returning structured JSON or Markdown. It also provides real-time weather, stock market data, and optional interactive result views.-