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.
README
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
| Flag | Description | Default |
|---|---|---|
-p, --profile <name> |
Chrome profile directory name (skip selection) | interactive |
--port <number> |
CDP debugging port | 9222 |
--debug |
Enable debug logging | off |
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:
--profileis required for Claude Code/Desktop since there's no TTY for interactive selection.
Available Tools (18)
Navigation (8)
| Tool | Description |
|---|---|
navigate |
Navigate active tab to a URL |
go_back |
Go back in browser history |
go_forward |
Go forward in browser history |
reload |
Reload current page |
list_tabs |
List all open tabs with URLs |
switch_tab |
Switch active tab by index |
new_tab |
Open new tab (optionally with URL) |
close_tab |
Close tab by index (default: active) |
Interaction (6)
| Tool | Description |
|---|---|
click |
Click element by CSS selector |
type |
Type text into input element |
scroll |
Scroll page or element into view |
hover |
Hover over element |
select_option |
Select dropdown option |
press_key |
Press keyboard key |
Inspection (4)
| Tool | Description |
|---|---|
screenshot |
Capture page/element screenshot (returns PNG) |
get_page_content |
Get page HTML or element text |
evaluate_js |
Execute JavaScript in page context |
wait_for |
Wait for element to appear |
How It Works
- Reads Chrome's
Local Stateto discover available profiles - Launches Chrome with
--remote-debugging-portusing the selected profile - Connects via Chrome DevTools Protocol (CDP) using Playwright
- Starts an MCP server on stdio that exposes 20 browser control tools
- 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-porton the same port - CDP has lower fidelity than Playwright's native protocol for some operations
get_page_contenttruncates 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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.