Google Custom Search Engine MCP Server

by Richard-Weiss
Verified

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
API_KEYYesThe API key for the custom search engine.
ENGINE_IDYesThe engine ID for the custom search engine.
RESULT_NUMNoThe number of search results to return. Range from 1-10.10
GEOLOCATIONNoThe geolocation of the end-user performing the search. See Geolocation Parameter Values for valid values.us
SERVICE_NAMENoThe name of the service, leave empty if you haven't changed the name (customsearch).
COUNTRY_REGIONNoRestricts search results to documents originating in a particular country. See Country Parameter Values for valid values.
RESULT_LANGUAGENoThe language of the search results. See CSE Query parameters, lr for valid values.lang_en

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
google_search

Search the custom search engine using the search term. Regular query arguments can also be used, like appending site:reddit.com or after:2024-04-30. If available and/or requested, the links of the search results should be used in a follow-up request using a different tool to get the full content. Example: "claude.ai features site:reddit.com after:2024-04-30"