chrome-mcp
Allows LLM agents to control a local chrome instance without taking screenshots
Documentation
Chrome MCP Server
A Model Context Protocol (MCP) server that provides fine-grained control over a Chrome browser instance through the Chrome DevTools Protocol (CDP).
Prerequisites
- Bun (recommended) or Node.js (v14 or higher)
- Chrome browser with remote debugging enabled
Setup
Installing Bun
1. Install Bun (if not already installed):
# macOS, Linux, or WSL
curl -fsSL https://bun.sh/install | bash
# Windows (using PowerShell)
powershell -c "irm bun.sh/install.ps1 | iex"
# Alternatively, using npm
npm install -g bun2. Start Chrome with remote debugging enabled:
# macOS
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
# Windows
start chrome --remote-debugging-port=9222
# Linux
google-chrome --remote-debugging-port=92223. Install dependencies:
bun install4. Start the server:
bun startFor development with hot reloading:
bun devThe server will start on port 3000 by default. You can change this by setting the `PORT` environment variable.
Configuring Roo Code to use this MCP server
To use this Chrome MCP server with Roo Code:
1. Open Roo Code settings
2. Navigate to the MCP settings configuration file at:
3. Add the following configuration to the `mcpServers` object:
{
"mcpServers": {
"chrome-control": {
"url": "http://localhost:3000/sse",
"disabled": false,
"alwaysAllow": []
}
}
}4. Save the file and restart Roo Code to apply the changes.
5. You can now use the Chrome MCP tools in Roo Code to control the browser.
Available Tools
The server provides the following tools for browser control:
navigate
Navigate to a specific URL.
Parameters:
- `url` (string): The URL to navigate to
click
Click at specific coordinates.
Parameters:
- `x` (number): X coordinate
- `y` (number): Y coordinate
type
Type text at the current focus.
Parameters:
- `text` (string): Text to type
clickElement
Click on an element by its index in the page info.
Parameters:
- `selector` (string): Element index (e.g., "0" for the first element)
getText
Get text content of an element using a CSS selector.
Parameters:
- `selector` (string): CSS selector to find the element
getPageInfo
Get semantic information about the page including interactive elements and text nodes.
getPageState
Get current page state including URL, title, scroll position, and viewport size.
Usage
The server implements the Model Context Protocol with SSE transport. Connect to the server at:
- SSE endpoint: `http://localhost:3000/sse`
- Messages endpoint: `http://localhost:3000/message?sessionId=...`
When using with Roo Code, the configuration in the MCP settings file will handle the connection automatically.
Development
To run the server in development mode with hot reloading:
bun devThis uses Bun's built-in watch mode to automatically restart the server when files change.
License
MIT
Frequently asked questions
What is chrome-mcp?
chrome-mcp is Allows LLM agents to control a local chrome instance without taking screenshots
How do I install chrome-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is chrome-mcp open source?
Yes — it is hosted on GitHub at https://github.com/lxe/chrome-mcp and has 42 stars.
Related MCP tools
🍒 Cherry Studio is a desktop client that supports for multiple LLM providers. Built for the Model Context Protocol to enhance AI capabilities.
Enhanced ChatGPT Clone: Features Agents, MCP, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini...
FastGPT is a knowledge-based platform built on the LLMs, offers a comprehensive suite of out-of-the-box capabilities such as data processing, RAG retrieval, ...
Composio equips your AI agents & LLMs with 100+ high-quality integrations via function calling for the Model Context Protocol. Enhance AI assistants with powerf
📦 Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file. Perfect for when you need to feed your codebase to Large Lan...
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Ag...
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP