Integrations
Provides Google search capabilities to AI models through an MCP server interface, allowing for advanced search queries with filtering options for date, language, country, and safe search
Integrates with Google Cloud Platform for API credentials and Custom Search capabilities needed to power the Google search functionality
Version 2.0 is here!!
NEWS - my NEW 'KiCAD MCP Server' is here, along with this 'Google Search MCP Server' they are a powerful duo!
https://github.com/mixelpixx/KiCAD-MCP-Server
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
- Advanced search features (filters, sorting, pagination, categorization)
- Webpage content analysis in multiple formats (markdown, HTML, plain text)
- Batch webpage analysis
- Result categorization and classification
- Content summarization
- Optimized, human-readable responses
- MCP-compliant interface
Prerequisites
- Node.js (v16 or higher)
- Google Cloud Platform account
- Custom Search Engine ID
- Google API Key
Installation
- Clone the repository
- Install Node.js dependencies:
- Build the TypeScript code:
Configuration
- Set up environment variables for your Google API credentials:
You can either set these as system environment variables or configure them in your MCP settings file.
Required environment variables:
GOOGLE_API_KEY
: Your Google API keyGOOGLE_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
):
Running
Start the MCP server:
Available Tools
1. google_search
Search Google and return relevant results from the web. This tool finds web pages, articles, and information on specific topics using Google's search engine.
Response includes:
- Search results with title, link, snippet in a readable format
- Pagination information (current page, total results, etc.)
- Categories of results (automatically detected)
- Navigation hints for pagination
2. extract_webpage_content
Extract and analyze content from a webpage, converting it to readable text. This tool fetches the main content while removing ads, navigation elements, and other clutter.
Response includes:
- Title and description of the webpage
- Content statistics (word count, character count)
- Content summary
- Content preview (first 500 characters)
3. extract_multiple_webpages
Extract and analyze content from multiple webpages in a single request. Ideal for comparing information across different sources or gathering comprehensive information on a topic.
Response includes:
- Title and description of each webpage
- Content statistics for each webpage
- Content summary for each webpage
- Content preview for each webpage (first 150 characters)
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 MCP settings file or set them as environment variables
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 is built with TypeScript and uses the MCP SDK to provide a standardized interface for AI models to interact with Google Search and webpage content analysis tools. It consists of two main services:
- GoogleSearchService: Handles Google API interactions for search functionality
- ContentExtractor: Manages webpage content analysis and extraction
The server uses caching mechanisms to improve performance and reduce API calls.
Distributing the Built Version
If you prefer to distribute only the built version of this tool rather than the source code, you can follow these steps:
- Build the TypeScript code:
- Create a distribution package with only the necessary files:
- Users can then install and run the built version:
This approach allows you to distribute the compiled JavaScript files without exposing the TypeScript source code. Users will still need to:
- Configure their Google API credentials as environment variables
- Add the server configuration to their MCP settings file
- Install the production dependencies
Note that the package.json in the distribution will only include production dependencies and a simplified set of scripts.
License
MIT
You must be authenticated.
local-only server
The server can only run on the client's local machine because it depends on local resources.
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.
- NEWS - my NEW 'KiCAD MCP Server' is here, along with this 'Google Search MCP Server' they are a powerful duo!
- Google Search MCP Server
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.Last updated -11,8321,497TypeScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server that provides web search capabilities through DuckDuckGo, with additional features for content fetching and parsing.Last updated -226PythonMIT License
- AsecurityFlicenseAqualityBuilt as a Model Context Protocol (MCP) server that provides advanced web search, content extraction, web crawling, and scraping capabilities using the Firecrawl API.Last updated -41Python
- AsecurityFlicenseAqualityAn MCP protocol server that enables web search functionality using the Tavily API, allowing AI assistants to perform internet searches in real-time.Last updated -42Python