Google Search MCP Server
This MCP server enables comprehensive web searches through Google's Custom Search API with advanced content extraction capabilities.
Perform three types of searches:
google_searchfor quick snippet-only results (1-10 results),deep_searchfor comprehensive searches with full content extraction across web/news/images, anddeep_search_newsoptimized specifically for news articles and current eventsExtract clean article content using Mozilla's Readability algorithm (same as Firefox Reader View) to remove ads and clutter
Filter search results by including specific domains (e.g., only GitHub and Reddit) or excluding unwanted ones (e.g., block Pinterest and Facebook)
Search across different content types including general web pages, news articles, and images
Customize search parameters including number of results (1-10) and maximum content length per page (5,000-100,000 characters)
Override API credentials on a per-tool-call basis if needed
Deploy flexibly in local mode with your own Google API credentials or hosted mode with TUI AD authentication for enterprise deployments
Benefit from reliability features including automatic retries with exponential backoff and controlled concurrency to handle network issues gracefully
Performs comprehensive web, news, and image searches using the Google Custom Search API, offering features like snippet-only lookups, full content extraction from results, and domain-specific filtering.
Integrates with the Google Custom Search JSON API to enable programmatic access to web search results and advanced content retrieval.
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 deep search for the latest news on generative AI 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
An MCP (Model Context Protocol) server that performs comprehensive web searches using Google Custom Search JSON API with advanced content extraction using Mozilla's Readability algorithm.
Features
Three Search Modes:
google_search- Fast snippet-only search for quick lookupsdeep_search- Full content extraction with Readability algorithmdeep_search_news- News-optimized deep search
Google Custom Search API - Uses official Google Custom Search JSON API
Advanced Content Extraction - Uses Mozilla's Readability algorithm (same as Firefox Reader View) for clean article extraction
Multiple Search Types - Web search, news search, and image search
Domain Filtering - Include or exclude specific domains from results
Retry Logic - Automatic retries with exponential backoff for reliability
Controlled Concurrency - Fetches pages in batches to avoid overwhelming servers
Related MCP server: DuckDuckGo MCP Server
Prerequisites
Get Google Custom Search API Credentials
Go to Google Cloud Console
Create a new project or select an existing one
Enable the "Custom Search API"
Go to "Credentials" and create an API key
Create a new search engine and get your Search Engine ID (CX)
You'll need:
GOOGLE_API_KEY- Your Google Cloud API keyGOOGLE_CX- Your Programmable Search Engine ID
Installation
Using npx (Recommended)
No installation needed - just configure your MCP client:
{
"mcpServers": {
"google-search": {
"command": "npx",
"args": ["-y", "@thejusdutt/google-search-mcp"],
"env": {
"GOOGLE_API_KEY": "your-google-api-key",
"GOOGLE_CX": "your-search-engine-id"
}
}
}
}Global Installation
npm install -g @thejusdutt/google-search-mcpThen configure:
{
"mcpServers": {
"google-search": {
"command": "google-search-mcp",
"env": {
"GOOGLE_API_KEY": "your-google-api-key",
"GOOGLE_CX": "your-search-engine-id"
}
}
}
}Tools
google_search
Simple Google search for quick lookups. Returns snippets only without fetching full page content.
Parameter | Type | Default | Description |
| string | required | The search query |
| number | 10 | Number of results (1-10) |
Example:
// Quick search with snippets only
google_search({ query: "React hooks tutorial" })deep_search
Comprehensive web search with full content extraction.
Parameter | Type | Default | Description |
| string | required | The search query |
| number | 10 | Number of results (1-10) |
| number | 50000 | Max characters per page (5000-100000) |
| string | "web" | Search type: "web", "news", or "images" |
| string | - | Comma-separated domains to include |
| string | - | Comma-separated domains to exclude |
Examples:
// Basic web search
deep_search({ query: "React best practices 2025" })
// News search
deep_search({ query: "AI announcements", search_type: "news" })
// Search specific sites only
deep_search({
query: "TypeScript tips",
include_domains: "github.com,dev.to"
})
// Exclude certain sites
deep_search({
query: "web development trends",
exclude_domains: "pinterest.com,facebook.com"
})deep_search_news
Convenience wrapper for news search. Equivalent to calling deep_search with search_type: "news" and optimized content limits.
Parameter | Type | Default | Description |
| string | required | The news topic to search |
| number | 10 | Number of articles (1-10) |
| number | 30000 | Max characters per article |
Example:
deep_search_news({ query: "OpenAI latest updates" })Configuration
Kiro
Add to ~/.kiro/settings/mcp.json:
{
"mcpServers": {
"google-search": {
"command": "npx",
"args": ["-y", "@thejusdutt/google-search-mcp"],
"env": {
"GOOGLE_API_KEY": "your-google-api-key",
"GOOGLE_CX": "your-search-engine-id"
}
}
}
}Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"google-search": {
"command": "npx",
"args": ["-y", "@thejusdutt/google-search-mcp"],
"env": {
"GOOGLE_API_KEY": "your-google-api-key",
"GOOGLE_CX": "your-search-engine-id"
}
}
}
}How It Works
Search - Queries Google Custom Search API to get top results
Fetch - Downloads each result page with retry logic
Extract - Uses Mozilla Readability to extract clean article content
Format - Returns consolidated markdown with full content from each page
Requirements
Node.js 18+
Google Cloud API key with Custom Search API enabled
Programmable Search Engine ID (CX)
License
MIT
Author
Contributing
Issues and PRs welcome at GitHub
Available Tools
3 toolsdeep_searchA
Performs a comprehensive web search using Google Custom Search API, fetching the FULL content from top results using advanced content extraction (Readability algorithm), and returning consolidated content. Supports web, news, and image search types. Includes retry logic for reliability.
Inputs: query (required), num_results, max_content_per_page, search_type, +2 more.
deep_search_newsA
Searches for recent news articles on a topic using Google Custom Search API, fetches full article content, and returns consolidated results. Optimized for news and current events.
Inputs: query (required), num_results, max_content_per_page.
google_searchA
Simple Google search for quick lookups. Returns snippets only without fetching full page content. For deep research with full page content, use deep_search instead.
Inputs: query (required), num_results.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The tools have overlapping purposes that could cause misselection. Both deep_search and deep_search_news perform similar comprehensive searches with full content extraction, differing mainly in search type (general vs. news), while google_search is a simpler alternative. An agent might struggle to choose between deep_search and deep_search_news for news-related queries, as their descriptions suggest functional overlap.
The tool names follow a consistent snake_case pattern throughout, with clear and descriptive verbs (deep_search, deep_search_news, google_search). The naming is predictable and readable, making it easy for an agent to understand the tool set's structure without confusion.
With only 3 tools, the server feels thin for a Google Search domain, which typically involves more varied operations like filtering, pagination, or specialized searches (e.g., by date or region). While the tools cover basic search needs, the count is borderline for comprehensive search functionality, potentially limiting agent capabilities.
There are significant gaps in the tool surface for a Google Search server. Missing operations include advanced filtering options, image or video search handling beyond basic mentions, pagination support, and error handling tools. The server focuses on content retrieval but lacks tools for refining or managing search results, which could lead to agent failures in complex tasks.
Maintenance
Related MCP Connectors
Web search, fetch, extract, and research for AI agents. Markdown output + AI-synthesized answers.
Web search, Google SERP, page extraction to markdown and cited answers for AI agents.
Search Google straight from your AI agent. Web results, images, videos, news, products, scholarly ar
Google search, news, maps, webpages, cited answers, research and ChatGPT/Gemini answers for 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
- AlicenseBqualityDmaintenanceEnables web search through DuckDuckGo and webpage content fetching with intelligent text extraction. Features built-in rate limiting and LLM-optimized result formatting for seamless integration with language models.2MIT
- AlicenseNot gradedqualityDmaintenanceEnables web searching through Google, DuckDuckGo, and Bing using a headless Chrome browser, returning structured results with titles, URLs, and snippets. Also supports fetching and extracting text content from any webpage.16MIT
- AlicenseNot gradedqualityDmaintenanceProvides web search with content extraction, YouTube subtitles, and optional LLM summarization for AI assistants.Apache 2.0