gemini-webapi-mcp
by AndyShaman·★ 27·Score 44
MCP server for Google Gemini that provides image generation, editing, chat, and file analysis via browser cookies.
Overview
This MCP server enables interaction with Google Gemini services without requiring API keys, instead using Chrome browser cookies for authentication. It supports advanced features like automatic 2x upscaling of generated images, lossless watermark removal using reverse alpha blending, and file analysis capabilities. The server exposes multiple tools including image generation, file upload, URL analysis, and multi-turn chat functionality.
Try asking AI
After installing, here are 6 things you can ask your AI assistant:
When to choose this
Choose this when you want to access Google Gemini's capabilities without dealing with API keys or authentication hassles, especially for image generation with automatic upscaling and watermark removal.
When NOT to choose this
Don't choose this if you need a stable API for production applications, as it relies on reverse-engineering Google's web interface which could break without notice.
Tools this server exposes
6 tools extracted from the READMEgemini_generate_imageGenerate new images or edit existing ones with Gemini
gemini_upload_fileAnalyze files like videos, images, PDFs, and documents
gemini_analyze_urlAnalyze content from URLs like YouTube videos or web pages
gemini_chatHave a text conversation with Gemini, single or multi-turn
gemini_start_chatStart a new multi-turn chat session with Gemini
gemini_resetReinitialize the client when authentication errors occur
Comparable tools
Installation
Installation
**From GitHub (no clone needed):**
uv run --with "gemini-webapi-mcp @ git+https://github.com/AndyShaman/gemini-webapi-mcp.git" gemini-webapi-mcp**Local install:**
git clone https://github.com/AndyShaman/gemini-webapi-mcp.git
cd gemini-webapi-mcp
uv sync
uv run gemini-webapi-mcp**Claude Desktop Configuration:**
Add to claude_desktop_config.json:
{
"mcpServers": {
"gemini": {
"command": "uv",
"args": ["run", "--with", "gemini-webapi-mcp @ git+https://github.com/AndyShaman/gemini-webapi-mcp.git", "gemini-webapi-mcp"]
}
}
}FAQ
- Does this require API keys?
- No, this MCP server uses browser cookies for authentication instead of API keys.
- How do I authenticate with multiple Google accounts?
- Set the GEMINI_ACCOUNT_INDEX environment variable to specify which account to use (0 for first, 1 for second, etc.)
Compare gemini-webapi-mcp with
Last updated · Auto-generated from public README + GitHub signals.