Chrome MCP 服务器 logo

Chrome MCP 服务器

Community
lxe

Allows LLM agents to control a local chrome instance without taking screenshots

Publisherlxe
Repositorychrome-mcp
LanguageTypeScript
Forks
11
Stars
49
Available tools
0
Transport typestreamable-http
Categories
Links
  • Connect tools to AI workflows

    Chrome MCP 服务器 exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    49 stars and 11 forks from the linked repository.

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):
bash
# 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 bun
  1. Start Chrome with remote debugging enabled:

    bash
    # 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=9222
  2. Install dependencies:

bash
bun install
  1. Start the server:
bash
bun start

For development with hot reloading:

bash
bun dev

The 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:

    • macOS: ~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json
    • Windows: %APPDATA%\Code\User\globalStorage\rooveterinaryinc.roo-cline\settings\cline_mcp_settings.json
    • Linux: ~/.config/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json
  3. Add the following configuration to the mcpServers object:

json
{
  "mcpServers": {
    "chrome-control": {
      "url": "http://localhost:3000/sse",
      "disabled": false,
      "alwaysAllow": []
    }
  }
}
  1. Save the file and restart Roo Code to apply the changes.

  2. 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:

bash
bun dev

This uses Bun's built-in watch mode to automatically restart the server when files change.

License

MIT

Use Chrome MCP 服务器 MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Chrome MCP 服务器 is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP connects through a hosted MCP server URL in TypingMind.

Add an MCP server URL

Use this when Chrome MCP 服务器 is already hosted remotely or your team wants one shared connector that multiple users can access.

1

Open MCP connectors

In TypingMind, go to Plugins, open MCP connectors, then choose Add URL.

  1. Open TypingMind in your browser.
  2. Go to Plugins.
  3. Open MCP connectors.
  4. Click Add URL.
TypingMind Add Custom MCP Server URL form
2

Paste the server URL

Enter the MCP server URL from the provider in the Server URL field. Add a connection name, description, icon, custom HTTP headers, or OAuth client settings if the server requires them.

  1. Paste the MCP server URL from the provider into the Server URL field.
  2. Enter a connection name for Chrome MCP 服务器.
  3. Add a description and icon if you want it to be easier to identify.
  4. Add custom HTTP headers or OAuth client details if the server requires authentication.
3

Create the connection

Click Create connection, then return to the Plugins list and confirm the new MCP connection is active.

  1. Click Create connection.
  2. Return to the MCP connectors list.
  3. Confirm the Chrome MCP 服务器 connection appears as active.
  4. Refresh the plugin list if the connection does not appear immediately.
4

Switch models without reconnecting

Start a chat with your preferred model, enable the Chrome MCP 服务器 tools from Plugins, and switch to another model whenever needed. The MCP connection stays available to the TypingMind workspace.

  1. Start a new chat in TypingMind.
  2. Select the AI model you want to use.
  3. Enable the Chrome MCP 服务器 tools from Plugins.
  4. Ask the model to use the tool when needed.
  5. Switch to another AI model and reuse the same MCP connection.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Chrome MCP 服务器 to help me with this task?
Chrome MCP 服务器
Sure. I read it.
Here is what I found using Chrome MCP 服务器.

Frequently asked questions

What is the Chrome MCP 服务器 MCP server used for?

Chrome MCP 服务器 is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Chrome MCP 服务器 MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Chrome MCP 服务器 with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Chrome MCP 服务器 MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Chrome MCP 服务器 connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Chrome MCP 服务器 MCP to TypingMind?

Chrome MCP 服务器 can be connected in TypingMind by adding its hosted MCP server URL. This is useful when you want a remote MCP connection that is available from your TypingMind workspace.

What tools does Chrome MCP 服务器 MCP provide in TypingMind?

Chrome MCP 服务器 exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Chrome MCP 服务器 MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Chrome MCP 服务器 requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇