Chrome Browser Automation MCP server

Enables browser automation through Selenium WebDriver, allowing direct interaction with Chrome for web scraping, testing, and navigation tasks without requiring complex automation code.
Back to servers
Setup instructions
Provider
qoxogus
Release date
Apr 11, 2025
Language
Java
Stats
2 stars

This Spring AI Chrome MCP Server enables interaction between AI assistants and Chrome browsers through the Model Context Protocol (MCP). It allows AI systems to perform various browser operations like opening websites, searching, clicking links, and extracting content.

Installation

To use the Spring AI Chrome MCP Server, you need to configure it with Claude or another compatible AI assistant that supports MCP.

Claude Desktop Configuration

Create a configuration file for Claude Desktop with the following template:

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

Replace the placeholders with your actual paths:

  • {JAVA_PATH}: Full path to your Java executable
  • {JAR_PATH}: Full path to the Spring AI Chrome MCP Server JAR file

Example configuration:

{
  "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"
      ]
    }
  }
}

Usage

The MCP Server manages browsers by ID (allowing multiple browser instances) and tabs by index.

Basic Commands

You can interact with the server using natural language commands or direct tool calls. Here are some examples:

  • "브라우저 열어줘" (Open a browser)
  • "MCP 검색해줘" (Search for MCP)
  • "블로그 하나 들어가서 내용 요약해줘" (Go to a blog and summarize content)
  • "새 탭 열고, 구글 접속해줘" (Open a new tab and go to Google)
  • "오늘의 환율 검색해줘" (Search for today's exchange rate)
  • "브라우저 닫아줘" (Close the browser)

Available Tools

The server provides the following browser operation tools:

Browser Management

  • open_browser - Opens a browser with default Google page
  • open_browser_by_browser_id - Opens a browser with specified ID
  • close_browser - Closes the current browser
  • close_browser_by_browser_id - Closes a browser by ID
  • close_all_browsers - Closes all open browsers

Tab Management

  • open_new_tab - Opens a new tab
  • open_new_tab_by_browser_id - Opens a new tab in specified browser
  • open_new_tab_with_url - Opens a new tab with specified URL
  • open_new_tab_with_url_by_browser_id - Opens a new tab with URL in specified browser
  • close_current_tab - Closes the current tab
  • close_current_tab_by_browser_id - Closes current tab in specified browser
  • switch_to_tab - Switches to tab by index
  • switch_to_tab_by_browser_id - Switches to tab by index in specified browser
  • get_tab_list - Lists all open tabs
  • get_tab_list_by_browser_id - Lists all tabs in specified browser
  • close_all_tabs_except_current - Closes all tabs except current
  • close_all_tabs_except_current_by_browser_id - Closes all tabs except current in specified browser

Browser Interaction

  • google_search - Performs Google search
  • google_search_by_browser_id - Performs Google search in specified browser
  • navigate_to_url - Navigates to specified URL
  • navigate_to_url_by_browser_id - Navigates to URL in specified browser
  • click_link_with_text - Clicks a link containing specified text
  • click_link_with_text_by_browser_id - Clicks a link in specified browser
  • input_text - Inputs text at current cursor position
  • input_text_by_browser_id - Inputs text in specified browser

Information Retrieval

  • take_screenshot - Takes a screenshot of current page
  • take_screenshot_by_browser_id - Takes screenshot in specified browser
  • get_page_title - Gets the current page title
  • get_page_title_by_browser_id - Gets page title in specified browser
  • extract_page_text - Extracts text content from current page
  • extract_page_text_by_browser_id - Extracts text from page in specified browser
  • get_cookies - Gets cookies from current site
  • get_cookies_by_browser_id - Gets cookies from site in specified browser

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

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

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

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

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

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

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later