gemini-webapi-mcp
by AndyShaman·★ 27·综合分 44
Google Gemini 的 MCP 服务器,通过浏览器 cookies 提供图像生成、编辑、聊天和文件分析功能。
概述
这个 MCP 服务器允许与 Google Gemini 服务进行交互,无需 API 密钥,而是使用 Chrome 浏览器 cookies 进行身份验证。它支持高级功能,如自动 2x 倍放大生成的图像、使用反向 alpha 混合无损去除水印,以及文件分析功能。服务器提供多个工具,包括图像生成、文件上传、URL 分析和多轮聊天功能。
试试问 AI
装完之后,这里有 6 个你可以让 AI 做的事:
什么时候选它
当你想使用 Google Gemini 的功能,又不想处理 API 密钥或认证问题,特别是需要图像生成和自动放大、去水印功能时,选择这个服务器。
什么时候不要选它
如果你需要用于生产应用的稳定 API,不要选择这个服务器,因为它依赖反向工程 Google 的网络接口,可能会在没有通知的情况下失效。
此 server 暴露的工具
从 README 抽取出 6 个工具gemini_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
可对比工具
安装
安装
**从 GitHub 安装(无需克隆):**
uv run --with "gemini-webapi-mcp @ git+https://github.com/AndyShaman/gemini-webapi-mcp.git" gemini-webapi-mcp**本地安装:**
git clone https://github.com/AndyShaman/gemini-webapi-mcp.git
cd gemini-webapi-mcp
uv sync
uv run gemini-webapi-mcp**Claude Desktop 配置:**
添加到 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
- 这需要 API 密钥吗?
- 不需要,此 MCP 服务器使用浏览器 cookies 进行身份验证,而不是 API 密钥。
- 如何使用多个 Google 账户进行身份验证?
- 设置 GEMINI_ACCOUNT_INDEX 环境变量来指定要使用的账户(0 表示第一个,1 表示第二个,等等)
gemini-webapi-mcp 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。