Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
MCP server for Google Custom Search: web and image search via a Programmable Search Engine.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
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ค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด 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": "ใส่ค่าของคุณ",
"GOOGLE_CUSTOM_SEARCH_ENGINE_ID": "ใส่ค่าของคุณ",
"GOOGLE_CUSTOM_SEARCH_API_BASE": "ใส่ค่าของคุณ",
"GOOGLE_CUSTOM_SEARCH_TIMEOUT_MS": "ใส่ค่าของคุณ",
"GOOGLE_CUSTOM_SEARCH_MAX_RETRIES": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add google-custom-search --env GOOGLE_CUSTOM_SEARCH_API_KEY='ใส่ค่าของคุณ' --env GOOGLE_CUSTOM_SEARCH_ENGINE_ID='ใส่ค่าของคุณ' --env GOOGLE_CUSTOM_SEARCH_API_BASE='ใส่ค่าของคุณ' --env GOOGLE_CUSTOM_SEARCH_TIMEOUT_MS='ใส่ค่าของคุณ' --env GOOGLE_CUSTOM_SEARCH_MAX_RETRIES='ใส่ค่าของคุณ' -- npx -y mcp-google-custom-searchเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"google-custom-search": {
"command": "npx",
"args": [
"-y",
"mcp-google-custom-search"
],
"env": {
"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": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"google-custom-search": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-google-custom-search"
],
"env": {
"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": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
GOOGLE_CUSTOM_SEARCH_ENGINE_ID envGOOGLE_CUSTOM_SEARCH_API_BASE envGOOGLE_CUSTOM_SEARCH_TIMEOUT_MS envGOOGLE_CUSTOM_SEARCH_MAX_RETRIES envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub A1-x-Tech ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: GOOGLE_CUSTOM_SEARCH_API_KEY
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.1.1) เข้า registry 7 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี Context7, Codebase Memory, Exa
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
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).
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
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 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" } } } }
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.
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.
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.
| Variable | Required | Description |
|---|---|---|
GOOGLE_CUSTOM_SEARCH_API_KEY | Yes | Google Cloud API key with the Custom Search API enabled. Secret. |
GOOGLE_CUSTOM_SEARCH_ENGINE_ID | Recommended | Default Programmable Search Engine id (cx); tools accept a per-call engine_id override. |
GOOGLE_CUSTOM_SEARCH_API_BASE | No | Custom Search API base URL override. |
GOOGLE_CUSTOM_SEARCH_TIMEOUT_MS | No | Per-request timeout; default 30000 ms. |
GOOGLE_CUSTOM_SEARCH_MAX_RETRIES | No | Transient-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.
#; a value from your request can appear in it if the error text contains it. Set ASKADS_TELEMETRY=0 to opt out.429, the server backs off honoring Retry-After; because the whole API is idempotent GETs, 5xx and network errorsตัดมาแค่ช่วงต้น อ่านต่อใน repo