Google Custom Search MCP logo

Google Custom Search MCP

Read-only web and image search through a Google Programmable Search Engine, with filters, pagination, and raw API access.

Install Google Custom Search MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "google-custom-search-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-custom-search@latest"
      ],
      "env": {
        "GOOGLE_CUSTOM_SEARCH_API_KEY": "YOUR_VALUE_HERE",
        "GOOGLE_CUSTOM_SEARCH_ENGINE_ID": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Automated check passed— started and listed 3 tools correctly ().

Overview

Google Custom Search MCP connects an MCP-compatible AI client to a Google Programmable Search Engine through the Custom Search JSON API. It provides read-only web search, image search, and a raw GET tool for API parameters not covered by the typed tools. Use it when searches need site, language, country, date, file type, or image filters, or when an agent needs paginated results. Results depend on the configured engine, which can cover selected sites or the wider web.

Use cases

  • Search recent articles with date and language filters
  • Restrict web results to selected sites or domains
  • Page through results from a repeated query
  • Find images with dimensions, thumbnails, and source pages
  • Pass advanced Custom Search API parameters directly

Key features

  • Read-only web search
  • Programmable image search
  • Language, country, date, site, and file filters
  • Pagination with result cursors
  • Raw Custom Search JSON API requests
  • API-key authentication through a request header

Tools3

What Google Custom Search MCP lets your agent do. Expand a tool for its parameters.

Verified live~2.5k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

16/16 checks healthy over the last 83d

What it can do

From the 3 tools this server returned when we ran it; 3 declare their own safety hints.

Handles credentials · 1Makes network requests · 3Read-only tools · 3
Network at startup4 connections
Files written at startup1
Install scriptsprepare
npm provenanceNot published
Package age66 days
Maintainers1

Observed 2026-11-04 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev · mcp-google-custom-search@latest (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads803Package downloads in the last 30 days.
Last commit8d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed3Callable tools this server registers over MCP.

How Google Custom Search MCP works

What Google Custom Search MCP does

Google Custom Search MCP exposes Google Programmable Search Engine queries as MCP tools for AI applications. It supports two structured search modes—web and images—and a lower-level GET operation for parameters that the structured tools do not expose. All operations are read-only because the underlying Custom Search JSON API has no write endpoint.

The configured Programmable Search Engine determines the search coverage. An engine may target a set of sites or search the wider web when that option is enabled. Results can therefore differ from those returned by google.com. The service is intended for finding and inspecting search results, not for checking how a site is indexed or ranked in Google Search Console.

How it works

Each request uses a Google Cloud API key and a Programmable Search Engine ID, commonly called cx. The server sends the key in the X-Goog-Api-Key header rather than placing it in the request URL. A per-call engine ID can override the configured default.

Web results are normalized to include titles, links, snippets, metadata, and pagination cursors. Image results include image files, dimensions, thumbnails, and the pages hosting them. The API returns up to 10 results in one call and allows up to 100 results for a query across pages. next_start and previous_start cursors support navigation between result pages.

Setup and configuration

Run the npm package with Node.js 20 or newer. The server requires these environment variables:

  • GOOGLE_CUSTOM_SEARCH_API_KEY: Google Cloud API key with the Custom Search API enabled.
  • GOOGLE_CUSTOM_SEARCH_ENGINE_ID: Programmable Search Engine ID (cx).

A typical stdio launch command is:

Terminal
npx -y mcp-google-custom-search@latest

Configure that command and the two environment variables in the MCP client. The package includes setup examples for Codex, Claude Code, Claude Desktop local configurations, Cursor, and VS Code. VS Code can prompt for the key and engine ID instead of storing their values directly in its server configuration.

Tools and capabilities

The server provides three tools:

  • Web search for pages matching a natural-language query.
  • Image search for image files, thumbnails, dimensions, and source pages.
  • A raw GET escape hatch for directly passing Custom Search JSON API parameters.

Search requests can narrow results by language, country, date, site, file type, exact phrases, excluded terms, usage rights, and other supported API options. Image searches can filter by properties such as size, type, color, and image category. The raw operation can access parameters such as fields, lowRange, highRange, and hq, as well as the complete response envelope with promotions and pagemap data.

Limitations and notes

Image search must be enabled in the Programmable Search Engine configuration; otherwise Google returns an error. The API enforces a maximum result window: start + num - 1 cannot exceed 100, and the server rejects requests that exceed this boundary before making the API call.

Google’s total_results value is an estimate and may change while paging. A corrected_query value is only a spelling suggestion; returned results still correspond to the original query. Engine configuration controls coverage and ranking, so this server is not a substitute for Google Search Console and cannot report a site’s indexing or ranking status.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Google Custom Search MCP

Google Custom Search MCP is an MCP server that connects AI applications to a Google Programmable Search Engine through the Custom Search JSON API. Its main tools perform read-only web searches, image searches, and raw GET requests for advanced parameters. Results can include snippets, metadata, thumbnails, dimensions, source pages, and pagination cursors.

Install it by launching `npx -y mcp-google-custom-search@latest` as a stdio MCP server. Set `GOOGLE_CUSTOM_SEARCH_API_KEY` and `GOOGLE_CUSTOM_SEARCH_ENGINE_ID` in the client configuration, then restart or reload the client. Node.js 20 or newer is required, and the Custom Search API must be enabled for the key.

Yes, Google Custom Search MCP works with Cursor through a stdio entry in `~/.cursor/mcp.json` on macOS and Linux, or the corresponding user directory on Windows. Configure the npm launch command and provide the API key and Programmable Search Engine ID as environment variables.

Use the image search tool after enabling Image search in the Programmable Search Engine control panel. It returns image files with dimensions, thumbnails, and hosting pages, and supports image-oriented filters such as size, type, color, and category. Without Image search enabled, the API returns an error.

Yes, but the Programmable Search Engine must be configured with “Search the entire web” enabled. An engine can instead cover a selected list of sites, and that configuration determines which pages the server can find. Results and ranking may differ from ordinary Google Search.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGoogle Custom Search MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/google-custom-search-mcp?style=directory)](https://allmcps.com/mcp/google-custom-search-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/google-custom-search-mcp"><img src="https://allmcps.com/api/badge/google-custom-search-mcp?style=directory" alt="Google Custom Search MCP on AllMCPs" /></a>