Chrome Browser Automation

by qoxogus

2 stars
282 downloads
Not rated
GitHub

About

Enables browser automation through Selenium WebDriver, allowing direct interaction with Chrome for web scraping, testing, and navigation tasks without requiring complex automation code.

Details

Author
qoxogus
Repository
qoxogus/spring-ai-chrome-mcp-server
GitHub stars
2
Downloads
282
Categories
Productivity, Design, Developer Tools, AI, Infrastructure, Automation, Other
Tags
#web

- Open and manage multiple Chrome browser instances.
- Perform Google searches and navigate to URLs.
- Click on links with specific text.
- Take screenshots of the current page.
- Input text into fields and extract page text.
- Manage tabs: open, close, switch, and list.
- Retrieve and manage cookies.
- Close specific browsers or all browsers.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Chrome Browser Automation
    Command (node, npx, python, etc.) /Users/baetaehyeon/Library/Java/JavaVirtualMachines/corretto-21.0.5-1/Contents/Home/bin/java
    Arguments
    • Argument 1 -Dspring.ai.mcp.server.stdio=true
    • Argument 2 -jar
    • Argument 3 /Users/baetaehyeon/dev/chrome-mcp-server/build/libs/chrome-mcp-server-0.0.1.jar

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

1. 브라우저 열어줘
2. MCP 검색해줘
3. 블로그 하나 들어가서 내용 요약해줘
4. 새 탭 열고, 구글 접속해줘
5. 오늘의 환율 검색해줘
6. 브라우저 닫아줘

spring-ai-chrome-mcp-server-running-example.gif

open_browser

Open a new browser window with the default Google page.

open_browser_by_browser_id

Open a new browser window using a specific browser ID.

google_search

Perform a Google search using the default browser.

google_search_by_browser_id

Perform a Google search using a specific browser ID.

navigate_to_url

Navigate to a specified URL in the default browser.

navigate_to_url_by_browser_id

Navigate to a specified URL using a specific browser ID.

click_link_with_text

Click a link with the specified text in the default browser.

click_link_with_text_by_browser_id

Click a link with the specified text using a specific browser ID.

take_screenshot

Take a screenshot of the current page in the default browser.

take_screenshot_by_browser_id

Take a screenshot of the current page using a specific browser ID.

get_page_title

Retrieve the title of the current page in the default browser.

get_page_title_by_browser_id

Retrieve the title of the current page using a specific browser ID.

input_text

Input specified text into a field in the default browser.

input_text_by_browser_id

Input specified text into a field using a specific browser ID.

extract_page_text

Extract the text content of the current page in the default browser.

extract_page_text_by_browser_id

Extract the text content of the current page using a specific browser ID.

get_cookies

Retrieve cookies for the current page in the default browser.

get_cookies_by_browser_id

Retrieve cookies for the current page using a specific browser ID.

open_new_tab

Open a new tab in the default browser.

open_new_tab_by_browser_id

Open a new tab using a specific browser ID.

open_new_tab_with_url

Open a new tab with a specified URL in the default browser.

open_new_tab_with_url_by_browser_id

Open a new tab with a specified URL using a specific browser ID.

close_current_tab

Close the currently active tab in the default browser.

close_current_tab_by_browser_id

Close the currently active tab using a specific browser ID.

switch_to_tab

Switch to a specified tab in the default browser.

switch_to_tab_by_browser_id

Switch to a specified tab using a specific browser ID.

get_tab_list

Retrieve a list of open tabs in the default browser.

get_tab_list_by_browser_id

Retrieve a list of open tabs using a specific browser ID.

close_all_tabs_except_current

Close all tabs except the currently active one in the default browser.

close_all_tabs_except_current_by_browser_id

Close all tabs except the currently active one using a specific browser ID.

close_browser

Close the currently active browser.

close_browser_by_browser_id

Close a browser using a specific browser ID.

close_all_browsers

Close all open browsers.

> 각각의 브라우저는 ID로 관리됩니다. (여러개의 브라우저를 띄울 수 있습니다, 세팅하지 않을 시 default)
> 각각의 Tab은 인덱스로 관리됩니다.
>
> ex1) 브라우저 열어줘(default google page) -> XX 검색해줘
> ex2) 브라우저 ID 1로 열어줘 -> 새 탭 인덱스 2로 열고 구글 접속해줘 -> 2 인덱스 탭에서 XX 검색해줘
open_browser
open_browser_by_browser_id
google_search
google_search_by_browser_id
navigate_to_url
navigate_to_url_by_browser_id
click_link_with_text
click_link_with_text_by_browser_id
take_screenshot
take_screenshot_by_browser_id
get_page_title
get_page_title_by_browser_id
input_text
input_text_by_browser_id
extract_page_text
extract_page_text_by_browser_id
get_cookies
get_cookies_by_browser_id
open_new_tab
open_new_tab_by_browser_id
open_new_tab_with_url
open_new_tab_with_url_by_browser_id
close_current_tab
close_current_tab_by_browser_id
switch_to_tab
switch_to_tab_by_browser_id
get_tab_list
get_tab_list_by_browser_id
close_all_tabs_except_current
close_all_tabs_except_current_by_browser_id
close_browser
close_browser_by_browser_id

  • close_all_browsers

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "chrome browser automation": {
            "cwd": "",
            "env": {},
            "args": [
                "-Dspring.ai.mcp.server.stdio=true",
                "-jar",
                "/Users/baetaehyeon/dev/chrome-mcp-server/build/libs/chrome-mcp-server-0.0.1.jar"
            ],
            "shell": false,
            "command": "/Users/baetaehyeon/Library/Java/JavaVirtualMachines/corretto-21.0.5-1/Contents/Home/bin/java"
        }
    }
}

Linux

{
    "cwd": "",
    "env": [],
    "args": [
        "-Dspring.ai.mcp.server.stdio=true",
        "-jar",
        "/Users/baetaehyeon/dev/chrome-mcp-server/build/libs/chrome-mcp-server-0.0.1.jar"
    ],
    "shell": false,
    "command": "/Users/baetaehyeon/Library/Java/JavaVirtualMachines/corretto-21.0.5-1/Contents/Home/bin/java"
}

Macos

{
    "cwd": "",
    "env": [],
    "args": [
        "-Dspring.ai.mcp.server.stdio=true",
        "-jar",
        "/Users/baetaehyeon/dev/chrome-mcp-server/build/libs/chrome-mcp-server-0.0.1.jar"
    ],
    "shell": false,
    "command": "/Users/baetaehyeon/Library/Java/JavaVirtualMachines/corretto-21.0.5-1/Contents/Home/bin/java"
}

Windows

{
    "cwd": "",
    "env": [],
    "args": [
        "-Dspring.ai.mcp.server.stdio=true",
        "-jar",
        "/Users/baetaehyeon/dev/chrome-mcp-server/build/libs/chrome-mcp-server-0.0.1.jar"
    ],
    "shell": false,
    "command": "/Users/baetaehyeon/Library/Java/JavaVirtualMachines/corretto-21.0.5-1/Contents/Home/bin/java"
}

Spring AI Chrome MCP Server

> 크롬 브라우저와 상호작용 할 수 있는 MCP 서버입니다.

Running Example

1. 브라우저 열어줘 2. MCP 검색해줘 3. 블로그 하나 들어가서 내용 요약해줘 4. 새 탭 열고, 구글 접속해줘 5. 오늘의 환율 검색해줘 6. 브라우저 닫아줘

spring-ai-chrome-mcp-server-running-example.gif

Tools

> 각각의 브라우저는 ID로 관리됩니다. (여러개의 브라우저를 띄울 수 있습니다, 세팅하지 않을 시 default) > 각각의 Tab은 인덱스로 관리됩니다. > > ex1) 브라우저 열어줘(default google page) -> XX 검색해줘 > ex2) 브라우저 ID 1로 열어줘 -> 새 탭 인덱스 2로 열고 구글 접속해줘 -> 2 인덱스 탭에서 XX 검색해줘 open_browser open_browser_by_browser_id google_search google_search_by_browser_id navigate_to_url navigate_to_url_by_browser_id click_link_with_text click_link_with_text_by_browser_id take_screenshot take_screenshot_by_browser_id get_page_title get_page_title_by_browser_id input_text input_text_by_browser_id extract_page_text extract_page_text_by_browser_id get_cookies get_cookies_by_browser_id open_new_tab open_new_tab_by_browser_id open_new_tab_with_url open_new_tab_with_url_by_browser_id close_current_tab close_current_tab_by_browser_id switch_to_tab switch_to_tab_by_browser_id get_tab_list get_tab_list_by_browser_id close_all_tabs_except_current close_all_tabs_except_current_by_browser_id close_browser close_browser_by_browser_id
  • close_all_browsers

claude_desktop_config

template

{
  "mcpServers": {
    "spring-ai-chrome-mcp-server": {
      "command": "{JAVA_PATH}",
      "args": [
        "-Dspring.ai.mcp.server.stdio=true",
        "-jar",
        "{JAR_PATH}"
      ]
    }
  }
}

example

{
  "mcpServers": {
    "spring-ai-chrome-mcp-server": {
      "command": "/Users/baetaehyeon/Library/Java/JavaVirtualMachines/corretto-21.0.5-1/Contents/Home/bin/java",
      "args": [
        "-Dspring.ai.mcp.server.stdio=true",
        "-jar",
        "/Users/baetaehyeon/dev/chrome-mcp-server/build/libs/chrome-mcp-server-0.0.1.jar"
      ]
    }
  }
}
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.