Google Custom Search MCP Server
by a1-x-techio.github.A1-x-Tech/mcp-google-custom-searchv1.0.0
MCP server for Google Custom Search: web and image search via a Programmable Search Engine.
context tax
queued
security
queued
cold start
queued
freshness
Active6d ago
Install Google Custom Search MCP server
Install in Claude Code
claude mcp add google-custom-search -e GOOGLE_CUSTOM_SEARCH_API_KEY='<google-custom-search-api-key>' -- npx -y mcp-google-custom-searchInstall in Cursor
{
"mcpServers": {
"google-custom-search": {
"command": "npx",
"args": [
"-y",
"mcp-google-custom-search"
],
"env": {
"GOOGLE_CUSTOM_SEARCH_API_KEY": "<google-custom-search-api-key>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"google-custom-search": {
"command": "npx",
"args": [
"-y",
"mcp-google-custom-search"
],
"env": {
"GOOGLE_CUSTOM_SEARCH_API_KEY": "<google-custom-search-api-key>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"google-custom-search": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-google-custom-search"
],
"env": {
"GOOGLE_CUSTOM_SEARCH_API_KEY": "<google-custom-search-api-key>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"google-custom-search": {
"command": "npx",
"args": [
"-y",
"mcp-google-custom-search"
],
"env": {
"GOOGLE_CUSTOM_SEARCH_API_KEY": "<google-custom-search-api-key>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| GOOGLE_CUSTOM_SEARCH_API_KEY | yes | yes | Google Cloud API key with the Custom Search API enabled. Treat it as a secret. |
| GOOGLE_CUSTOM_SEARCH_ENGINE_ID | — | — | Default Programmable Search Engine id (cx). Tools accept a per-call engine_id override. |
| GOOGLE_CUSTOM_SEARCH_API_BASE | — | — | API root override. |
| GOOGLE_CUSTOM_SEARCH_TIMEOUT_MS | — | — | Per-request timeout in milliseconds. |
| GOOGLE_CUSTOM_SEARCH_MAX_RETRIES | — | — | Retries on transient errors (429, and 5xx/network — the API is idempotent GETs only). |
Freshness
Active — last maintenance signal 6d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-04 · 6d ago · GitHub
Latest release
2026-09-23 · 16d ago · GitHub · v1.0.0
Package published
no data · npm/PyPI
Registry entry updated
2026-09-23 · 16d ago · official registry · v1.0.0
FAQ
›How do I install the Google Custom Search MCP server in Claude Code?
Run: claude mcp add google-custom-search -e GOOGLE_CUSTOM_SEARCH_API_KEY='<google-custom-search-api-key>' -- npx -y mcp-google-custom-search. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Google Custom Search require an API key?
Yes. It expects GOOGLE_CUSTOM_SEARCH_API_KEY, of which 1 is a secret.
›Can I use Google Custom Search as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Google Custom Search in the official MCP registry?
Yes, as io.github.A1-x-Tech/mcp-google-custom-search.
Alternatives to Google Custom Search
Other web search MCP servers.