原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Google Custom Search MCP

作者:A1-x-Tech版本 1.1.1i★ –i在你的电脑上运行
注册名称io.github.A1-x-Tech/mcp-google-custom-search

安装

概览

作者提供的说明(英文原文)

MCP server for Google Custom Search: web and image search via a Programmable Search Engine.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 搜索与 AI 记忆
  • 你需要填写:GOOGLE_CUSTOM_SEARCH_API_KEY

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: GOOGLE_CUSTOM_SEARCH_API_KEY, GOOGLE_CUSTOM_SEARCH_ENGINE_ID, GOOGLE_CUSTOM_SEARCH_API_BASE, GOOGLE_CUSTOM_SEARCH_TIMEOUT_MS, GOOGLE_CUSTOM_SEARCH_MAX_RETRIES

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "google-custom-search": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-custom-search"
      ],
      "env": {
        "GOOGLE_CUSTOM_SEARCH_API_KEY": "your-value",
        "GOOGLE_CUSTOM_SEARCH_ENGINE_ID": "your-value",
        "GOOGLE_CUSTOM_SEARCH_API_BASE": "your-value",
        "GOOGLE_CUSTOM_SEARCH_TIMEOUT_MS": "your-value",
        "GOOGLE_CUSTOM_SEARCH_MAX_RETRIES": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add google-custom-search --env GOOGLE_CUSTOM_SEARCH_API_KEY=your-value --env GOOGLE_CUSTOM_SEARCH_ENGINE_ID=your-value --env GOOGLE_CUSTOM_SEARCH_API_BASE=your-value --env GOOGLE_CUSTOM_SEARCH_TIMEOUT_MS=your-value --env GOOGLE_CUSTOM_SEARCH_MAX_RETRIES=your-value -- npx -y mcp-google-custom-search

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "google-custom-search": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-custom-search"
      ],
      "env": {
        "GOOGLE_CUSTOM_SEARCH_API_KEY": "your-value",
        "GOOGLE_CUSTOM_SEARCH_ENGINE_ID": "your-value",
        "GOOGLE_CUSTOM_SEARCH_API_BASE": "your-value",
        "GOOGLE_CUSTOM_SEARCH_TIMEOUT_MS": "your-value",
        "GOOGLE_CUSTOM_SEARCH_MAX_RETRIES": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "google-custom-search": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-custom-search"
      ],
      "env": {
        "GOOGLE_CUSTOM_SEARCH_API_KEY": "your-value",
        "GOOGLE_CUSTOM_SEARCH_ENGINE_ID": "your-value",
        "GOOGLE_CUSTOM_SEARCH_API_BASE": "your-value",
        "GOOGLE_CUSTOM_SEARCH_TIMEOUT_MS": "your-value",
        "GOOGLE_CUSTOM_SEARCH_MAX_RETRIES": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • GOOGLE_CUSTOM_SEARCH_API_KEY 机密 必填 env
    Google Cloud API key with the Custom Search API enabled. Treat it as a secret.
  • GOOGLE_CUSTOM_SEARCH_ENGINE_ID env
    Default Programmable Search Engine id (cx). Tools accept a per-call engine_id override.
  • GOOGLE_CUSTOM_SEARCH_API_BASE env
    API root override.
  • GOOGLE_CUSTOM_SEARCH_TIMEOUT_MS env
    Per-request timeout in milliseconds.
  • GOOGLE_CUSTOM_SEARCH_MAX_RETRIES env
    Retries on transient errors (429, and 5xx/network — the API is idempotent GETs only).

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 A1-x-Tech 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“搜索与 AI 记忆”中的其他服务器比较i

  • 星标数多于此分类中其他 5714 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 5714 个服务器的 83% 更新
  • 基础检查结果等于或优于此分类中其他 5714 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Google Custom Search MCP 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:GOOGLE_CUSTOM_SEARCH_API_KEY

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.1.1)于8天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Context7, Codebase Memory, Exa

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Context7

Up-to-date docs for AI agents

作者:upstash广泛使用↓ 97.3万/周★ 6.4万前天更新

电脑或云端

Codebase Memory

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

作者:DeusData广泛使用↓ 1.8万/周★ 4.8万22天前更新

在你的电脑上运行

Exa

Connect AI agents to Exa for web search, content fetching, and multi-step research.

作者:exa-labs广泛使用★ 52132个月前更新

在云端运行✓ exa.ai

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Google Custom Search MCP

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.

  • 3 tools. Web search, image search, and a raw GET escape hatch for parameters the typed tools don't expose.
  • Read-only end to end. The Custom Search JSON API has no write endpoint; every tool is marked read-only and nothing here can modify data.
  • You control the coverage. The engine's configuration decides what gets searched; results and ranking can differ from google.com.
  • The key stays in a header. API-key authentication — no OAuth, no scopes; the key travels in the X-Goog-Api-Key header and never appears in a URL.
  • Not Google Search Console. It cannot report how your own site is indexed or ranked.

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


See it work in a minute

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_start cursor 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.

Contents

  • Quick start
  • What you can ask it to do
  • How a search works
  • What can change
  • Getting access
  • Configuration
  • Data, limits and background work
  • Technical documentation
  • Support

Quick start

You need Node.js 20+, a Google Cloud API key with the Custom Search API enabled and a Programmable Search Engine id (cx).

  1. Get an API key and an engine id.
  2. Add the server to your AI app.
  3. Ask the read-only question above.

Codex

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:

codex mcp add google-custom-search \

--env GOOGLE_CUSTOM_SEARCH_API_KEY=your_api_key \ --env GOOGLE_CUSTOM_SEARCH_ENGINE_ID=your_engine_id \ -- npx -y mcp-google-custom-search@latest

codex mcp list

Codex MCP documentation

Claude Code

claude mcp add \

--env GOOGLE_CUSTOM_SEARCH_API_KEY=your_api_key \ --env GOOGLE_CUSTOM_SEARCH_ENGINE_ID=your_engine_id \ --transport stdio --scope user google-custom-search \ -- npx -y mcp-google-custom-search@latest

claude mcp list

Claude Code MCP documentation

Claude Desktop

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:

{

"mcpServers": { "google-custom-search": { "command": "npx", "args": ["-y", "mcp-google-custom-search@latest"], "env": { "GOOGLE_CUSTOM_SEARCH_API_KEY": "your_api_key", "GOOGLE_CUSTOM_SEARCH_ENGINE_ID": "your_engine_id" } } } }

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.

Claude Desktop MCP documentation

Cursor

Add this to ~/.cursor/mcp.json on macOS/Linux or %USERPROFILE%\.cursor\mcp.json on Windows:

{

"mcpServers": { "google-custom-search": { "type": "stdio", "command": "npx", "args": ["-y", "mcp-google-custom-search@latest"], "env": { "GOOGLE_CUSTOM_SEARCH_API_KEY": "your_api_key", "GOOGLE_CUSTOM_SEARCH_ENGINE_ID": "your_engine_id" } } } }

Cursor MCP documentation

VS Code

Run MCP: Open User Configuration and add:

{

"servers": { "google-custom-search": { "type": "stdio", "command": "npx", "args": ["-y", "mcp-google-custom-search@latest"], "env": { "GOOGLE_CUSTOM_SEARCH_API_KEY": "${input:custom_search_api_key}", "GOOGLE_CUSTOM_SEARCH_ENGINE_ID": "${input:custom_search_engine_id}" } } }, "inputs": [ { "type": "promptString", "id": "custom_search_api_key", "description": "Google Cloud API key", "password": true }, { "type": "promptString", "id": "custom_search_engine_id", "description": "Programmable Search Engine id (cx)" } ] }

Check it with MCP: List Servers.

VS Code MCP documentation

What you can ask it to do

Search the web
  • Find recent tutorials on a topic and summarize the top results.
  • Search only within docs.python.org — or everywhere except a site you distrust.
  • Show the next page of results for the same query.
Narrow the results
  • Only English pages published in the last month.
  • Only PDF files; require an exact phrase or exclude a term.
  • Restrict to one country's content, or to material with specific usage rights.
Find images
  • Find large photos on a topic, with dimensions and thumbnails.
  • Only clipart or line drawings, black and white ones.
  • Show the page each image comes from.
Go beyond the typed tools
  • Call the API with parameters the typed tools don't expose — fields to trim the response, lowRange/highRange, hq.
  • Fetch the raw response envelope with promotions and the full pagemap.

How a search works

  1. Every query runs through a Programmable Search Engine, identified by its 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.
  2. Results come back normalized — title, URL, snippet and metadata — with next_start/previous_start cursors for paging. total_results is Google's estimate and can shrink while paging.
  3. The API returns at most 10 results per call and 100 per query (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.
  4. Image search requires Image search enabled in the engine's control panel; otherwise the API answers 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.

What can change

OperationWhat happensConfirmation boundary
Web search (search)Reads search results from your engineNo change
Image search (search_images)Reads image results from your engineNo change
Raw API request (raw_request)GET against any Custom Search API pathNo 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.

Getting access

Google Custom Search authenticates with an API key; no OAuth and no scopes are involved.

  1. Create or select a Google Cloud project and enable the Custom Search API.
  2. Create an API key under APIs & Services → Credentials. Restricting the key to the Custom Search API is a good habit.
  3. Create a Programmable Search Engine in the control panel and copy its Search engine ID (cx). Enable Search the entire web for open-web search and Image search for the image tool.

Treat the API key as a password. The server sends it in the X-Goog-Api-Key header, never in a URL, so logged or echoed URLs cannot leak it.

Configuration

VariableRequiredDescription
GOOGLE_CUSTOM_SEARCH_API_KEYYesGoogle Cloud API key with the Custom Search API enabled. Secret.
GOOGLE_CUSTOM_SEARCH_ENGINE_IDRecommendedDefault Programmable Search Engine id (cx); tools accept a per-call engine_id override.
GOOGLE_CUSTOM_SEARCH_API_BASENoCustom Search API base URL override.
GOOGLE_CUSTOM_SEARCH_TIMEOUT_MSNoPer-request timeout; default 30000 ms.
GOOGLE_CUSTOM_SEARCH_MAX_RETRIESNoTransient-error retries (429/5xx/network); default 3.

Without credentials the server still starts and completes the MCP handshake; the first tool call explains exactly which variables to set. The one malformed setup is an engine id without an API key — the key cannot be supplied per call, so both must be set together.

Data, limits and background work

  • Requests go to Google. The local server calls the Custom Search JSON API. Its anonymous telemetry contains an installation ID, package version, AI client and platform versions, and tool names — never the API key, search queries, results or tool arguments. For each tool call it also sends the outcome and, on failure, an excerpt of the error text with e-mails, addresses, tokens, numbers of 4+ digits and quoted text replaced by #; a value from your request can appear in it if the error text contains it. Set ASKADS_TELEMETRY=0 to opt out.
  • Google applies a daily quota. Every call from any of the three tools costs one unit of the per-project quota — 100 queries per day free, up to 10,000 per day with billing. On 429, the server backs off honoring Retry-After; because the whole API is idempotent GETs, 5xx and network errors

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx