@yuval1024/chrome-mcp
v1.8.0
Published
Chrome browser control via Model Context Protocol (MCP) - control your browser from AI coding assistants
Downloads
504
Maintainers
Readme
Chrome MCP
Control your Chrome browser from AI coding assistants using the Model Context Protocol (MCP).
Features
- 🌐 Control browser tabs remotely
- 📸 Take screenshots
- 🔍 Get tab information
- 🚀 Navigate tabs
- 🎯 Create and close tabs
- 🔒 Secure connection using browser UUID
Installation
npm install -g @yuval1024/chrome-mcp
# or use directly with npx
npx @yuval1024/chrome-mcpQuick Start
1. Install Chrome Extension
- Download the Chrome extension from releases
- Load it in Chrome as an unpacked extension
- Copy your Browser Secret (UUID) from the extension popup
2. Add to Claude Code
claude mcp add chrome-browser -- npx @yuval1024/chrome-mcpOr add manually to your .claude.json:
{
"mcpServers": {
"chrome-browser": {
"type": "stdio",
"command": "npx",
"args": ["@yuval1024/chrome-mcp"]
}
}
}3. Connect in Claude Code
In your Claude Code conversation, connect to your browser:
// Use the connectToBrowser tool with your browser UUID
connectToBrowser("your-browser-uuid-here")The UUID is displayed in the Chrome extension popup. Keep it secret!
Available Tools
Once connected, you can use these tools in Claude Code:
connectToBrowser(browserSecret)- Connect to your browsergetAllTabs()- Get information about all open tabsgetCurrentUrl()- Get the URL of the active tabtakeScreenshot({ tabId })- Capture a screenshotnavigateTab({ tabId, url })- Navigate to a URLcreateTab({ url, windowId })- Create a new tabcloseTab({ tabId })- Close a tabgetConsoleLogs({ tabId })- Get console logsgetDOMSnapshot({ tabId })- Get DOM structure
Security
- Your browser UUID acts as a password - keep it secret!
- Each browser instance has a unique UUID
- No additional authentication required
- Communication happens through a secure polling mechanism
Command Line Options
npx @yuval1024/chrome-mcp [options]
Options:
-s, --server <url> MCP server URL (default: https://api.browser-mcp.xyz)
--debug Enable debug logging
--version Show version
--help Show helpTroubleshooting
Browser not connecting?
- Make sure the Chrome extension is installed and running
- Check the extension popup shows "Connected" status
- Verify the server URL matches in both extension and CLI
Claude Code can't connect?
- Make sure you've added the MCP server to Claude Code
- Run
connectToBrowser("your-uuid")with the correct UUID - Check Claude Code logs for connection errors
License
MIT
