gemini-app-mcp
Bridges the local agent to the signed-in Gemini Web App (gemini.google.com) and its non-public web endpoints, providing zero-tab prompting (gemini_ask/gemini_poll), model listing and selection, NotebookLM notebook grounding via notebookIds, Gems via gemId, cloud Scheduled Actions (gemini_tasks: list/get/create/update/pause/resume/confirm/delete), conversation history browsing and resume, usage/status checks, image creation, and detached async Deep Research jobs.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
gemini-app-mcp
简体中文 | English
A zero-tab, minimal-permission MCP server that bridges local AI coding agents (Claude Code, Codex, Cursor, Windsurf, T3 Code, etc.) to your already signed-in Gemini Web App (https://gemini.google.com/app)—using your existing Gemini Web subscription with no separate API key, no Chrome restart or CDP debugging port, zero popups, and zero focus stealing.
Disclaimer:
gemini-app-mcpis an unofficial community tool and is not affiliated with or endorsed by Google. It reuses your local signed-in Chrome session and non-public Gemini Web endpoints, which Google may change at any time. Intended strictly for personal local development and research—never use it to bypass login, CAPTCHA, rate limits, or Google's Terms of Service.
Why gemini-app-mcp?
Zero-Tab by Default: Standard prompts, file/directory uploads (small text/code files
<=64KBauto-inlined),create_image,gemini_get_conversation,gemini_list_notebooks(notebookIds),gemini_list_gems(gemId),gemini_tasks(Scheduled Actions),gemini_usage, andgemini_statusall execute directly inside the Chrome MV3 Service Worker without opening a browser tab.Zero-Residue History Cleanup: One-shot
gemini_askcalls use Gemini's native temporary-chat flag and a durable local cleanup queue so automated queries never clutter your Gemini sidebar—even if cancelled mid-stream or timed out. PasskeepInHistory: trueor asessionKeywhenever you want multi-turn persistence.Deep Research Cloud Detach: Uses a brief background tab only to confirm
"Start research", then immediately closes the tab and polls Google's cloud zero-tab for up to 45 minutes.Lock-Free Parallelism & Resilience: Run parallel requests across models (e.g., fast
Neon/ Thinking alongside deepCarbon/ Pro), inspect real-time streaming progress (stage,textChars,thoughtChars), honor exacttimeoutMsbudgets, automatically hand off long sync calls (wait=true) to async at 135s to avoid MCP host timeouts, and batch-poll withgemini_poll(jobIds=[...]).Lightweight Install:
playwrightis an optional dependency—extension mode works without downloading browser binaries.
flowchart LR
A["MCP Client (Claude Code / Codex / Cursor)"] -->|"stdio (--connect)"| B["Local Daemon (127.0.0.1:17321)"]
B <-->|"Loopback WS + Mutual HMAC-SHA256"| C["Chrome MV3 Service Worker (Zero Tabs)"]
C <-->|"Same-Origin Session RPC"| D["gemini.google.com"]Related MCP server: google-labs-mcp
Prerequisites
Node.js
>= 20Google Chrome (or Chromium-based browser such as Edge / Brave, v116+) signed in to
https://gemini.google.com/app
Quick Start (3 Minutes, Cross-Platform)
1. Build & Auto-Pair
git clone https://github.com/Xhhemoing/gemini-app-mcp.git
cd gemini-app-mcp
npm install --omit=optional # or `npm install` if you also want Playwright fallback
npm run build
npm run setupnpm run setup generates a local 64-char HMAC token in your OS app-data folder (bridge.json), writes the gitignored extension/local-config.json for automatic extension pairing, and prints the exact MCP config snippet for your machine.
2. Load the Chrome Extension
Open
chrome://extensionsin Google Chrome (where you are signed in tohttps://gemini.google.com/app).Enable Developer mode (top right).
Click Load unpacked and select this repository's
extension/directory.Click the extension icon—it auto-pairs silently (EN / 中文 UI supported) and shows Connected.
3. Register in Your MCP Client
--connect automatically launches the local loopback background daemon (127.0.0.1:17321) on demand across macOS, Linux, and Windows.
Claude Code CLI:
claude mcp add gemini-app -e GEMINI_DRIVER=extension -- node /abs/path/to/gemini-app-mcp/dist/index.js --connectCursor (.cursor/mcp.json) / Generic MCP JSON:
{
"mcpServers": {
"gemini-app": {
"command": "node",
"args": ["/abs/path/to/gemini-app-mcp/dist/index.js", "--connect"],
"env": {
"GEMINI_DRIVER": "extension"
}
}
}
}Codex (~/.codex/config.toml):
[mcp_servers.gemini-app]
command = "node"
args = ["/abs/path/to/gemini-app-mcp/dist/index.js", "--connect"]
env = { GEMINI_DRIVER = "extension" }Common Workflows
1. Ground Answers on Your NotebookLM Knowledge Base
// Step 1: Discover your NotebookLM notebooks zero-tab
{ "tool": "gemini_list_notebooks", "arguments": {} }
// Step 2: Mount one or more notebooks into a zero-residue ask
{
"tool": "gemini_ask",
"arguments": {
"model": "Neon",
"notebookIds": ["<notebook-id>"],
"prompt": "Summarize the key architecture constraints from these docs.",
"saveToFile": "./docs/research/summary.md"
}
}2. Cloud Scheduled Actions (gemini_tasks)
Create, update, pause, resume, or delete cloud-side recurring Gemini tasks that run on Google's servers with zero local CPU:
{
"tool": "gemini_tasks",
"arguments": {
"action": "create",
"title": "Weekly AI Release Digest",
"prompt": "Summarize major open-source AI agent releases from the past 7 days.",
"unit": "week",
"daysOfWeek": [1],
"hour": 9,
"minute": 0,
"timeZone": "America/Los_Angeles"
}
}Supported actions: list, get, create, update, pause, resume, confirm, delete.
3. Async Deep Research & Batch Polling
// Launch async Deep Research (auto-confirms plan, then detaches to cloud zero-tab)
{
"tool": "gemini_ask",
"arguments": {
"feature": "deep_research",
"wait": false,
"prompt": "Compare WebGPU inference runtimes for browser-side LLMs in 2026.",
"saveToFile": "./docs/research/webgpu-runtimes.md"
}
}
// Poll one or multiple background jobs efficiently
{ "tool": "gemini_poll", "arguments": { "jobIds": ["job_1", "job_2"], "waitMs": 0 } }Security & Privacy Matrix
See SECURITY.md for the full threat model and disclosure policy.
Control | Guarantee (Enforced by |
Minimal Extension Permissions | Only |
Strict Host Permissions | Scoped strictly to |
Loopback Mutual Auth | Bridge binds only |
Zero Popups / Zero Focus Steal | Statically enforced by |
Secret & Symlink Upload Guard | Blocks |
No Anti-Bot / CAPTCHA Bypass | Immediately halts and returns |
Exposed MCP Tools (18)
Core:
gemini_ask,gemini_poll(singlejobIdor batchjobIds),gemini_sessions,gemini_status,gemini_usage,gemini_wait_for_readyKnowledge & Automation:
gemini_list_notebooks(notebookIds),gemini_list_gems(gemId),gemini_tasks(list/get/create/update/pause/resume/confirm/delete)History & Models:
gemini_list_conversations,gemini_get_conversation,gemini_open_conversation,gemini_new_chat,gemini_list_models,gemini_select_modelDOM / Fallback:
gemini_send_message,gemini_stop_generation,gemini_screenshot(Playwright/CDP mode only)
Troubleshooting
Extension shows
Disconnected: Runnpm run setup, then click Load Local Config (or Import bridge.json) in the extension popup and verify your MCP client or daemon is running on port17321.Port
17321already in use: SetGEMINI_EXTENSION_PORT=17322(or another free port) in both your MCP client env and the extension popup.needs_loginorneeds_human_verification: Openhttps://gemini.google.com/appin the same Chrome profile, complete sign-in or human verification manually, then callgemini_status.Multi-account Google Chrome profile: Set
authUser(e.g.,"1"for/u/1/app) in the popup or passauthUser: "1"in tool arguments.Playwright fallback mode: If you explicitly use
GEMINI_DRIVER=playwrightinstead of the extension bridge, install Playwright withnpm install playwright.
Development & Verification
npm run check # Minimal-permission, zero-popup, version-sync & hygiene guardrails
npm run build # TypeScript compile
npm test # Full unit + extension E2E + Playwright integration test suiteLicense
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Let AI agents use any website you're logged in to. Sessions stay encrypted on your machine.
Let AI agents use your real, signed-in Chrome: tabs, clicks, forms, screenshots and video.
Shared memory and context across ChatGPT, Claude, Claude Code, Codex, Cursor and 20+ AI tools
Let AI agents work in your own signed-in Chrome, with approvals and verified results.
Related MCP Servers
- AlicenseBqualityDmaintenanceBridges AI agents (Codex, Claude Code) with a real Chrome session via CDP, enabling Google Search and Google AI interactions through the browser.22MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI coding agents to autonomously generate images, music, and cinematic video directly from their coding environment by connecting to Google Labs and Google Flow through the user's Chrome session.3MIT
- AlicenseAqualityBmaintenanceLets coding agents send questions, progress reports and approved PDFs into the user's own signed-in ChatGPT session through a local Chrome extension, then return the reply and its conversation URL. Keeps one ongoing conversation across devices and blocks duplicate or blind re-sends, all without an OpenAI API key.11MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI coding tools to drive the real Chrome browser you already have open — navigating, clicking, typing, reading pages, taking screenshots, and inspecting cookies, network traffic, and storage from within your existing logged-in sessions. All communication stays local to your machine.1 npmISC