google-ai-mode
MCP server for free Google AI Mode search with citations. Query optimization, CAPTCHA handling, multi-agent support. Works with Claude Code, Cursor, Cline, Windsurf.
claude mcp add --transport stdio pleaseprompto-google-ai-mode-mcp npx google-ai-mode-mcp@latest
How to use
This MCP server connects any compatible code agent (Claude, Cursor, Cline, Windsurf, Zed, etc.) to Google's AI Mode, enabling AI-synthesized research results with inline citations from 100+ sources. Once running, your agent can issue natural language research queries and receive a single, grounded answer that includes source citations and a clean Markdown format. The server handles the heavy lifting by launching a stealth browser, performing the Google AI Mode search, extracting the AI-generated answer and citations, and delivering the formatted result back to your agent. It supports follow-up context across queries and saves results for later reference, making it ideal for complex research tasks, technical comparisons, regulatory summaries, and product evaluations.
To use it, integrate the MCP server with your agent according to your workflow (e.g., Claude Code, Codex, Cursor, Windsurf, or Zed). The typical setup is to run the MCP via npx google-ai-mode-mcp@latest and point your agent to the provided mcpServers configuration. When a query is issued, the server automatically queries Google AI Mode, parses the synthesized answer, and returns a citation-rich, structured response suitable for immediate display or further processing by your agent.
How to install
Prerequisites:
- Node.js and npm installed on your system
- Access to run MCP servers and modify your agent's MCP configuration
Install and run using npx (no global install required):
- Ensure you have an MCP config file in your agent environment, for example:
{ "mcpServers": { "google-ai-mode": { "command": "npx", "args": ["google-ai-mode-mcp@latest"] } } }
- Run or reload your MCP configuration so the agent can discover the google-ai-mode server. If you prefer a direct one-off run, you can execute:
npx google-ai-mode-mcp@latest
- (Optional) Update the package when needed:
npm update -g google-ai-mode-mcp
- If your agent requires a specific environment (like headless browser settings), consult the README for CAPTCHA handling and browser profile guidance.
Additional notes
Tips and common considerations:
- CAPTCHA handling may occur on the first run as a browser profile is created. If you encounter issues, you can switch to a visible browser temporarily or use a non-headless mode to solve CAPTCHAs manually.
- Results are saved to platform-specific locations (Linux/macOS/Windows) as described in the Quick Start section of the README.
- The server enforces English results by default unless configured otherwise; clear the browser profile if language issues arise.
- If you encounter repeated CAPTCHAs, consider adding short delays between queries or using the explicit visible browser approach as documented.
- The MCP config shown above uses the canonical npx invocation; you can adapt the command/args to fit your agent’s preferred workflow or include additional runtime flags if necessary.
Related MCP Servers
ollama
An MCP Server for Ollama
agent-security-scanner
Security scanner MCP server for AI coding agents. Prompt injection firewall, package hallucination detection (4.3M+ packages), 1000+ vulnerability rules with AST & taint analysis, auto-fix.
crawl4ai
🕷️ A lightweight Model Context Protocol (MCP) server that exposes Crawl4AI web scraping and crawling capabilities as tools for AI agents. Similar to Firecrawl's API but self-hosted and free. Perfect for integrating web scraping into your AI workflows with OpenAI Agents SDK, Cursor, Claude Code, and other MCP-compatible tools.
omega-memory
Persistent memory for AI coding agents
web-developer
A Model Context Protocol (MCP) server that provides web development tools for AI assistants. Enables browser automation, DOM inspection, network monitoring, and console analysis through Playwright.
openapi-directory
An MCP Server for APIs.guru remarkable Wikipedia for Web APIs. Providing tools, prompts and resources to help eliminate LLM Coding Agent hallucinations.