MCP server for Google Custom Search: web and image search via a Programmable Search Engine.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
English | Π ΡΡΡΠΊΠΈΠΉ
A1 Google Custom Search MCP lets an AI app search the web and images in plain language through your Programmable Search Engine. Ask for pages, narrow by language, country, date or site, page through results and pull image files with thumbnails.
It uses the Google Custom Search JSON API with your Google Cloud API key. You decide what the engine covers β a handful of sites or the entire web β and the server makes the limits of the JSON API explicit instead of implying that every search task is possible.
X-Goog-Api-Key header and never appears in a URL.Start with a read-only question:
Find recent articles about passkey adoption from the last month and summarize the top three results.
Connect the server Β· Explore use cases Β· Open technical documentation
You: Find recent articles about passkey adoption, English only, from the last month.
Assistant: Runs one search through your engine and shows each result's title, link and snippet. Nothing changes β every tool is read-only.
You: Show the next page.
Assistant: Continues from the
next_startcursor and shows results 11β20 of the same query.You: Now find large press photos on the same topic.
Assistant: Switches to image search and returns image files with their dimensions, thumbnails and the pages that host them.
You need Node.js 20+, a Google Cloud API key with the Custom Search API enabled and a Programmable Search Engine id (cx).
In the app: open Settings β MCP servers, select Add server, choose STDIO, enter the command npx -y mcp-google-custom-search@latest and environment variables GOOGLE_CUSTOM_SEARCH_API_KEY, GOOGLE_CUSTOM_SEARCH_ENGINE_ID, then select Save and Restart.
From the command line:
The current official path is Settings β Extensions. For a custom desktop extension, open Advanced settings β Extension Developer β Install Extensionβ¦, select a .mcpb file and follow the prompts.
This repository currently publishes an npm stdio package and does not contain a .mcpb bundle. For Claude Desktop builds that still support local configuration, use the following JSON stdio configuration as a fallback:
In those builds, save it to ~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows.
Add this to ~/.cursor/mcp.json on macOS/Linux or %USERPROFILE%\.cursor\mcp.json on Windows:
Run MCP: Open User Configuration and add:
Check it with MCP: List Servers.
docs.python.org β or everywhere except a site you distrust.fields to trim the response, lowRange/highRange, hq.pagemap.cx id β the configured default or a per-call engine_id. The engine's configuration decides coverage: a list of specific sites, or the entire web when "Search the entire web" is enabled.next_start/previous_start cursors for paging. total_results is Google's estimate and can shrink while paging.start + num - 1 must stay β€ 100). The server rejects a wider window before the request β the API would answer 400 after burning a quota unit.400.A corrected_query in the response is a spelling suggestion only β the results are still for the original query. And this is Programmable Search, not Google Search Console: the API cannot report how your own site is indexed or ranked.
| Operation | What happens | Confirmation boundary |
|---|---|---|
Web search (search) | Reads search results from your engine | No change |
Image search (search_images) | Reads image results from your engine | No change |
Raw API request (raw_request) | GET against any Custom Search API path | No change β the API has no write endpoint |
Every tool carries the read-only annotation, the escape hatch included. The Custom Search JSON API is a single GET endpoint with no writes, so the only thing a call spends is a unit of your daily quota.
Google Custom Search authenticates with an API key; no OAuth and no scopes are involved.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/google-custom-search-mcp)<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>