# mcp-google-search

> MCP Server

This repository provides a Model Context Protocol (MCP) server offering web search via Google Custom Search API and webpage content extraction. It allows searching the web and extracting text from webpages.

## Overview

- **Category:** Search & Knowledge
- **Language:** JavaScript
- **Stars:** 68
- **Forks:** 3
- **Owner:** adenot
- **GitHub:** https://github.com/adenot/mcp-google-search
- **Created:** 2025-02-01T02:27:36+00:00
- **Updated:** 2025-03-26T02:37:21+00:00
- **Source:** https://model-context-protocol.com/servers/google-search-webpage-content-extraction-mcp

## Setup

## Setup

### Getting Google API Key and Search Engine ID

1. Create a Google Cloud Project:
   - Go to [Google Cloud Console](https://console.cloud.google.com/)
   - Create a new project or select an existing one
   - Enable billing for your project

2. Enable Custom Search API:
   - Go to [API Library](https://console.cloud.google.com/apis/library)
   - Search for "Custom Search API"
   - Click "Enable"

3. Get API Key:
   - Go to [Credentials](https://console.cloud.google.com/apis/credentials)
   - Click "Create Credentials" > "API Key"
   - Copy your API key
   - (Optional) Restrict the API key to only Custom Search API

4. Create Custom Search Engine:
   - Go to [Programmable Search Engine](https://programmablesearchengine.google.com/create/new)
   - Enter the sites you want to search (use www.google.com for general web search)
   - Click "Create"
   - On the next page, click "Customize"
   - In the settings, enable "Search the entire web"
   - Copy your Search Engine ID (cx)

## Tools

## Available Tools

1. Search Tool (Perform web searches using Google Custom Search API.)
2. Webpage Reader Tool (Extract content from any webpage.)
