by adenot
The mcp-google-search is a Model Context Protocol (MCP) server that leverages the Google Custom Search API to provide web search functionality and extract webpage content. It is designed to assist applications in integrating Google search results and retrieving information from webpages.
mcp-google-search is a Model Context Protocol (MCP) server that provides web search capabilities using the Google Custom Search API and webpage content extraction functionality. It allows applications to integrate Google search results and extract content from web pages.
To use mcp-google-search, you first need to set up a Google Cloud Project, enable the Custom Search API, obtain an API Key, and create a Custom Search Engine. Once these prerequisites are met, you can install the server via Smithery CLI and configure it with your Google API credentials in your Claude Desktop configuration file. The server exposes two main tools: search
for performing web searches and read_webpage
for extracting content from URLs.
Q: How do I get a Google API Key and Search Engine ID? A: You need to create a Google Cloud Project, enable the Custom Search API, get an API Key from the Credentials section, and create a Custom Search Engine through the Programmable Search Engine platform.
Q: How can I debug the MCP server?
A: Since MCP servers communicate over stdio, debugging can be challenging. It is recommended to use the MCP Inspector, which can be run via npm run inspector
and provides a URL for browser-based debugging tools.
A Model Context Protocol server that provides web search capabilities using Google Custom Search API and webpage content extraction functionality.
Create a Google Cloud Project:
Enable Custom Search API:
Get API Key:
Create Custom Search Engine:
Install dependencies:
npm install
Build the server:
npm run build
For development with auto-rebuild:
npm run watch
Perform web searches using Google Custom Search API:
Extract content from any webpage:
To install Google Custom Search Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @adenot/mcp-google-search --client claude
To use with Claude Desktop, add the server config with your Google API credentials:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"google-search": {
"command": "npx",
"args": [
"-y",
"@adenot/mcp-google-search"
],
"env": {
"GOOGLE_API_KEY": "your-api-key-here",
"GOOGLE_SEARCH_ENGINE_ID": "your-search-engine-id-here"
}
}
}
}
{
"name": "search",
"arguments": {
"query": "your search query",
"num": 5 // optional, default is 5, max is 10
}
}
{
"name": "read_webpage",
"arguments": {
"url": "https://example.com"
}
}
Example response from webpage reader:
{
"title": "Example Domain",
"text": "Extracted and cleaned webpage content...",
"url": "https://example.com"
}
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspector
The Inspector will provide a URL to access debugging tools in your browser.
Reviews feature coming soon
Stay tuned for community discussions and feedback