SuperAPIAI Directory

mcp-google-custom-search

github.com · AI images

Google Custom Search JSON API: web and image search through a Programmable Search Engine.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

Purpose: This is an MCP server that wraps the Google Custom Search JSON API into tools callable by AI applications, allowing AI to search web pages and images using natural language. The search scope is determined by your own Programmable Search Engine, which can be a number of specified sites or the entire web.

Main capabilities: Provides 3 tools—web search, image search, and a raw GET escape hatch for calling parameters not exposed by the typed tools. Supports pagination (next_start/previous_start cursors), language/country/date/site filtering, safe search, exact phrases and excluded words, filtering by usage rights, and image search can return dimensions, thumbnails, and source pages. Results are normalized into titles, URLs, snippets, and metadata. All tools are read-only; the Custom Search JSON API itself has no write endpoints.

Usage: Requires Node.js 20+, a Google Cloud API key with the Custom Search API enabled, and a Programmable Search Engine ID (cx). Add the MCP server in your AI application settings, choose STDIO, use the command npx -y mcp-google-custom-search@latest, and set the environment variables GOOGLE_CUSTOM_SEARCH_API_KEY and GOOGLE_CUSTOM_SEARCH_ENGINE_ID. The API key is sent via the X-Goog-Api-Key request header and does not appear in the URL.

Limitations: Each call returns at most 10 results, and each query returns at most 100 (start + num - 1 ≤ 100); the server rejects windows over the limit before requesting. Image search requires Image search to be enabled in the engine control panel, otherwise the API returns 400. Results and rankings may differ from google.com. This API is not Google Search Console and cannot report indexing or ranking for your own site. The corrected_query in responses is only a spelling suggestion; the results still correspond to the original query. Google applies a daily quota per project, free 100/day, up to 10,000/day after billing is enabled; when encountering 429, it will follow Retry-After backoff, 5xx and network errors will be retried, and 400/403 will fail fast. The server has no background polling and only runs when called. Anonymous telemetry includes installation ID, package version, AI client and platform version, and tool name, and does not include API keys, queries, results, or tool parameters; it can be disabled via ASKADS_TELEMETRY=0. When credentials are missing, the server can still start and complete the MCP handshake, and the first tool call will indicate which variables need to be set; having only an engine ID without an API key is an invalid configuration because the key cannot be provided per call.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools