SG

sophomoresty/gemini-search-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

189 stars 34 forks 质量 70 趋势 4

sophomoresty/gemini-search-mcp 是从 https://github.com/sophomoresty/gemini-search-mcp. 导入的 MCP 服务器候选

概览

sophomoresty/gemini-search-mcp 是从 https://github.com/sophomoresty/gemini-search-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

MCP服务器支持Google AI模式(Gemini)支持的网页搜索。免费、无限、无API密钥。

这是什么

这是一个MCP服务器,允许任何AI代理(Claude、Cursor、Windsurf等)使用谷歌的AI模式实时搜索网页——同样由Gemini驱动的搜索,也存在于谷歌搜索的“AI模式”标签中。

可以把它看作是Grok MCP / Tavily / SerpAPI的免费、无限替代品,并由谷歌的搜索索引支持。

特色

  • 免费:无API密钥,无订阅,无配额
  • 无限制:60+ 请求/分钟,零速率限制
  • 谷歌质量:由Gemini + Google搜索支持(基于真实网页结果)
  • MCP 原生用户:支持 Claude Desktop、Claude Code、Cursor、Windsurf、Cline
  • 还提供 OpenAI API:/v1/chat/completions 适用于非 MCP 客户端
  • 快速:平均响应时间~1.5秒

快速启动

MCP 服务器(针对 AI 代理)

OpenAI 兼容 API

MCP集成

克劳德·科德

克劳德桌面

加到claude_desktop_config.json:

光标 / 风帆冲浪

同样的模式——指向 gemini-search-mcp 作为一个 stdio MCP 服务器。

MCP工具

工具 描述

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

gemini-search-mcp

MCP server for web search powered by Google AI Mode (Gemini). Free, unlimited, no API key.

What is this

An MCP server that gives any AI agent (Claude, Cursor, Windsurf, etc.) the ability to search the web in real-time using Google’s AI Mode — the same Gemini-powered search that lives in the “AI Mode” tab on Google Search.

Think of it as a free, unlimited alternative to Grok MCP / Tavily / SerpAPI, backed by Google’s search index.

Features

  • Free: No API key, no subscription, no quota
  • Unlimited: 60+ requests/min with zero rate limiting
  • Google quality: Powered by Gemini + Google Search (grounded in real web results)
  • MCP native: Works with Claude Desktop, Claude Code, Cursor, Windsurf, Cline
  • Also ships OpenAI API: /v1/chat/completions for non-MCP clients
  • Fast: ~1.5s average response time

Quick Start

pip install -e .

# Optional: install the undetected-chromedriver backend for CAPTCHA probes.
pip install -e '.[undetected]'

MCP Server (for AI agents)

gemini-search-mcp

OpenAI-compatible API

gemini-search --port 8080

MCP Integration

Claude Code

claude mcp add gemini-search -- gemini-search-mcp

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "gemini-search": {
      "command": "gemini-search-mcp",
      "args": [],
      "env": {
        "CDP_URL": "http://127.0.0.1:9222"
      }
    }
  }
}

Cursor / Windsurf

Same pattern — point to gemini-search-mcp as an stdio MCP server.

MCP Tools

Tool Description
web_search(query) Search the web and get a synthesized answer grounded in real-time results
ask(prompt) General question — AI Mode auto-decides whether to search the web

Examples

web_search("latest AI regulation news 2026")
→ "The EU AI Act enforcement began on June 1, 2026, requiring..."

web_search("Bitcoin price today")
→ "As of June 30, 2026, Bitcoin is trading at $59,687 USD..."

ask("what is 1847 * 293")
→ "541171"

OpenAI API Usage

curl http://localhost:8080/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{"model":"gemini-search","messages":[{"role":"user","content":"What happened in the news today?"}]}'
Field Value
Base URL http://localhost:8080/v1
API Key anything
Model gemini-search

Environment Variables

Variable Default Description
CDP_URL (none) Chrome DevTools URL. If set, connects to existing Chrome instead of launching one
BROWSER_CHANNEL chrome Browser to use: chrome, msedge, chromium
HEADLESS 1 Set to 0 to show browser window
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "gemini-search": { "command": "gemini-search-mcp", "args": [], "env": { "CDP_URL": "http://127.0.0.1:9222" } } } }