MCP server for Google Web Search using Gemini API
Google Web Search MCP becomes available to MCP clients through the google web search mcp mcp server. MCP server for Google Web Search using Gemini API.
An MCP (Model Context Protocol) server that provides Google Web Search functionality using the Gemini API. This server is extracted from the official Gemini CLI's web search tool.
Once connected, the assistant can call these 2 tools directly:
Building — The Building tool exposed by this serverTesting — The Testing tool exposed by this serverThe server is distributed via npm as gemini-google-web-search-mcp, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.
Before the server will start you need to supply 6 environment variables: GOOGLE_API_KEY, USE_OAUTH, OAUTH_CLIENT_ID, OAUTH_CLIENT_SECRET, GOOGLE_CLOUD_PROJECT, GEMINI_API_KEY. Keep credentials in your client's env block or a secrets manager rather than committing them.
Search and scraping servers exist to fix the single most common failure of any assistant: answering from stale training data instead of what is on the web today. Google Web Search MCP sits in that group, and the shape of its toolset — Building, Testing — tells you what it is really for. Worth comparing against the other search web scraping servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.
| Tool | What it does |
|---|---|
| Building | The Building tool exposed by this server. |
| Testing | The Testing tool exposed by this server. |
{
"mcpServers": {
"google-web-search": {
"command": "node",
"args": ["/path/to/gemini-google-web-search-mcp/dist/index.js"],
"env": {
"GOOGLE_API_KEY": "your-api-key-here"
}
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| GOOGLE_API_KEY | Credential the server authenticates with. | Yes |
| USE_OAUTH | Configuration value read at startup. | Optional |
| OAUTH_CLIENT_ID | Configuration value read at startup. | Optional |
| OAUTH_CLIENT_SECRET | Credential the server authenticates with. | Yes |
| GOOGLE_CLOUD_PROJECT | Configuration value read at startup. | Optional |
| GEMINI_API_KEY | Credential the server authenticates with. | Yes |
The simplest web tool that matters — fetch any URL and get model-ready markdown back.
Industrial-strength web extraction — render, scrape, crawl and search entire sites into clean markdown.
Puppeteer-powered browser control that drives pages from the accessibility tree instead of pixels.
Search built for AI, not humans — semantic web search that returns model-ready content, plus code context.
Answers, not links — delegate questions to Perplexity's search-grounded models and get cited responses back.
Put 6,000+ pre-built scrapers at your assistant's fingertips through one MCP endpoint.