gemini-in-chrome
Allows the agent to open GitHub pages such as notifications in the user's real Chrome, read visible content, and interact with them through clicks and typing while using existing logins.
Allows the agent to open Wikipedia, perform searches, and read article content in a real Chrome tab.
Allows the agent to open and interact with YouTube pages in the user's Chrome, using existing logins and reading page content.
Allows the agent to open YouTube Studio pages, read channel or video stats, and interact with Studio controls, including elements inside shadow DOM.
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-in-chrome is a small MCP server that gives an AI agent (built for
Gemini through agy, works with any MCP client) the same kind of browser control that "Claude in Chrome" gives Claude:
it opens a tab in your Chrome, reads the page, and clicks and types with real mouse and keyboard events, while you watch.
Your Chrome, your logins. Attaches through Chrome's own official remote-debugging switch. Nothing to install in the browser.
You can see it work. An animated gradient ring, a cursor labelled Gemini, click ripples, a highlight on whatever it is about to press, a live status badge, and a tab titled
✨ Gemini working.It stays out of your way. Works in a background tab, so your current tab, focus and cursor stay yours.
Safe by default. Only sites you allow. Uploads only from folders you allow. Leaves a blocked page the moment it lands on one.
Reads pages like a person, but precisely. Every action returns a screenshot with numbered boxes plus a list of the clickable elements, including inside shadow DOM (YouTube Studio, web components).
Quick start
You need Python 3.10+, Chrome 144 or newer, and agy (or another MCP client).
pip install git+https://github.com/Inder782/gemini-in-chrome
gemini-in-chrome install # registers the tools and a skill with agy
gemini-in-chrome allow youtube.com # sites the agent may use (a few are allowed by default)
gemini-in-chrome doctor # checks everythingThen, once, in Chrome open chrome://inspect/#remote-debugging and tick
Allow remote debugging for this browser instance. Keep Chrome open. Chrome asks you to click Allow the first time
the agent connects.
Now just talk to agy:
Open Wikipedia, search for Aurora, and tell me what causes it.
Go to my GitHub notifications and tell me what needs a reply.
Open this YouTube Studio link and read me the stats for my latest video.
Watch the tab marked ✨ Gemini working do it.
Related MCP server: MEXX-Browser-Agent
Tools
Tool | What it does |
| Opens a new background tab and returns the page view |
| Screenshot with numbered boxes + the numbered element list |
| The visible text of the page (cheaper than looking, great for articles) |
| Clicks element |
| Clicks a coordinate (canvas, charts, maps) |
| Clears the field, types, optionally presses Enter |
| Presses a key (Enter, Tab, Escape, ...) |
| Scrolls the page |
| History back / wait for something to load |
| Hands a file to a file picker (only from |
| Closes the agent's tab |
Every action takes an optional note, shown to you in the page badge ("Searching for aurora photos").
How it works
flowchart LR
A[agy / Gemini] -- MCP tools --> B[gemini-in-chrome server]
B -- Chrome DevTools Protocol --> C[(your Chrome)]
C -- new background tab --> D[page + overlay]
D -- screenshot + numbered elements --> AThe server connects to your running Chrome using the
DevToolsActivePortfile that Chrome writes when you switch on remote debugging.It creates a new background tab, so nothing you are doing is interrupted.
On every step it reads the page (including shadow DOM), draws numbered boxes, takes a screenshot and sends both to the model.
The model picks one action. The server performs it with real mouse and keyboard events, then checks that the page is still on an allowed site.
The overlay (glow, cursor, badge, tab marker) is drawn with plain DOM calls, so it also works on sites with strict Trusted Types such as YouTube.
Safety model
You are handing an AI the keys to a signed-in browser, so the defaults are conservative. Read SECURITY.md.
Allow-list. Only
allowed_hostscan be opened, and if a click lands elsewhere the server goes back and tells the model. Manage it withgemini-in-chrome allow <site>/deny <site>.Uploads are off until you set
upload_dirs. Even then only files inside those folders can be sent.Page text is data, never instructions. The bundled skill and tool descriptions tell the model so, and to stop before payments, deletions, sending messages or entering passwords.
Chrome asks you to approve remote-debugging connections.
Configuration
~/.gemini-in-chrome/config.json (see gemini-in-chrome config). Only the keys you change are stored.
Key | Default | Meaning |
|
|
|
| a few safe sites | Sites the agent may open (subdomains included). |
|
| Folders |
|
|
|
|
| Text on the cursor, badge and tab |
| Google-ish | Gradient colours of the ring |
|
| Turn the visual layer off (numbered boxes stay) |
Change a value with gemini-in-chrome set upload_dirs '["C:/clips"]'.
Older Chrome, or you don't want to touch your own browser? Run gemini-in-chrome set connect launch, then
gemini-in-chrome launch, sign in to the sites you need in that separate window, and you are set.
Other MCP clients
gemini-in-chrome install --client printprints a ready-to-paste mcpServers block (Gemini CLI, Claude Code, and others). The server speaks standard MCP over stdio.
Status
Early (0.1). Used day to day on Windows 11 with Chrome 157 and agy. The test suite (34 tests, headless Chrome) runs in CI on
Windows and Ubuntu. macOS is implemented but not yet tested, reports are very welcome. See CONTRIBUTING.md.
FAQ
Does it work with Claude, ChatGPT or other models? The server is model-agnostic MCP, so any MCP client can use it.
It is named and tuned for Gemini through agy.
Why not a Chrome extension? Chrome 144 added an official way to attach to your own browser. Using it means nothing to install, review or keep updated in your browser.
Will it work while I use Chrome? Yes. It works in a background tab and does not move your cursor or focus
(focus_tab: "never").
Is it affiliated with Google? No. This is an independent open-source project. "Gemini" and "Chrome" are trademarks of Google LLC.
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Let AI agents use your real, signed-in Chrome: tabs, clicks, forms, screenshots and video.
Let AI agents work in your own signed-in Chrome, with approvals and verified results.
Let your AI agent operate any website through a real, logged-in browser session.
Let AI agents use any website you're logged in to. Sessions stay encrypted on your machine.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceLets AI assistants control your real Chrome browser to perform web tasks like reading pages, taking screenshots, clicking, and typing, using your existing logged-in sessions.145MIT
- AlicenseNot gradedqualityCmaintenanceConnects AI agents to your existing daily-driver Chrome so they can inspect, extract from, record, and replay workflows across background tabs without stealing cursor focus, breaking 2FA/SSO sessions, or leaking secrets. A deterministic R0–R4 risk firewall gates state-changing and destructive actions behind human approval.2Apache 2.0
- AlicenseNot gradedqualityBmaintenanceLets AI agents work in existing Chrome tabs using the browser and logins you already have, while routing sensitive actions through signed owner approval.5Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to drive the Chrome, Brave, or Edge browser you are already logged into, working in a tab of its own with a visible cursor and real trusted input. You can pause, take over, or hand back control at any time, and consequential actions such as submitting, paying, sending, deleting, or uploading wait for your approval.1Apache 2.0