MCP Hub
Back to servers

Chrome Profile MCP Server

An MCP server that enables AI agents to control a real Google Chrome instance using specific user profiles, cookies, and extensions. It provides 18 tools for browser navigation, element interaction, and page inspection via the Chrome DevTools Protocol.

Updated
Feb 25, 2026

Chrome Profile MCP Server

MCP server that launches Chrome with a specific user profile and exposes browser control tools via the Model Context Protocol. AI agents (Claude Code, Claude Desktop, etc.) can then navigate, click, type, take screenshots, and more — all using your real Chrome sessions, cookies, and extensions.

Quick Start

# Interactive mode — pick a profile
npx chrome-profile-mcp

# Non-interactive — specify profile directly
npx chrome-profile-mcp --profile "Default"

CLI Flags

FlagDescriptionDefault
-p, --profile <name>Chrome profile directory name (skip selection)interactive
--port <number>CDP debugging port9222
--debugEnable debug loggingoff

Claude Code Integration

Add to .mcp.json in your project root:

{
  "mcpServers": {
    "chrome": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "chrome-profile-mcp", "--profile", "Default"]
    }
  }
}

Or with a local build:

{
  "mcpServers": {
    "chrome": {
      "type": "stdio",
      "command": "node",
      "args": ["/path/to/chrome-profile-mcp/dist/cli.js", "--profile", "Default"]
    }
  }
}

Claude Desktop Integration

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "chrome-browser": {
      "command": "node",
      "args": ["/path/to/chrome-profile-mcp/dist/cli.js", "--profile", "Default"]
    }
  }
}

Note: --profile is required for Claude Code/Desktop since there's no TTY for interactive selection.

Available Tools (18)

Navigation (8)

ToolDescription
navigateNavigate active tab to a URL
go_backGo back in browser history
go_forwardGo forward in browser history
reloadReload current page
list_tabsList all open tabs with URLs
switch_tabSwitch active tab by index
new_tabOpen new tab (optionally with URL)
close_tabClose tab by index (default: active)

Interaction (6)

ToolDescription
clickClick element by CSS selector
typeType text into input element
scrollScroll page or element into view
hoverHover over element
select_optionSelect dropdown option
press_keyPress keyboard key

Inspection (4)

ToolDescription
screenshotCapture page/element screenshot (returns PNG)
get_page_contentGet page HTML or element text
evaluate_jsExecute JavaScript in page context
wait_forWait for element to appear

How It Works

  1. Reads Chrome's Local State to discover available profiles
  2. Launches Chrome with --remote-debugging-port using the selected profile
  3. Connects via Chrome DevTools Protocol (CDP) using Playwright
  4. Starts an MCP server on stdio that exposes 20 browser control tools
  5. AI agents call tools to control your real Chrome browser

Requirements

  • macOS (Chrome path hardcoded to /Applications/Google Chrome.app)
  • Google Chrome installed (launched at least once)
  • Node.js 18+

Known Limitations

  • macOS only (Linux/Windows paths not yet supported)
  • Chrome must not already be running with --remote-debugging-port on the same port
  • CDP has lower fidelity than Playwright's native protocol for some operations
  • get_page_content truncates at 50K chars to prevent context overflow

Development

npm install
npm run build
npm run dev          # Run with tsx (interactive mode)
npm run dev -- --profile Default  # Non-interactive

License

MIT

Reviews

No reviews yet

Sign in to write a review